Setup requirements for pep8 checks according to specification
in test-requirements.txt. Is needed to pin hacking.
Change-Id: I6fb44a1e42181cb56e8206783c9681d7eb49e060
New tox version 4 has changed interpretation of tox.ini
The passenv parsing requires the list to be comma-separated.
Since the names are case-insensitive, duplicates are removed.
skipsdist is now a synonym of no_package and avoids the
installation of the package in all cases.
However, some environments require it (for setup metadata).
Fix allowlist_externals where appropriate.
Change-Id: I929afe0d13a64caac5abf15a16d56fdb713537e5
For PDFLaTeX, remove the irrelevant parts (contributing,
search).
Change-Id: I78e2baa51a523ef4e8b76a5f7b2ad5cda1085b8a
Co-Authored-By: Radosław Piliszek <radoslaw.piliszek@gmail.com>
Due to the upper-constraints argument being hard coded in the
install_command, even jobs like lower-constraints will end up getting
the latest upper-constraints installed.
The correct way to handle the constraints is to separate it out into
deps. This allows the l-c job to properly set what constraints to use.
Fixes some issues with libvirt-python that were masked by these issues.
Change-Id: I0d22d615e2717f12237b8d7b1e4b1071c4497a50
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This replaces the deprecated (in python 3.2) unittest.TestCase method
assertRaisesRegexp() with assertRaisesRegex().
Also add associated hacking check.
Change-Id: I62d5b4c0259c6e2e0fee361542d4b1234ab0ea57
Signed-off-by: Chuck Short <chucks@redhat.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
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine
- Remove mccabe from lower-constraints, we don't need it there,
it is constrainted by hacking.
- Add xml and xslt libs to bindep, these are needed for building
some requirements
Change-Id: Ia78b92c3b807623e70d85c3bce44e3b7011ca282
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found by updated hacking version.
Update local hacking checks to work with newer flake8.
Remove hacking and friends from lower-constraints, they're
not needed for installation.
Change-Id: Ic7903c61bde999685ca26b5a10d070c8d8d206a3
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.
See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html
Co-Authored-By: gujin <gu.jin@99cloud.net>
Change-Id: I4585d250117f19cca577b2e3aaa74aba7ec73e9b
Story: #2005924
Task: #34221
According to Openstack summit session [1] stestr is maintained
project to which all Openstack projects should migrate.
Let's switch it then.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I6f7d8766969bce4efd5c0bc36df2d583800e1e3e
The oslosphinx package is not compatible with the current Sphinx 2.0.
This switches over to use the preferred and supported openstackdocstheme
instead.
Change-Id: I51787933d32ddb34cc879790334d44c325edb3db
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.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: Ieb680847ae37384e827557eefaa58a5e5f4a193b
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.
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Change-Id: Ibd77a8fa492836f5892de75088fadb6515812beb
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
masakari-monitors should use os-testr instead of testr as
it is more powerful and provide much prettier output than testr.
This patch also disables the use of PY34 and adds PY35 for in tox
as the gating on python 3.4 is restricted to <= Mitaka in OpenStack.
This is due to the change from Ubuntu Trusty to Xenial, where only
python3.5 is available. Python 3 don't have 'file' builtin method so
to make it compatible with Python 2 and 3 used 'open' builtin method.
Also fixed the failing test cases due to that.
Change-Id: Ib84b0b28a845e49eaef969d0fc995b1adbb7b29d
Added hacking check to ensure that _ is imported and allows multiple
imports from i18n module per line.
Change-Id: Ieffabd6f2fe866000c5dc1d9ce83acd2f9ab0450