Commit Graph

31 Commits

Author SHA1 Message Date
Ghanshyam Mann 5288ade765 Retire compute-hyperv: remove repo content
Winstackers project has been retired
- https://review.opendev.org/c/openstack/governance/+/886880

this commit remove the content of compute-hyperv
deliverables of this project

Depends-On: https://review.opendev.org/c/openstack/project-config/+/894408/1
Change-Id: I06e90d64c0211f87d3b1347667b27e5c81f85dac
2023-09-09 12:28:11 -07:00
wangjiaqi07 cc8441858f Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: I058be576e4c6a22d850fc8beb0cf7a5f22fa9fd7
2022-09-13 16:34:51 +08:00
LiZekun 4b80f61a5c Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I8549cd018a53411f2991c8564c548a00b145631f
2022-05-19 07:14:19 +00:00
Lucian Petrut 64ff00727e Drop lower constraints
Maintaining project lower constraints has become an increasingly
difficult task, especially considering the new pip resolver.

That being considered, the TC has stated that it's up to project
maintainers to decide if they want to continue using lower constraints.
The Cinder project has already dropped the lower constraints job [2].

In order to reduce the burden, we dropped indirect dependencies from
the lower constraints file. This is now causing the lower constraints
job to time out:

   This is taking longer than usual. You might need to provide the
   dependency resolver with stricter constraints to reduce runtime.
   See https://pip.pypa.io/warnings/backtracking for guidance.
   If you want to abort this run, press Ctrl + C.

Since we don't really want to go back to maintaining a huge list of
lower constraints, it's time for us to remove the job.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-March/021204.html
[2] https://review.opendev.org/c/openstack/cinder/+/789077

Change-Id: I08de76202f9c37332e599b2becd21ca5ca87df19
2022-01-27 10:45:16 +02:00
Lucian Petrut f32ea3f0bd Use a separate doc requirements file
As per the OpenStack TC decision [1], the doc requirements should
be listed separately.

This also simplifies the requirements handling. At them moment,
we're facing some issues due to conflicting doc related lower
constraints.

While at it, we're bumping the lower constraints based on Nova's
requirements, dropping indirect dependencies which are very difficult
to maintain.

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ifa2d545d1be6615bca1a85c471322c7e9a3da3b3
2020-12-10 10:45:02 +02:00
zhangchun 15c0e16c1d Remove install unnecessary packages
The docs  requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: I17325fa72e9028c40d8e44c1d699068d4725f021
2020-09-15 02:16:05 +00:00
Sean McGinnis 301658c437
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I7d030c5de19d4bf4a3993851087026d1a7ac18cb
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:36 -05:00
Zuul 375a1632f2 Merge "Cleanup py27 support" 2020-04-13 14:21:34 +00:00
Andreas Jaeger f235cbca64 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Update classifiers
- Update requirements, no need for python_version anymore
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Move basepython into testenv

Change-Id: I96fe17a0a01b8bcca4dad16889def88305857d37
2020-04-13 13:41:13 +02:00
Andreas Jaeger 176559452e Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Remove local vi check, hacking test H106 covers this now.

Remove hacking and friends from lower-constraints, they are not needed
to be installed at run-time.

Change-Id: Id87f8b2d81583a7a67ee1a81c78d3ae40c579c70
2020-04-02 09:24:00 +00:00
zhouxinyong 2368188b8b Update hacking version
Change-Id: If8e7f2721f2c6f426dce0d9278ba066fa18d7ea1
2020-02-24 11:37:17 +02:00
Lucian Petrut bd2aacc14f Handle Python 3 transition and fix tests
While dropping Python 2.7 support, the upstream project has been
updated, so we'll have to move the templates in-tree.

While at it, we're updating the supported Python versions.

Some Nova fixtures have been moved to oslo.test, so in order to be
able to unblock the gate, we'll have to squash those fixes as well.
For the same reason, we'll have to remove nova-network checks, which
has been completely dropped.

A few options have been moved to a separate config group, which
we'll have to take into account.

Change-Id: Ibce6b062a81200611bcaac3f2cb90b14b559375b
2020-01-16 13:12:09 +02:00
Ghanshyam Mann e8d536108c Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

compute-hyperv is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: I58d4843f05703b62db94220965980612f803fd9e
2019-10-30 06:11:01 +00:00
Andreas Jaeger f7c98982ad Update docs jobs
Use tox-docs instead of obsolete build-openstack-sphinx-docs job.

Add readme to index to fix RST building.

Update tox.ini for this change,
disable sphinx's option to tread warnings as errors since nova
autogenerated code contains links to nova documents that do not work
when build here. Note that the previous build-sphinx also disabled
warnings, so this is no change in behaviour in jobs.

Update old pike link to current stein.

Update requirements for global-requirements change.

Remove unneeded json test from doc environment, there are no json files in the
doc directory and thus the test fails.

Change-Id: Id57f462ff4f1fa843051721aa78bb332b8a37fcd
2019-05-27 09:25:58 +00:00
98k 969c0b0b8d Add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ic2ca4c0d4c9fb50f2e83ca1efc756872afdf427d
2018-11-09 03:13:59 +00:00
98k 097ef07422 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I365260d42e6cfa8e7a357c9a8d2154128a743b4a
2018-10-09 20:47:15 +00:00
qingszhao 7f0775409b Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added
In tox.ini the python 3.5 is added

Change-Id: Ic8bb58004591a0e60ad3571d3398176c97a19893
2018-09-29 15:32:33 +08:00
Zuul 28370dac84 Merge "fix tox python3 overrides" 2018-08-06 10:26:04 +00:00
Zuul dce221ac08 Merge "add lower-constraints job" 2018-08-06 10:26:03 +00:00
Doug Hellmann 74ea9d7166 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I90c548df545990a4575628d918f2bce72071c9ca
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-08-02 07:31:06 -07:00
Vu Cong Tuan ce3f8b7fc1 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ic328c6d6f47fabd3a9b8c013e60dfd44e9d38ac1
2018-07-10 10:32:55 +07:00
huang.zhiping e31c139206 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ibb8ce8e655643161b0b7d4e84f0c2897e9c6417c
2018-06-08 22:59:48 +08:00
Claudiu Belu a550636298 Adds docs and reno jobs
Change-Id: I9ab5fb42da16d6e13f6411ecd5eb475aea38960f
2017-12-18 11:51:42 +00:00
Claudiu Belu 37b3a54aea move to compute_hyperv namespace
In order to avoid namespace sharing with networking-hyperv, compute-hyperv
should use the compute_hyperv namespace.

Closes-Bug: #1709085

Change-Id: I44eede0ea6b6558c0ddf6ebdc342ed8f11395f3b
2017-08-09 09:00:32 +00:00
Ngo Quoc Cuong 6f6714c8bf Remove log translations
Starting with the Pike series, OpenStack no longer supports log
translation.
This patch remove log translations then update hacking rules to prevent
future mistakes. It also enables H904, which allows the logging package
to skip creating the formatted log message if the message is not going
to be emitted because of the current log level. [1]

https://docs.openstack.org/oslo.i18n/latest/user/guidelines.html#adding-variables-to-log-messages

Change-Id: I584d10356acea0ede6d219a8ca9e1b001b8d6064
2017-07-09 23:29:29 -04:00
Tony Breeds be5d0de85e Add Constraints support
To be co-installable with other OpenStack projects and have consistent
testing it's a good idea (tm) to use constraints when creating tox
environments.

Change-Id: I60896968ad441cc38fc54a957936263732b3e751
2016-12-22 00:31:24 +00:00
Claudiu Belu 11a6ff0c56 Fixes Nova compute driver import
A recent change in nova made it so only drivers from the
nova.virt namespace are imported.

Removes tools/tox_install.sh, it was only needed to
install nova, which was needed for unit tests.

Also, the nova.netconf options are not imported explicitly
anymore as those have been moved to nova.conf.

Change-Id: Idaae1a0a06aa0385b11176ea129a54c294f25fab
2016-05-06 18:51:06 +03:00
Claudiu Belu 35262e6301 Removes nova from requirements.txt
Removes nova from the requirements.txt and instead
add tools\tox_install.sh file, which takes care of
installing nova. This is useful for Jenkins, as it
needs nova in order to run its tests.

Change-Id: Ia81a49b2cd35a17edfe5edab35bef42191c7f4af
2016-02-19 09:09:26 -08:00
Ondřej Nový e001df0e51 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I73dd68261e6259f2ccc6dee1c761d3e3a7d38b57
2015-12-11 22:57:21 +01:00
Claudiu Belu c877501617 Enable tox.ini unit tests configuration
Previously, Jenkins did not run the unit tests.
Adds dependencies in requirements.txt.

Change-Id: Ic7d4c1a6be72025fe80f21fea4a738cacac70c76
2015-06-30 06:53:58 -07:00
Claudiu Belu aad9893c06 Applies cookiecutter template
Adds requirements.txt, requirements-windows.txt and
test-requirements.txt files.
Adds tox.ini, .testr.conf and .converagerc files.
Adds hacking rules.
Updates setup.cfg.
Adds doc folder and babel.cfg.

Change-Id: Ifdcaa076872563c0bb43c7845ba2129f4dcc245a
2015-03-23 22:21:15 +02:00