| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
[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: I2eea42d3909896ea8606dc9cde681b2cc1cfb62f
(cherry picked from commit 36510a81b03e9a8ede57db48a945a5a84f16cf40)
(cherry picked from commit 4992bcf219d69b2dd5909bb6b80f16ec2e1915a8)
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update the URL to the upper-constraints file to point to the redirect
rule on releases.openstack.org so that anyone working on this branch
will switch to the correct upper-constraints list automatically when
the requirements repository branches.
Until the requirements repository has as stable/xena branch, tests will
continue to use the upper-constraints list on master.
Change-Id: I173adb559b079b402a9fb2a4b0b1d364db9a23fc
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Update the minversion parameter to use the python -m pip to install
python packages:
https://tox.readthedocs.io/en/latest/changelog.html#id185
It's recommend to use this. Remove the useless install_command
parameter.
Change-Id: I8c6081d58e22db10c62e2706a8fcddfccb3fa69d
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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: I35b2404890339a4e1f18adf49a2de58d45bb1523
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Use sphinx-build so that the output happens in the right place.
Remove ChangeLog, instead link to the release notes.
Use apidoc for API doc building.
Fix main index page display so that title has higher level,
use link to OpenDev.
Change-Id: Iaa8d7f2143d411be31ad10b546455f18015566f3
|
|/
|
|
|
|
|
| |
Fix F601 failures:
F601 dictionary key '...' repeated with different values
Change-Id: I4c12f5a2348371966215e1ae05b726e6d04b0c8f
|
|
|
|
|
|
|
|
|
| |
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: Ic161a8f88c28d88898863e5b9d9380016fbb0d08
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
OpenStack is dropping the py2.7 support in ussuri cycle.
python-keystoneclient is ready with python 3 and ok to drop the
python 2.7 support.
Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
Change-Id: Ib6b6f7ca394dfa78cd5c8aeac0941dd625efef3b
|
|
|
|
|
|
|
|
|
| |
This patch adds a new tox job/command for building the pdf
version of documentation.
tox -epdf-docs
Change-Id: I0c0ef99190ea2a834bfdb47eb443b88a93bc802c
|
|
|
|
|
|
| |
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html
Change-Id: Ia23ddddb2c1488ea6bc036507f13e6adcf52108e
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Change-Id: I88c28ddf9601bb7b69b663a44562ab2c118050de
Story: #2005924
Task: #34215
|
|
|
|
|
| |
Change-Id: Ifdc21541715cc03b0f6eac5a27a7ee3009d53046
Closes-Bug: #1826197
|
|
|
|
|
|
|
|
|
| |
In Train, we will use python3.6 and 3.7 for which
the minimum tox version required is 2.5[1]
[1]https://tox.readthedocs.io/en/latest/changelog.html#v2-6-0-2017-02-04
Change-Id: Idb9a12258fb47a20b4afea7a2d9780b776d7a990
|
|
|
|
|
|
|
|
|
|
|
|
| |
Python 3.5 was the target runtime for the Rocky release.
The current target py3 runtime for Stein is Python 3.6,
so there is no reason to keep testing against the older version. Also
correct setup.cfg and tox.ini to reflect the current supported Python
versions.
https://governance.openstack.org/tc/reference/runtimes/stein.html#python-runtime-for-stein
Change-Id: I67c892e0b5afaf8e603a77102e06567a1bfe2eb6
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
We already run python3.6 unit tests in CI. Add the py36 environment to
the tox file so that developers with python3.6 available locally can opt
into running that version too.
Change-Id: I28e96e5922b73f270b0e77fff91e4343ad06a852
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Switch to python3 for the tox basepython and for the devstack setup for
functional tests to fulfill the python3-first goal[1]. We still have
unit test coverage for python2.
[1] https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: If82196ce6a2fffe6a43bb59077c6bdd712276958
|
|/
|
|
|
|
|
|
| |
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: Ie0b56212cad8d9756c2043a4483c607101491a14
|
|
|
|
|
|
|
|
|
|
| |
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: I6484b605b1a7b8bcc4589170d2645f7cb0ca66f6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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: I0637976fc3097ff5052e38cf8a9afc7a3330034f
Depends-On: I2cbf2e63a9d93c232b6928acf002a45b7fbcec8e
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: I27d40ced965e35f5edcb1200faa5d1693cc12544
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
Refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124815.html
Change-Id: Iaa1530f19049883fc9fbce66f1fcc82ded559a07
|
|
|
|
|
|
|
|
|
|
|
| |
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: Iee9939776d5552b818aec5cab0b8c2a1133f74b9
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
the only hacking check in keystoneclient is related to
older versions of oslo libraries, which are no longer
supported by keystoneclient, for example:
$ pip freeze | grep oslo.utils
oslo.utils==3.18.0
$ python
>>> import oslo.utils
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named oslo.utils
>>> import oslo_utils
>>>
Let's just remove the hacking check since theres no
way someone could incorrectly import the older
versions.
Closes-Bug: 1652458
Signed-off-by: Adam Williamson <awilliam@redhat.com>
Change-Id: I14165903b46d2fc26e8c9de591917893f58516db
|
|/
|
|
|
|
|
| |
Now that there exists only a gate job for Python 3.5 and not 3.4,
we should remove those references to the 3.4 that is untested.
Change-Id: Id32fca50f5f1834175b6003be61f2cc4c8b9aeeb
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 python-keystoneclient.
Change-Id: I8933945ab8948c43022963ba6cff4d38cec5a04f
|
|
|
|
|
|
|
|
|
| |
Change the behaviour of tox -e cover to also print the coverage report
to the console, rather than only creating html files that contain the
report. This is a convenience change and should provide a better user
experience.
Change-Id: I10dca81fa600083ec5e0471e88aaa712a1e68bf6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add an other-requirements.txt file containing a cross-platform list
of dependencies needed for running included tox-based tests. Also
include a tox environment for convenience calling the bindep[*]
utility to list any missing system requirements.
This change is self-testing.
For other-requirements.txt see also
http://docs.openstack.org/infra/manual/drivers.html#package-requirements
[*] http://docs.openstack.org/infra/bindep/
Change-Id: Ifa3d417d9c3f8c172980a593c0a5a4a29987366a
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PEP257's D203 check ensures that you have a blank line before class
docstrings. This rule directly conflicts with D211 (no blank lines
before class docstrings), which is intended to supersede D203.
The original language in PEP257 which D203 was based on was actually
removed from PEP257 by Guido here:
https://hg.python.org/peps/rev/9b715d8246db
Change-Id: Icc048b947acea8f655d00540c221123b906e7545
|
|
|
|
|
|
|
| |
The directory openstack/common doesn't exist any more,
so remove it from flake8 exclude list.
Change-Id: I4ec588c5c0a2cf1b3bf06b4754889dc27d391b33
|
|
|
|
|
|
|
|
| |
Currently tox ignores D105.
D105: Missing docstring in magic method.
This change removes it and make keystoneclient docstring compliant with it.
Change-Id: I34dfc164891880425f542f8f8aa3426ec8640c96
|
|
|
|
|
|
|
|
| |
Currently tox ignores D200.
D200: One-line docstring should fit on one line with quotes.
This change removes D200 ignore in tox and fix violations.
Change-Id: Icbf8cc1d4f1c00daeedeffe4397369f9e468b191
|
|
|
|
|
|
|
|
|
| |
Currently tox ignores D202 and D203.
D202: No blank lines allowed after function docstring.
D203: 1 blank required before class docstring.
This change removes D202 and D203 ignores in tox and fix violations.
Change-Id: I97ef88c9cfd56774e47f789cbbcf8ccfe85d7737
|
|
|
|
|
|
|
|
|
|
| |
Currently tox ignores D204, D205, and D207.
D204: 1 blank required after class docstring.
D205: Blank line required between one-line summary and description.
D207: Docstring is under-indented.
This change removes D204, D205, and D207 ignores in tox and fix violations.
Change-Id: Id20d216fbd7647d468859b960088aac61c582d9b
|
|
|
|
|
|
|
|
| |
Currently tox ignores D208.
D208: Docstring is over-indented.
This change removes D208 ignore and fix violations.
Change-Id: Ifec21c7602468b2a60727b64d27e7f14d765638c
|
|
|
|
|
|
|
|
| |
Currently tox ignores D211.
D211: No blank lines allowed before class docstring
This change removes D211 ignore and fix violations.
Change-Id: I79404110896ced7f79999b8c099e2a70b01ec968
|
|
|
|
|
|
|
|
| |
Currently tox ignores D301.
D301: Use r”“” if any backslashes in adocstring.
This change removes D301 ignore and fix violations.
Change-Id: I9dbe2c9d59e2c2d8585a53840a579a9b9c57a09c
|
|
|
|
|
|
|
|
| |
Currently tox ignores D400.
D400: First line should end with a period.
This change removes it and make keystoneclient docstrings compliant with it.
Change-Id: I29ecb4c58bb03c0b9a3be0b7a74d18fb06a350f2
|
|
|
|
|
|
|
|
| |
Currently tox ignores D401.
401: First line should be in imperative mood.
This change removes it and make keystoneclient docstrings compliant with it.
Change-Id: If34ff12d18390b357342cf29f2d116dd3c86a44d
|
|
|
|
|
|
|
|
|
|
|
| |
Removing old configuration options for build-in defaults of latest
bandit functionality. Also, marking flagged items with _# nosec_
with a descriptive comment on why the code is acceptable as is.
Co-Authored-By: Christopher J Schaefer <cjschaef@us.ibm.com>
Co-Authored-By: Tom Cocozzello <tjcocozz@us.ibm.com>
Change-Id: I138ebd46a8be195177361a9c3306bb70423b639d
|
|
|
|
|
|
|
|
| |
The bandit project uses an integration test to ensure it doesn't
break other projects by introducing new changes. To run this
integration, it is necessary to have a common tox target of 'bandit'
Change-Id: If44008f6a48134a8af38e6794fb87ae09aac57b4
|
|
|
|
|
|
|
|
|
|
| |
According to the PTI (=Python Test Interface,
http://governance.openstack.org/reference/cti/python_cti.html), pep8
is the interface for codestyle checks. Move all tests from linters to
pep8.
Change-Id: If50b7471112151245d383b4a1d0056ce9041adf2
Depends-On: I9346e4bf8c3a50de088c6a157f0d871c0a9333a1
|
|
|
|
|
|
|
|
|
|
| |
We'd like to use the same "gate" profile for all OpenStack gate jobs,
so the "keystone_conservative" profile which we were running as part
of the gate is change to "gate.
The other profiles that aren't used as part of the gate are removed.
Change-Id: I931dc957b4659806027d45dfec5e61e9c7973564
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
bandit is now part of linters environment, remove it from tox.ini.
Depends-On: I67ebec070cd0804d310534712a3a3f382df7e48f
Change-Id: Ie59ee56f15a857926eef4a7b466637686e116b07
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, there were a string of commits to keystone that addresed ignored
hacking checks. This commit does the same for H405 in keystoneclient. This
also modifies our tox.ini so that we no longer ignore H405 violations.
Change-Id: I2af152e5425a0e9c82314039fdbb90d661c22680
Closes-Bug: 1482773
|
|/
|
|
|
|
|
|
|
|
| |
Create new linters environment consisting of pep8 and bandit.
Keep pep8 as an alias for linters and add a message when invoked.
Once this change is in, the infra job can be changed to only run
linters job, this allows to run one less job for each change.
Change-Id: Ib15be94491232d63a345d6fc19869095a2537310
|