tox 4 does not accept updated its INI rules and the current format
violates the new rules.
https: //github.com/tox-dev/tox/blob/main/docs/upgrading.rst#changed-ini-rules
Change-Id: I9eb9d03d33661ed2bfc6ce5e57dba9656483c51e
We facing errors related to the new pip resolver, this
topic was discussed on the ML and QA team proposed to
to test lower-constraints [1].
I propose to drop this test because the complexity and recurring pain needed
to maintain that now exceeds the benefits provided by this mechanismes.
[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html
Change-Id: I53f3d2e4581d46abe150c80550b3875bb9ec73b4
Replace the following items with Python 3 style code.
- six.text_type
- six.b
- six.u
Like Any(str, six.text_type), currently only keep Any(str).
Change-Id: I735e8a8a670659123e533091916fd3bbedabb95e
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.
Change-Id: I23863f545c34431e4a7358cd1064e5ab77cdf26e
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
- Update requirements, no need for python_version anymore
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine,
update constraints to current URL
Change-Id: I45fc7e79bc7abf266721d819f4f857d06a701724
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, they are not needed
to be installed at run-time.
Change-Id: I7b114906ddf173752d1a94dd8243ea2d37204256
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.
Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This is covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.
More details can be found in this mailing list post:
http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html
Change-Id: I60ab96b2f69748e9fad65a73f168b414c14a857a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
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: Ia70c6f9d6b1efb8bb030673284e0d364c3b5ff0c
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: Ib7b19bed1a16c0864068066fdb5b9e45595dd228
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: I82c3b74bb0346fa1742a97c00f2b5f3fb26263e9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
According to [1] files with no code shouldn’t contain any license header
or comments, and must be left completely empty. This patch cleaups the
code and enables H104 checking in the tox 'pep8' environment.
[1] https://docs.openstack.org/hacking/latest/user/hacking.html#openstack-licensing
Change-Id: I2528af3579b0426fff24796e94978fcba5001f6e
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: I0c0ecafd9f600869accabe3c8195d40767f21341
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Curly quotes usually input from Chinese input method.
When read from english context, it makes some confusion.
Change-Id: I653631f5eb0d2024d7457d576d7dfd9b38543d20
This commit attempts to move default policies from a policy.json
file into oslo.policy objects. This is an effort to make policy
easier to maintain for operators and is a community-wide goal for
the Queens release.
For more information on this initiative, please see:
https://governance.openstack.org/tc/goals/queens/policy-in-code.html
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
bp policy-and-docs-in-code
Change-Id: I8ce4fc45447b41930736d6fcf85e6d35cfbe9d56
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
[H203] Use assertIs(Not)None to check for None
Depends-On: Ib6451504530f932ebd63374618d213ff7086dd1c
Change-Id: I1e81dd00d6c19574382d3c065826255879708833
In Pike OpenStack documentation is changed in a way that the project repos
contain most of the documentation material [1]. This affcects how the doc
folder shall be strucutred inside the project repo. With this change I
align the install guide to the new structure and correct the warnings
during the document generation. The overall work is tracked in [2].
[1]: http://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html
[2]: https://etherpad.openstack.org/p/doc-migration-tracking
Change-Id: Ib5400247d2ba5f8dac80ef68a43d06868bd42f1c
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454
Signed-off-by: csatari <gergely.csatari@nokia.com>
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.
This patch fix this problem. Refer patch set [1]
[1] https://review.openstack.org/#/c/189569
Change-Id: Id4046c5be169907a2038f4a67bd984825f9621ea
fix "test command found but not installed in testenv"
by adding the full path
fix "WARNING:stevedore.named:Could not load oslo.db"
Change-Id: Idf757e1ba7e1e1410a9083a2127905a798a5ab8f
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.
Change-Id: I725b7f4dcbed537577b99f4b9f13a74e2e4c26e7