Commit Graph

385 Commits

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

Change-Id: Ib90feab6504a505a38546554c6f3529c8da341d9
2024-03-07 14:18:58 +00:00
Zuul 4c36dbc667 Merge "Bump hacking" 2024-01-25 12:45:29 +00:00
Takashi Kajinami b0337570dc Bump hacking
hacking 2.0.x is too old.

Change-Id: I50c2a9157b409b4a2118658b4693c5937c495663
2024-01-25 20:09:01 +09:00
Ghanshyam Mann 5d842eba59 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: I6c5afa34b7ebd5de17e6b6863547dcf7bbe6ebc9
2024-01-11 16:37:01 -08:00
Zuul e8c5d7093a Merge "Replace find_module function" 2024-01-07 07:29:28 +00:00
Zuul c6e1c3dba6 Merge "pre-commit: Bump versions" 2023-12-20 15:22:14 +00:00
Zuul fab42fa00e Merge "tox: Bump minimum to tox 4.x" 2023-12-20 15:22:12 +00:00
Zuul 7adcde6cff Merge "Remove usage of six" 2023-12-20 01:00:56 +00:00
Stephen Finucane 8d58720530 pre-commit: Bump versions
hacking now has a native hook.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: If6cabae85e036b019dfde82a007a5927ca5f3260
2023-12-19 17:41:04 +00:00
Stephen Finucane 629a2b20ac tox: Bump minimum to tox 4.x
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Iecab3e0d0f088e2433916970f27797cf0cd0a8e9
2023-12-19 17:39:32 +00:00
songwenping a814032763 Remove usage of six
Change-Id: Ifce6c18e1da1bb3eb0cff9f03a91cdd1a84dea4c
Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
2023-12-19 17:38:48 +00:00
Petr Vaněk 104cb896ea Replace find_module function
find_module function was deprecated in Python 3.4 [1] and later removed
in Python 3.12 [2], the find_spec function should be used instead. This
change is necessary for proper Python 3.12 support.

[1] https://docs.python.org/3.4/library/importlib.html#importlib.abc.MetaPathFinder.find_module
[2] https://github.com/python/cpython/issues/98040

Change-Id: I8354918d6548192dea3492eb2ee682d323559912
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
2023-06-21 17:36:53 +02:00
Ghanshyam 6a1bc5b477 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit 1f04434c62.

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: I5fe3a79a7521025c214968adc20e40e388db2a7b
2023-05-04 20:21:04 +00:00
Hervé Beraud 1f04434c62 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: I4f60aa523fc7d2b284086a28c1cdb1ff85a1860f
2023-04-10 01:54:58 +00:00
niuke 0a5932f537 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py

Change-Id: Ie233ab07100e84c97995468a75f82e932831328f
2022-08-13 08:42:20 +08:00
Hervé Beraud 21b5f4f3fa Fix formatting of release list
Change-Id: Iad538c1cee69eb0b07f58ab6fd39ec68eb345a39
2022-05-27 12:40:19 +02:00
Hervé Beraud 927c867c5d 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)

Also indicates that we support python 3.9.

Change-Id: If6fe6ac606052aad42ee5648efa9dcc4a482d09f
2022-05-05 16:22:27 +02:00
songwenping 49948dfad1 Remove unnecessary unicode prefixes
Change-Id: I554dee8e91468f8ea2dbcb99a925a2e9057ac378
2022-04-19 20:01:18 +08:00
Stephen Finucane 47fe8a263f 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/
Change-Id: If5322168fca2e6b045c9fe81b764a587cd3b30e1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-03-15 15:07:47 +00:00
YuehuiLei d4b189682c 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: Id0c81ac91849d1d8dc661df73fe96d16d28b783a
2021-05-04 10:44:43 +08:00
Zuul 36d743165e Merge "Use TOX_CONSTRAINTS_FILE" 2021-04-21 16:06:24 +00:00
Zuul e138b9f764 Merge "Document unit of measure for OS_TEST_TIMEOUT" 2021-04-21 16:00:28 +00:00
Zuul 37dbb86ef9 Merge "Remove lower-constraints remnants" 2021-04-21 16:00:25 +00:00
zhangboye c26aa6ac19 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>.

Change-Id: I842b17f6bf705071d93902ca40250bc79ae66d6d
2021-04-21 15:49:12 +00:00
Sorin Sbarnea 9cbf1963ea Document unit of measure for OS_TEST_TIMEOUT
Change-Id: Ie4b80481de69d0c9c376a1c21309ddeff9b5cef6
2021-04-01 11:43:31 +01:00
Daniel Bengtsson 2b05a2fc1f 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: Ice225c7a1a731991175487c44f70348349911149
2021-03-23 13:17:07 +01:00
wu.shiming 0d208eb0aa Remove lower-constraints remnants
These were missed in change: I63153d3258e10d232f86f7a8b652eb7028aab4c6

Change-Id: I47388f13483d2938208ba385be4c94731e79e3ae
2021-02-20 09:28:34 +08:00
Zuul 3539da4479 Merge "Use py3 as the default runtime for tox" 2021-01-21 15:05:26 +00:00
Zuul 9a931b7351 Merge "Use TOX_CONSTRAINTS_FILE" 2021-01-14 10:50:22 +00:00
Hervé Beraud 8763180670 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: I63153d3258e10d232f86f7a8b652eb7028aab4c6
2020-12-18 15:14:44 +01:00
Hervé Beraud 333b7375fd 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: I9b345814296b5c6269d2634fc42b947f95cad389
2020-11-04 10:52:45 +01:00
Hervé Beraud b591174f3b 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: I06b805afb6c3c936b55a9e322cf406e424aeb8bc
2020-11-04 10:06:12 +01:00
Zuul 12e73eaf43 Merge "Adding pre-commit" 2020-09-22 11:41:04 +00:00
Hervé Beraud 2f4cb354f7 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: Icd2a9bded756b2bcba1fb7da6abe48503fd9b2d6
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-15 17:10:31 +02:00
OpenStack Release Bot 47d76c448a 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: Ibb0e762ac3d81001c2bc763c668296eca0ae172a
2020-09-11 21:02:55 +00:00
OpenStack Release Bot ce65c03ee4 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: I28b32d2a00289e883851ba636cec8b5838d94d17
Sem-Ver: feature
2020-09-11 21:02:53 +00:00
Zuul aaf3a726ba Merge "Align contributing doc with oslo's policy" 2020-06-30 16:11:50 +00:00
Zuul bc223f9b1d Merge "Revert "Revert "Switch to unittest.mock from mock""" 2020-06-08 09:06:23 +00:00
Hervé Beraud 5a0d3c2fa5 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: Ia9cdcfb75cc91dc5f93f02d07ad389c8c7d622fe
2020-06-02 20:42:08 +02:00
Zuul a789adbd22 Merge "Add release notes links to doc index" 2020-05-26 12:30:28 +00:00
Andreas Jaeger 58b40e7f2a Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 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

Update Sphinx version as well.

Create doc/requirements.txt file and use it, remove docs requirements
from lower-constraints, they are not needed
during install or test but only for docs building.

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.

Set openstackdocs_auto_name to use 'project' as name.

Depends-On: https://review.opendev.org/728938
Change-Id: Ic3503a8b38e67e50669428b36f6581cb980d687f
2020-05-18 20:59:21 +02:00
Hervé Beraud 6923a12aca Align contributing doc with oslo's policy
Related to:
- https://review.opendev.org/#/c/723044/
- https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Change-Id: Icd9bc152910712e1ecb571e5801bd5c9038af5dd
2020-05-04 18:32:57 +02:00
Zuul fefdd870d0 Merge "Add py38 package metadata" 2020-04-27 08:59:00 +00:00
Sean McGinnis aed3f5eab5
Bump default tox env from py37 to py38
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: I0675da8241f60e8699f2aa80b13773d9284cc3ae
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:52 -05:00
Sean McGinnis bc625c7154
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: Ia72c3b021f57798a22a0b8b947eb192e045890a5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:14 -05:00
Hervé Beraud 92fce72557 Add release notes links to doc index
Change-Id: If1faca1d9914177c555c86b882047be32718d114
2020-04-16 17:42:01 +02:00
OpenStack Release Bot 091ca229bd Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ic8717c57ec2063701c89e7f3974201b779ba9f15
2020-04-14 10:19:11 +00:00
OpenStack Release Bot 98f29f83ae 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: Ie92dd5f0d5f0a958429572c5772f91a07ae8a8b7
Sem-Ver: feature
2020-04-14 10:19:09 +00:00
Ben Nemec 21beb1537f Revert "Revert "Switch to unittest.mock from mock""
This reverts commit c743e68f72af45b24f783a271368aa07923c00d9.

Change-Id: Ia5a87ec7a65703692cba2edf8aa01202dab68173
2020-04-03 14:24:43 +00:00
Ben Nemec cdee551ae6 Revert "Switch to unittest.mock from mock"
This reverts commit ffdf6f10be.

Switching oslotest to unittest.mock has broken a bunch of other
projects because they were (incorrectly) relying on oslotest to
pull in third-party mock for them. Until we get everyone migrated,
let's hold off on doing this for oslotest.

Change-Id: I0bdca39686f3653a56f9e4a554662727e2dbaafd
2020-04-03 14:24:35 +00:00