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: Ic3feedde768d18d6751bf278af36779558a8d0a8
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: Ifffbb94c069d58df1dbaa1c5a1681312e8455ae2
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: Ic4a081c389df1bb3a0fce130b0ad4d782066e033
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
- Remove obsolete sections from setup.cfg
- Update classifiers
- Switch to using sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine
- Remove old python compatiblity test code
Change-Id: If7296703fc4848a16dd10d904ba3f49f19054546
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.
Change-Id: I7c6896dd25d76dc02145f4d09a4d09de35a4afb1
Move to stestr. That's what most of the OpenStack projects have done
given that testrepository seems to be unmaintained (last release in
2014[1]).
[1] https://pypi.org/project/testrepository/
Change-Id: I83c2ceb74eb291266b3afa33f49d17db84ee9cde
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: Ieb432c391d3dcc798a30516ed96528a15f526d48
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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: Ia95aa8f003151cbce870acc54f2053cbcfc6effb
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.
This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.
Change-Id: Icb8bcec5166dd151336455c69db8e4c4067ac8c5
Starting with the Pike series, OpenStack no longer supports log
translation.
Update hacking rule to prevent log translation in all log level instead
of only debug level.
Since all log translations are invalidated, check_explicit_underscore_import
can be simplified.
Change-Id: I5bd3a155c685821cfddf17f741083a267a8f7114
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.
Change-Id: I7bede2ca96cc4ca0b36460b8aeac3e5540d91751
According to [1], we can passing a "-t" argument to
oslo_debug_helper to indicate the directory where tests
are located. This will solves ImportError exception.
[1] https://docs.openstack.org/developer/oslotest/features.html
Change-Id: I908bab196ae9a29e8c789db1dcd4668a7f855f87
Closes-Bug: #1666560
Now that there is a passing gate job, we can claim
support for Python 3.5 in the classifier.
This patch also adds the convenience py35 venv
Change-Id: I90fb6546cc069c52ea9cfc90c233db64c973697f
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove os-win.
Change-Id: Idd9640825566eae61aa5776550c12f52c15a0ad1
openstack.common code is no longer supporter.
Although os-win does not have any openstack.common
modules, there are still a few unneeded references to it.
Change-Id: I645458daaaabe330bf9bec4627e4ca2f12b024b8
Fixes the project for Jenkins runs by adding hacking and hacking
rules, fixing pep8 issues, adding eventlet dependency.
Fixes test_jobutils, mocks wmi module.
Includes bugfix:
Hyper-V: Fix missing WMI namespace issue on Windows 2008 R2
The Hyper-V driver uses the Microsoft\Windows\SMB WMI namespace
in order to handle SMB shares. The issue is that this namespace is
not available on Windows versions prior to Windows Server 2012.
For this reason, the Hyper-V driver fails to initialize on Windows
Server 2008 R2.
This patch fixes the issue by properly handling the PathUtils
initialization.
Closes-Bug: #1463044
Change-Id: Ia99576589af6049ee07337c631ed7d5d6cf602d9
Change-Id: Ide670f759822b2af8fe92a3a1ea0542618f13370