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
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
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
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.
Change-Id: I17325fa72e9028c40d8e44c1d699068d4725f021
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>
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
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
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
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
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
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
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>
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
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
In order to avoid namespace sharing with networking-hyperv, compute-hyperv
should use the compute_hyperv namespace.
Closes-Bug: #1709085
Change-Id: I44eede0ea6b6558c0ddf6ebdc342ed8f11395f3b
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
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
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
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