As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.
Note that we make the Python 3.6 non-voting because it is failing due to
Nova dropping support for it.
[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal
Change-Id: If34a9d89d8b5779b6eb4f35b171e64c5f6c1902e
According to an Openstack summit session [1], stestr is a 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.opendev.org/p/YVR-python-pti
Change-Id: Ie2169026d93ca85337db429c171ff1f82c2fa0d5
* Require hacking 4.0.0+ to fix issues with pyflakes dependencies
* Add install_command for the lower-constraints env which uses
lower-constraints.txt instead of the upper constraints file.
* Update lower constraints and requirements to match nova
Change-Id: Icba57c52c613611311e8ef1838cd94b062b4705b
Python 2 is no longer supported. Python 3 is required.
This patch stops testing with Python 2 and issues the release note.
Change-Id: Ibed6cf480280dcdde19a8d47982b9e1fa6b96f85
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: I0341d09379799d37d483dfed46de9903bac77fae
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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: I69c088c5230e084245076f1176a4c93964f8489f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Using test-requirements to get a specific version of nova for tests is
preventing DevStack from installing blazar-nova, because nova is already
added to upper-constraints.txt as "-e file:///opt/stack/nova#egg=nova".
DevStack shows the following error message:
Could not satisfy constraints for 'nova': installation from path or url cannot be constrained to a version
Import tools/tox_install.sh from Neutron repos and adapt it to install
Nova in tox environments used for unit tests. Minimal modifications were
made to this script in order to easily track changes from Neutron repos.
tox.ini is modified to use this script instead of pip. For pep8 checks,
we exclude the .tmp directory where nova is cloned in gate jobs,
otherwise the nova source is checked as well and triggers failures.
See [1] and [2] for more details about the issue fixed by this commit.
[1] https://bugs.launchpad.net/devstack/+bug/1540328/comments/13
[2] https://review.openstack.org/#/c/405630/1
Closes-Bug: #1641577
Change-Id: I542461e609866b21f597b0c4a2954807c5b8f8b7
The H8xx rules have been removed from hacking since v0.10.0. Given that
blazar-nova is now using a modern hacking we can remove H803 from the
ignore list.
Change-Id: Ibe07fc7ae71ed8311794d8e0a435002a9f14e5eb
The Blazar code base is not yet compatible with Python 3. Having tox
environments for them is a first step towards fixing it.
This commit also removes the Python 2.6 environment which is now
unsupported by OpenStack.
Change-Id: I7036294c6ce6b31661396eea94d94b662ab2c63b
This was added to work around bug 1091333. A new sphinx has been
released and so this is no longer necessary.
Add PYTHONHASHSEED to tox.ini so that testsuite passes.
Change-Id: I6ea61a3cc441dd1ca2ced7e2fd837a55b917f76d
Replaced the #noqa tag in the scheduler filter for
climate-nova by a hacking section in tox.ini.
Change-Id: I96e0968f396e0ec3801a6497184907c837d1efe7
Closes-Bug: #1300379
Added unit tests to test the ClimateFilter class, got 100% coverage for
that single class.
BDD style comments to improve readability.
Change-Id: I290d94dd8b2b0090aae82762dec1a65135fc2afa
Closes-Bug: #1270183
Added coverage plugin requirement for test and the required
env variable to make tox -e cover work.
Change-Id: Ifac7597ce342257ec8630a2ee27361e3ee085db1
Closes-Bug: #1290498