Commit Graph

214 Commits

Author SHA1 Message Date
OpenStack Release Bot e823e9d31a reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I5349e7e6d41bf667ed419e52e4d332a3580b147f
2024-03-07 14:14:21 +00:00
Takashi Kajinami 0e6ce1cef0 Bump hacking
hacking 3.0.x is too old.

Change-Id: Ic9fa31f000821ba5a21b8b9130d23c73ae64d388
2024-01-26 01:18:18 +09:00
Zuul 7f08e3c041 Merge "Remove unused babel.cfg" 2024-01-16 19:42:25 +00:00
Ghanshyam Mann da28761ab6 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
2024-01-11 15:36:29 -08:00
Takashi Kajinami 479501ada3 Remove unused babel.cfg
This file has never been used actually.

Change-Id: I52a7b0270bfc80b1248987ab6b519eaa52a9391b
2023-12-20 21:44:32 +09:00
Takashi Kajinami 1c6dd5342d coveragerc: Remove non-existent path
The debtcollector/openstack directory does not exist.

Change-Id: I7878804c4f478bdae9ae04e9b7e68a08e089b62c
2023-12-19 20:54:44 +09:00
Stephen Finucane 3cf9632ae3 requirements: Remove unnecessary dependency
We no longer support Python < 3.8.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I48fb5ae543123938b43175c4d55f91f18699c0b2
2023-09-07 15:46:01 +01:00
Ghanshyam cadc09d152 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit 88033b58fd.

Keeping Python 3.10 in setup.cfg classifier. 

Reason for revert:

Needed-By: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

TC has been discussing about re-adding the python 3.8
testing in current master 2023.2 release testing.

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-04-25-18.00.log.html#l-191
- https://lists.openstack.org/pipermail/openstack-discuss/2023-April/033469.html

While governance changes are under review, TC agreed to add py3.8 testing
so that we do not see more project/lib dropping python 3.8 and make them
uninstalable on python 3.8

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-05-02-18.00.log.html#l-17
- https://review.opendev.org/c/openstack/governance/+/882165

Also adding py3.8 testing back in job https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

Change-Id: I080c9f6d596269732b4fc512b5e3569144df8864
2023-05-04 20:19:19 +00:00
Takashi Kajinami 88033b58fd 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
2023-04-10 13:10:53 +09:00
Hervé Beraud e44ad1df84 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
2022-05-05 15:57:16 +02:00
Takashi Kajinami c65aabf5bc 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
2022-03-28 22:56:30 +09:00
Stephen Finucane f04337049c 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
2022-03-15 15:05:43 +00:00
Stephen Finucane a6b46c5f01 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
2022-02-11 17:25:03 +00:00
Zuul 6abd5a676d Merge "requirements: Remove pbr" 2022-02-11 12:41:06 +00:00
Stephen Finucane 1e08744110 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
2021-11-12 11:38:15 +00:00
Stephen Finucane 2d4025b002 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
2021-11-04 10:45:02 +00:00
Stephen Finucane d0b61a66b5 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
2021-11-04 10:43:07 +00:00
Thomas Goirand aa426abafe 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
2021-09-07 10:54:30 +02:00
Takashi Kajinami 0bf5bf5f2a 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
2021-07-15 20:52:57 +09:00
liyou01 4c26e72d61 remove unicode from code
Change-Id: I65d63c955dec439fc599754624d3dc9b96f3f6c3
2021-05-18 11:26:49 +08:00
yangyawei e9003e3d01 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
2021-05-14 18:13:21 +08:00
Dmitry Tantsur 75487624e7 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
2021-04-26 09:25:23 +02:00
Zuul bb3f395abd Merge "Remove lower-constraints remnants" 2021-04-21 18:25:37 +00:00
Daniel Bengtsson faf37ce5e7 Move flake8 as a pre-commit local target.
The goal here is to avoid conflicts between flake8 and hacking version each
2 days.

Inspired from nova's approach[1].

The flake8 version to install will be determined by hacking and
requirements[2] will stay aligned instead of relying on different versions.

[1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35
[2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1

Change-Id: I62e23fa6f6fda4deb7ab98ac9e2e41d8adf7576b
2021-03-23 13:12:48 +01:00
wu.shiming 6878dbb4d8 Remove lower-constraints remnants
These were missed in change: I36fb12c92823d27e42975d4dc683ad8d99191a77

Change-Id: Ic757469ae8c9af7b0f83f94e2d902f33385f60ef
2021-02-20 09:47:22 +08:00
Zuul e9db67850d Merge "Use TOX_CONSTRAINTS_FILE" 2021-01-14 13:24:10 +00:00
Hervé Beraud ef848c3548 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
2020-12-18 15:05:57 +01:00
Zuul 3c909b19f9 Merge "ignore reno generated artifacts" 2020-11-09 16:49:28 +00:00
Hervé Beraud bbe0b094a0 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
2020-11-04 10:45:57 +01:00
Hervé Beraud 2c8ba37f5a Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update this at
each new cycle.

Wallaby support officially the following runtimes [1]:
- Python 3.6
- Python 3.8

During Victoria Python 3.7 was used as the default runtime [2] however this
version isn't longer officially supported.

[1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: Ica69c0f76229aad8e9feadd76b2fd69a0df116c8
2020-11-03 16:14:43 +01:00
Zuul c11f506706 Merge "Adding pre-commit" 2020-09-22 14:14:50 +00:00
Hervé Beraud 746b73d529 ignore reno generated artifacts
Change-Id: I6ed1f39c04cde4011d5c65b8c40332cc253695ba
2020-09-22 10:39:02 +02:00
Hervé Beraud be7bc9ecf9 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>
2020-09-22 10:37:04 +02:00
OpenStack Release Bot 3184b6a96e 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
2020-09-11 20:55:15 +00:00
OpenStack Release Bot 8c2cebee98 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
2020-09-11 20:55:12 +00:00
Sean McGinnis 649189dbc4
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>
2020-06-10 10:05:45 -05:00
Hervé Beraud 17ab8c01a8 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I2b2f006e0ec145730bec843add4147345797b920
2020-06-02 20:09:50 +02:00
Andreas Jaeger d5bc18e320 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
2020-05-26 08:56:49 +02:00
Andreas Jaeger 266192b11b 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
2020-05-09 14:39:58 +02:00
OpenStack Release Bot 056d78b178 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
2020-04-14 10:12:02 +00:00
Andreas Jaeger bc4ffa9f10 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Change-Id: Icff998ff9cd1d9af982c6ea9ae0a21cd6912e9e4
2020-03-30 12:00:21 +00:00
Daniel Bengtsson 9a4450c197 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
2020-02-14 15:59:07 +01:00
Andreas Jaeger 88a34966d7 Move docs linting to pep8
pep8 is our linting target, move linting runs to it.

Change-Id: I68f619f21b3df4e73bdb206754bf4449464007bb
2020-02-04 11:20:11 +01:00
Andreas Jaeger 3e241f33da [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

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

Cleanup tox.ini and setup.cfg from old cruft, use sphinx-build.

Change-Id: I395558c888d31925c26571f62ffc1ea556f2e2c4
Co-Authored-By: Hervé Beraud <hberaud@redhat.com>
2020-02-04 10:28:51 +01:00
OpenStack Release Bot ef6afda962 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
2019-09-20 16:21:03 +00:00
Zuul 0be4911f90 Merge "Add Python 3 Train unit tests" 2019-07-16 22:36:25 +00:00
Corey Bryant 47b2e16ee8 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
2019-07-05 14:39:10 -04:00
caoyuan cda35c5112 Replace git.openstack.org URLs with opendev.org URLs
1. Replace git.openstack.org URLs with opendev.org URLs
2. Remove unncessary "=="
3. Update some URLs to latest

Change-Id: Ie92843a4c2367060f6d4aae7a5766465c7766096
2019-06-27 21:03:07 +08:00
Hervé Beraud efa201ec05 Update Sphinx requirement
Sphinx 2.0 no longer works on python 2.7, so we need to start capping it
there.

Change-Id: I43bda145f4c48c06faf1848c5a51af7078b97e6e
2019-05-16 15:32:05 +02:00
Zuul 93aa94c643 Merge "Dropping the py35 testing" 2019-05-03 18:29:01 +00:00