Commit Graph

446 Commits

Author SHA1 Message Date
Zuul 497979dcc8 Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:11:40 +00:00
OpenStack Release Bot 4566c7bf2a Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.

Sem-Ver: feature
Change-Id: I31e524579c89ea758aa513a26ebcc3cd91a05aaa
2024-03-08 14:22:24 +00:00
OpenStack Release Bot 16c06ce8c9 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I6ade3aaebd6f0882deccd579b276514b70fa2bd4
2024-03-07 14:15:49 +00:00
Takashi Kajinami 0531fb2895 Display coverage report
... for easy reference. Also make sure old data is purged.

Change-Id: I21ae0232f1d803ecf7dc524273517eda57c0cfd5
2024-02-07 12:13:58 +09:00
Takashi Kajinami 106ad5f374 Bump hacking
hacking 3.0.x is too old.

Change-Id: Id9565ec8a49d6482b6de1527d6ab190eb9594372
2024-01-26 01:28:26 +09:00
Ghanshyam Mann 7141083732 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: I32050b2c51c80aec8a092baa25c8be30bf31a6f5
2024-01-11 16:18:49 -08:00
Michał Górny 151fa09cf0 Fix leftover `locale.getdefaultlocale` mock
Replace the remaining `locale.getdefaultlocale` mock with
`locale.getlocale`.  77a994a993 has
replaced the `locale.getdefaultlocale()` call and updated all other
mocks but this one remained, causing test failures on non-en_US locales.

Closes-Bug: 2043539
Change-Id: I5ab36a0ead05fa7a83fc1c64e440482f2cc8e675
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-11-15 09:19:38 +01:00
Zuul 4bcda7821b Merge "Bump bandit" 2023-10-11 13:36:39 +00:00
Zuul 740af568bb Merge "The locale.getdefaultlocale is deprecated" 2023-09-14 10:18:19 +00:00
OpenStack Release Bot 3dd3fa761a Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: If21a094585e20ee4ea64e87e045b81230b683cb4
2023-09-07 09:36:42 +00:00
Hervé Beraud 05f9961e7a Bump bandit
Change-Id: I5ade4b39983998c1e159da6181292a3f3d229b26
2023-05-17 17:31:58 +02:00
OpenStack Proposal Bot e356fe9059 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie858653ff62f309fc29a67dd62e3db746028f20e
2023-05-09 02:36:19 +00:00
OpenStack Proposal Bot a74cbd9810 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I536264140a77d0b41cd13c25b48a0d073952cf57
2023-05-06 03:45:03 +00:00
Zuul 9b95cc4865 Merge "Revert "Moves supported python runtimes from version 3.8 to 3.10"" 2023-05-05 13:46:08 +00:00
Ghanshyam 47d6d34028 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit 14ac5fab80.

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: Iab7a827564dcea7fc0c5274289e93b489d5e10f9
2023-05-04 20:19:45 +00:00
Zuul 007bebe945 Merge "Moves supported python runtimes from version 3.8 to 3.10" 2023-04-11 11:50:50 +00:00
Zuul 8148d97886 Merge "tox: Remove 'ignore_base_python_conflict'" 2023-04-11 11:22:27 +00:00
Hervé Beraud 14ac5fab80 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: Ifb4a66646308a2b20bd3bcbe76a6a9743a64df5c
2023-04-10 01:53:20 +00:00
Pete Zaitcev 77a994a993 The locale.getdefaultlocale is deprecated
This patch is prompted by the following deprecation warning:

DeprecationWarning: Use setlocale(), getencoding() and getlocale() instead

But getdefaultlocale() is scheduled to be removed in Python
3.13, so we need to act anyway.

We use LC_CTYPE as the most compatible setting. Probablly what
we really want for translations is LANG, but that is not a
valid argument for getlocale(). Fortunately, LC_CTYPE is set
when the environment variable LANG is set, so this works for us.

Change-Id: I07bdbaf95108aa4fdb4c645c12b196dcb820059b
2023-03-08 20:06:26 -06:00
OpenStack Release Bot 567dd0561f Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: Ie602618acbd1d67f603c2809b69f55eccae8bcbd
2023-02-24 15:18:17 +00:00
Stephen Finucane a90c449968 tox: Remove 'ignore_base_python_conflict'
We don't need this in a world where Python 3 is the default Python
version in virtually all environments.

We also reshuffle the file to make the ordering a little more logical.

Change-Id: I1c207c4310b9617770e6097ce9a583789f7ce85b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-02-17 11:38:42 +00:00
Zuul 03605c2db7 Merge "Fix formatting of release list" 2022-07-14 10:30:17 +00:00
OpenStack Proposal Bot ec3e85ced7 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Icf8b4a1da48695a02a2ec711f7fea4e71fbe4fb1
2022-06-21 03:44:53 +00:00
Hervé Beraud 6646d61bec Fix formatting of release list
Change-Id: Icd17b5267d455e8e6f9cd7feafa8598c73dd58ea
2022-05-27 11:59:08 +02:00
Hervé Beraud 599620d03f 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: Id6e56045d3b5a45a215c56d4216d71ddff078e1a
2022-05-05 16:08:51 +02:00
songwenping 342d388803 Remove unnecessary unicode prefixes
Change-Id: Ia75cc0c9fd5117b22b54fe872b28a4164faedf9a
2022-04-19 19:31:26 +08:00
Zuul f718684d59 Merge "setup.cfg: Replace dashes by underscores" 2022-03-22 14:06:22 +00:00
Stephen Finucane baa89fb2f4 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: I2ae92713a304ba24157fe0b8580bed691f3811e5
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-03-15 15:07:13 +00:00
Takashi Kajinami 7f70059bb9 setup.cfg: Replace dashes by underscores
Since setuptools v54.1.0[1], the parmeters with dash have been
deprecated in favor of the new parameters with underscore.

This change updates the parameters accordingly to avoid the warnings
like the example below.

  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: Ic8f41ec0a4acf3084312781bebb65f30b2f8a6d5
2022-02-06 02:15:36 +09:00
Zuul b031d17b2f Merge "Switch testing to Xena testing runtime" 2021-08-10 09:51:24 +00:00
yangyawei c7d9354323 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I75d9aa9aafc692f7bc67be59ee20523eb07d573d
2021-06-07 16:32:54 +08:00
yangyawei f42d0cebb4 Switch testing to Xena testing runtime
Upating the tetsing template to Xena testing runtime:
https://governance.openstack.org/tc/reference/runtimes/xena.html

Change-Id: I611811b3393f24934c4f336ed05dd121a760f488
2021-05-27 03:21:22 +08:00
wu.shiming bd049f5114 Upgrade the pre-commit-hooks version
[1] 9136088a24

Change-Id: Ifee3a178a8f09463fe28ed066f2e6f9b42cdb017
2021-05-18 11:07:20 +08:00
Zuul a06067de3b Merge "Fix hacking min version to 3.0.1" 2021-04-16 13:16:51 +00:00
Zuul d1a7808032 Merge "Use py3 as the default runtime for tox" 2021-04-16 13:02:29 +00:00
Zuul 11ea59e436 Merge "Use TOX_CONSTRAINTS_FILE" 2021-04-16 12:42:51 +00:00
Daniel Bengtsson 08a5a58e8c Fix requirements issues
This patch is the merge of 2 current fixes that need to be solved in the
same time. Indeed each issue lock our gates independently.

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

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

Co-authored-by: Hervé Beraud <hberaud@redhat.com>
Change-Id: Ic2242c5fc9d3bd03b87d9728449c3eb6e1ce8043
2021-03-30 11:47:05 +02:00
haixin 8609dc2c4c Remove all usage of six library
Replace six with Python 3 style code.

Change-Id: I3d2b0f7a78d4914913a3af3b68388392bf30b982
2020-11-26 14:41:12 +08:00
Hervé Beraud 5ee531c61d 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: I7b312f1ecbf468c2b22a735ab9623247d6b5c05b
2020-11-04 10:48:01 +01:00
Hervé Beraud bf972ec1f2 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: I8042501ae7a721c9fb6cb469799e2186f7dbf7ac
2020-11-04 10:02:08 +01:00
zhoulinhui 720230d9dd Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I87fdbf691c0b2b0abdf629b358d875d955b14015
2020-10-16 01:19:48 +00:00
Zuul 3cf0406eae Merge "Adding pre-commit" 2020-10-05 17:13:37 +00:00
wangzihao 912849fe1a Remove six.PY3
The Python 2.7 Support has been dropped since Ussuri.
So remove hacking rules for compatibility between python 2 and 3.

Change-Id: Ibed92787d66227fec0cf48c78de8a24f9b39cc52
2020-09-23 09:37:53 +00:00
Hervé Beraud 05356e6ac8 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: I093ca79022578b99bdb3ef78e887eef9bc3310ad
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-22 10:27:36 +02:00
OpenStack Release Bot 598fb7c4a9 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: If63177eccdf9fbd0041f4c93b82107af7abb3ac1
2020-09-11 20:57:42 +00:00
OpenStack Release Bot bc370d0f35 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: Ife7309afd4dc06ea258d696deb7509114b0bc2ff
Sem-Ver: feature
2020-09-11 20:57:40 +00:00
Moisés Guimarães de Medeiros 73187bd869 Bump bandit version
This patch bumps bandit allowed version to >=1.6.0,<1.7.0 in order to
avoid the errors detailed here https://github.com/PyCQA/bandit/pull/393

Change-Id: I0d07c9051addcbef37d48bfa84d612ef45ea105c
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-07-24 17:33:21 +02:00
Zuul bccb3aa758 Merge "Align contributing doc with oslo's policy" 2020-06-30 16:10:15 +00:00
Zuul 761ce99588 Merge "Add release notes links to doc index" 2020-06-03 10:15:09 +00:00
Hervé Beraud adc7f0c1fc 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: If01e22f2c01fdde9fc3569c243e805207b9cad88
2020-06-02 20:39:08 +02:00