* Update debtcollector from branch 'master'
to e823e9d31a1b48ce6ead58f7d8501f87994eaa78
- reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.
Change-Id: I5349e7e6d41bf667ed419e52e4d332a3580b147f
* Update debtcollector from branch 'master'
to 0e6ce1cef04a397d5a087db134a72755d41eb955
- Bump hacking
hacking 3.0.x is too old.
Change-Id: Ic9fa31f000821ba5a21b8b9130d23c73ae64d388
* Update debtcollector from branch 'master'
to 7f08e3c041abe671b501772e1a2cdafa97c63629
- Merge "Remove unused babel.cfg"
- Remove unused babel.cfg
This file has never been used actually.
Change-Id: I52a7b0270bfc80b1248987ab6b519eaa52a9391b
* Update debtcollector from branch 'master'
to da28761ab6641865a15c87e4b7ec8d9d348f1b36
- Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg
Change-Id: I21e357e19f1ecbc73125717a2cea8ce95e6df80f
* Update debtcollector from branch 'master'
to 1c6dd5342db43b38726438fdfe71136bb2778cc7
- coveragerc: Remove non-existent path
The debtcollector/openstack directory does not exist.
Change-Id: I7878804c4f478bdae9ae04e9b7e68a08e089b62c
* Update debtcollector from branch 'master'
to 3cf9632ae329c1e57ed860401aeeab80f9506c27
- requirements: Remove unnecessary dependency
We no longer support Python < 3.8.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I48fb5ae543123938b43175c4d55f91f18699c0b2
* Update debtcollector from branch 'master'
to 88033b58fd2f7c3aecb786e709abdaa80dc9eb51
- Moves supported python runtimes from version 3.8 to 3.10
Within 2023.2 python version 3.9 and 3.10 are the
supported python runtimes [1].
[1] https: //review.opendev.org/c/openstack/governance/+/872232
Change-Id: I530fc9a7076e0a5a18f4da0a664b01d25ecb02f6
* Update debtcollector from branch 'master'
to e44ad1df840431a2c837c6abaef62587bca2686b
- Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,
example nova:
- 56b5aed08c/setup.cfg (L13)
Change-Id: I525cb26c3635d2cbb11416bd8f1aef6a71b30553
* Update debtcollector from branch 'master'
to c65aabf5bc293f60aa77b6bd1cd47b99a45e89ba
- Add Python 3.8 and 3.9 to supported runtimes
... because these are now tested as part of the openstack-python3-jobs
template.
Python 3.8 has been part of tested runtimes since victoria, while
Python 3.9 has been part of tested runtimes since yoga.
Change-Id: Ieb5c61357ec8ed0fa9b89923464a9667a0a3e19f
* Update debtcollector from branch 'master'
to f04337049c3b0dd4a0ae30ff2511002a543ac419
- Update CI to use unversioned jobs template
As part of the migration of this project to the independent release
model, we failed to notice that the job template was still tied to a
specific release. We've now introduced a new unversioned job template,
'openstack-python3-jobs' [1], which was can and should use. Do this.
[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/
Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I4e2b2821124103fa76eb4b45d8ce3d86160b6a27
* Update debtcollector from branch 'master'
to a6b46c5f01b76bd87eb4e47cdac26f645e72d716
- Remove references to Python 2 objects
These are no longer necessary in a Python 3-only world.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ia3eda6d451b673f3eafba1aa3ecd2e51b7038f1f
* Update debtcollector from branch 'master'
to 6abd5a676da42ec3792e4b32bab62c438f675675
- Merge "requirements: Remove pbr"
- requirements: Remove pbr
We haven't used this at runtime since we switched to using
importlib.metadata in change Ib10180732042bda254b058b94c9ff41f5c31c3cb,
therefore there's no longer any need to include it in the
'requirements.txt' file. Remove it.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I93152b5826620a867125aeb5edc54b5f5489fbab
* Update debtcollector from branch 'master'
to 2d4025b002c2275b7196b191efddd4fad1f6521e
- Remove unnecessary 'coding' lines
Everything is unicode in Python 3. No need for these anymore.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I722095c41c8e014b38bfbb16aaecae0023fcf3a8
* Update debtcollector from branch 'master'
to d0b61a66b59ff5f98d63a5e7591bee3a6fcc3178
- Remove six
debtcollector is one of the few remaining OpenStack libraries still
using six. Like the other libraries that have since removed it,
debtcollector no longer actually needs this since it only supports
Python 3. Remove the library.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ia16572985a46afe39b53a199ebabb695cd05ae2d
* Update debtcollector from branch 'master'
to aa426abafebec6f36e7aa4484d6acc039f67589f
- Restore reproducibility in docs
The documentation is writting the date in its copyright. This is
considered bad practice, because this kills reproducibility. If
you don't know about reproducible build, please read on:
https: //reproducible-builds.org/
Change-Id: I6427c83af06ac58da32898f00d3f99dc6ba1ae93
* Update debtcollector from branch 'master'
to 0bf5bf5f2a4775d6cbd634594757dac3524e5f23
- Replace deprecated inspect.getargspec
inspect.getargspec was deprecated since Python 3.0 and
inspect.getfullargspec is its replacement with correct handling of
function annotations and keyword-only parameters[1].
[1] https://docs.python.org/3/library/inspect.html#inspect.getargspec
Change-Id: Ifc98b578c4cb6f917e1fc62177fd09ff4d25b6d4
* Update debtcollector from branch 'master'
to 4c26e72d61dc340665517391ddf3b09bf1353484
- remove unicode from code
Change-Id: I65d63c955dec439fc599754624d3dc9b96f3f6c3
* Update debtcollector from branch 'master'
to e9003e3d0172f105e8c1a1bd7a0445ce7c901749
- setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:
UserWarning: Usage of dash-separated 'description-file' will not be
supported in future versions. Please use the underscore name
'description_file' instead
[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
Change-Id: Ib8c972f4b673ceb8a92648fb921e122524807e6d
* Update debtcollector from branch 'master'
to 75487624e771a63b3c43188610e39a2ce701742a
- Remove runtime dependency on pbr
Pbr is a very heavy package to depend on. It requires git-core, which is
16 MiB on my Fedora. We only use it to detect the version, which can be
done without pbr using a much lighter importlib_metadata.
Copied from https://review.opendev.org/c/openstack/osprofiler/+/739379
Change-Id: Ib10180732042bda254b058b94c9ff41f5c31c3cb
* Update debtcollector from branch 'master'
to bb3f395abde95ad98902a9bf6a3b62ba3edf81ad
- Merge "Remove lower-constraints remnants"
- Remove lower-constraints remnants
These were missed in change: I36fb12c92823d27e42975d4dc683ad8d99191a77
Change-Id: Ic757469ae8c9af7b0f83f94e2d902f33385f60ef
* Update debtcollector from branch 'master'
to e9db67850dda9e82a463ec2d2dda54c07a706ebd
- Merge "Use TOX_CONSTRAINTS_FILE"
- Use TOX_CONSTRAINTS_FILE
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>.
[1] https://review.opendev.org/#/c/722814/
[2] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
Change-Id: Ib9ef556d8f63fdba1901717360af4cbd86faa0e7
* Update debtcollector from branch 'master'
to ef848c35482bb3a97c366a6659350ba977ab121b
- Dropping lower constraints testing
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: I36fb12c92823d27e42975d4dc683ad8d99191a77
* Update debtcollector from branch 'master'
- Merge "Adding pre-commit"
- Adding pre-commit
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.
Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.
pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)
For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks
Change-Id: I382aa79f7357a86af11783f59e0f1680d5bed8d0
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* Update debtcollector from branch 'master'
- Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I21718260133b7b115d61b42e782581444d182464
* Update debtcollector from branch 'master'
- Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.
Change-Id: Idf47fcc25d2b06fb2e5c2317dcaa1a9a3b050b22
Sem-Ver: feature
* Update debtcollector from branch 'master'
- Update lower-constraints versions
This updates lower constraints to versions that will work with py38 so
that when we move to running on focal nodes, which has py38 as its
default py3 runtime, the lower-constraints job will continue to pass.
It also cleans out some secondary requirements that are no longer needed
due to our direct dependencies being updated.
Linters are removed that are kept in the global requirements blacklist
as those are not version tracked and are not relevant for our
lower-constraints unit test runs.
Change-Id: I78945d43111fe7a2a38c17432b9dcd66a6116186
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Update debtcollector from branch 'master'
- Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
Update Sphinx version as well.
Disable openstackdocs_auto_name to use 'project' variable as name.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: I6974f7131d7ac43b427f8ac6381aff80b9dcb884
* Update debtcollector from branch 'master'
- Switch to Victoria tests
This repo has been using train tests and thus was missed by the bot to
update from ussuri to victoria, update manually.
See also the PTI in governance [1].
Fix pep8 failure in debtcollector/updating.py and remove six from the
file.
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I9d07da7c5729f7ed33cc25f27cf70a7a41d1214c
* Update debtcollector from branch 'master'
- Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.
Change-Id: Iacdbb6e538c74274b20bbfee70ef5682e0754477
Sem-Ver: feature
* Update debtcollector from branch 'master'
- Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Change-Id: Icff998ff9cd1d9af982c6ea9ae0a21cd6912e9e4
* Update debtcollector from branch 'master'
- Update the minversion parameter.
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.
Change-Id: I5b5652c5009196bebf9ee9e65102cb0f1aa33837
* Update debtcollector from branch 'master'
- Move docs linting to pep8
pep8 is our linting target, move linting runs to it.
Change-Id: I68f619f21b3df4e73bdb206754bf4449464007bb
* Update debtcollector from branch 'master'
- Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.
Change-Id: I30f8345c55e6f6936f2fcf42860b2cad6de0194e
Sem-Ver: feature
* Update debtcollector from branch 'master'
- Merge "Add Python 3 Train unit tests"
- Add Python 3 Train unit tests
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: Id890698cfc352183f206fc92a5f49cdb433cad49
Story: #2005924
Task: #34234
* Update debtcollector from branch 'master'
- Update Sphinx requirement
Sphinx 2.0 no longer works on python 2.7, so we need to start capping it
there.
Change-Id: I43bda145f4c48c06faf1848c5a51af7078b97e6e
* Update debtcollector from branch 'master'
- Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.
Change-Id: I5109c96db97011d7703e28ea6dbdbef442a6c89e
Sem-Ver: feature
* Update debtcollector from branch 'master'
- add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.
See ML discussion here [1] for context.
[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html
Change-Id: I3ac6546e79112820906ef02ce372c6c964921bec
Story: #2004073
Task: #27440
- Use template for lower-constraints
Small cleanups:
* Use openstack-lower-constraints-jobs template, remove individual
jobs.
* Sort list of templates
Change-Id: Ia9fe9f01d69ae69f4b63b2d13b376c9a638dcb8f
Needed-By: https://review.openstack.org/623229
- Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.
Change-Id: Ia917386b3283704df4a6fdb98b498503fdfe36ce
- Don't quote {posargs} in tox.ini
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: I9042c3d9ed48e26b541e22bb4c0dd272d48e3965
- Merge "add lib-forward-testing-python3 test job"
- Merge "add python 3.6 unit test job"
- Merge "import zuul job settings from project-config"
- add lib-forward-testing-python3 test job
This is a mechanically generated patch to add a functional test job
running under Python 3 as part of the python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I3d60f5c6ca080ac785c5355c9637788537e1e9f1
Story: #2002586
Task: #24322
- add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I0db032805720fb1f54fef2146689c6db6a0953d2
Story: #2002586
Task: #24322
- Remove PyPI downloads
According to official site,
https://packaging.python.org/guides/analyzing-pypi-package-downloads/
PyPI package download statistics is no longer maintained and thus
should be removed.
Change-Id: Ie8459ab1432e64e0a184d238108eb6dc8f98848d
- import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I7b5a017f0365c3cc4428dc9cb8c807b2dea66b54
Story: #2003250
- Merge "Update reno for stable/rocky"
- Merge "Add release note link in README"
- Update reno for stable/rocky
Change-Id: If10ef7da6241f8dbe9ec2f1e59368705276b64d3
- Switch to stestr
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: Ie84d18b0bcc2a33587bd72204c0eb3dad687be7e
- Add release note link in README
Change-Id: I7ea0515c7daa472b18425e318f83a0ec9c7d7629
- fix tox python3 overrides
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: I10eafa030e4ab97f55d17b2497fa87492a18336e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
- Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]
[1] https://pypi.python.org/pypi/<package>
[2] https://pypi.org/project/<package>
Change-Id: I94e055577a01add4676042f1e454c37b17c1b13b
- remove obsolete tox environments
We no longer need to support 3.4 and 3.5 is covered by the default
debug environment.
Change-Id: I1ca069ea14c619bf64101c1c84bd1b4c3a2d2691
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
- set default python to python3
Set the default python to python3 except for the py27 environment. We
have to set that explicitly to override the new default.
Change-Id: I07f2186cb7771b3a83ccc4ce9ba3b79253c4757c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Update debtcollector from branch 'master'
- Merge "Updated from global requirements"
- Updated from global requirements
Change-Id: I7bdc2d6d0c28a9177f19061e893374cbda5286bb
* Update debtcollector from branch 'master'
- add lower-constraints job
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: Ib7f87445039e8e71edbe52b985c632bc4da29174
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* Update debtcollector from branch 'master'
- Update links in README
Change the outdated links to the latest links in README
Change-Id: I0e35c36fdbcb57e976074878c8ef77ffcca7590e