Commit Graph

430 Commits

Author SHA1 Message Date
Zuul 69d2b0d517 Merge "reno: Update master for unmaintained/xena" 2024-03-12 14:28:35 +00:00
Zuul 711097b14d Merge "reno: Update master for unmaintained/wallaby" 2024-03-12 14:21:48 +00:00
Zuul ddffa5e00e Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:13:13 +00:00
OpenStack Release Bot 82186ba347 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: I94979c39ffd94c2ea86226ebb4f01d92d60cf372
2024-03-08 14:24:03 +00:00
OpenStack Release Bot 41342e6a2c reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: Ibde337a1b69a4c4c45686657fde0326692d1ff57
2024-03-07 14:28:16 +00:00
OpenStack Release Bot 199ea517a0 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I80464fe755c4e4ab819c80496a8344ffa8967018
2024-03-07 14:23:56 +00:00
OpenStack Release Bot f2997c4dfc reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I218f31b3228a70795a48d681da4e2efae9208d62
2024-03-07 14:19:22 +00:00
Takashi Kajinami 21d601f3f5 pre-commit: Integrate bandit
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: I4698730bddf343c9699beb0c6389e38ba15794d2
2024-02-11 02:56:42 +09:00
Takashi Kajinami cc5be5b4e0 pre-commit: Bump versions
hacking now has a native hook.

Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: Ia24ccb13b8a5e276b3ac7083410665ac3eb29c8c
2024-02-11 02:53:15 +09:00
OpenStack Release Bot 602912b638 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ib7395f75de93a0590b82220cd405d677c3e29440
2024-02-06 14:30:21 +00:00
Zuul 62a6030458 Merge "Bump hacking" 2024-01-31 18:22:29 +00:00
Takashi Kajinami c45df9ab79 Bump hacking
hacking 3.0.x is too old.

Change-Id: If3dcc5719fcaf920499e9f176ef2a08a8ae98867
2024-01-28 16:06:48 +09:00
Ghanshyam Mann 81f6d7ee1c 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: Id3d768eb7de341b83a8702e5c7788ab6df765169
2024-01-11 16:37:41 -08:00
OpenStack Release Bot 111fc2ecbd 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: Id463a556a276fb1d4b9877fafcbecc5b79b89ee6
2023-09-07 09:39:19 +00:00
Zuul 2d99cccf9a Merge "Revert "Moves supported python runtimes from version 3.8 to 3.10"" 2023-05-08 11:15:48 +00:00
Ghanshyam cc8f04e5f0 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit da129b1c53.

Keeping Python 3.10 in setup.cfg classifier and zuul.yaml changes. 

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: Ibf0960703d78ccfcb39421ee4b1cfee2c787d85a
2023-05-05 18:50:48 +00:00
Zuul a2a4fa3642 Merge "Moves supported python runtimes from version 3.8 to 3.10" 2023-04-11 11:28:04 +00:00
Zuul cff1cb4334 Merge "Catch NotADirectoryError error" 2023-04-11 11:28:03 +00:00
Takashi Kajinami da129b1c53 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: I1a6a349a3fc37c8afcb908d95622176c74ba5fbf
2023-04-10 14:37:20 +09:00
OpenStack Release Bot 43a79dd0ef 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: I9d9ccd7a52c0ca41a433620fedd959243aac5cb6
2023-02-24 15:26:05 +00:00
Zuul c4acc5639f Merge "Remove Extension.extras" 2023-01-23 16:01:39 +00:00
Ian Wienand 5189992d71
Order old importlib-metadata results by group
A Debian Buster-based zuul-jobs test started failing when using stestr
recently [1].  Upon further investigation, this is a Python 3.7
environment which is affected by a recent breaking change to
importlib_metadata.

It seems stevedore worked around this with
Ib9c2b0a14edea91e97d122d2ac93b650029f918e, which was released with
3.5.1 -- but I was still seeing the issue.

Upon further investigation, the "real_groups" dict being returned here
with importlib-metadata 4.12.0 is in buckets by group, e.g.

 {'group.one': [EntryPoint(name='foo', ... , group='group.one'),
                EntryPoint(name='bar', ... , group='group.one')],
  'group.two': [EntryPoint(name='moo', ... , group='group.two'),
                EntryPoint(name='goo', ... , group='group.two')],
 }

This current code seems to return a dict with entry-points by thier
name, e.g.

 {'foo': EntryPoint(name='foo', ... , group='group.one),
  'bar': EntryPoint(name='bar', ... , group='group.one),
  'moo': EntryPoint(name='moo', ... , group='group.two),
  'goo': EntryPoint(name='goo', ... , group='group.two)
 }

This reorgansies the fixup routine to put entry-points in a bucket by
their group.  With this change, stestr is again finding it's command
plugins.

[1] https://github.com/mtreinish/stestr/issues/336
[2] https://github.com/python/importlib_metadata/issues/409

Change-Id: I3496ab1dfa312b1098a869cdfd9a0c6f81653b28
2022-10-19 07:57:43 +11:00
Zuul 9eb809421d Merge "Add Python3 antelope unit tests" 2022-10-05 15:24:14 +00:00
Zuul 135e285ec6 Merge "Fix compatibility with Python 3.12, importlib-metadata 5.0" 2022-10-05 11:56:41 +00:00
Zuul ae36c47165 Merge "Fix compatibility with Python 3.10, 3.9.11" 2022-10-05 11:56:39 +00:00
Stephen Finucane 7eca3f5661 Remove Extension.extras
The behavior of the 'EntryPoint.extras` attribute that this exposes has
changed in recent versions of 'importlib_metadata'/'importlib.metadata'.
In change Iff536d4f4267efbebc4be1e7e5da8a9fde39f79b we applied a
temporary fix to preserve the legacy behavior on these newer versions,
however, given that this is actually a deprecated attribute [1], the
best long-term option seems to be not exposing things. Do just that.

[1] https://packaging.python.org/en/latest/specifications/entry-points/#data-model

Change-Id: Id772d9f002e6945666685138bdef8f8ca32b5229
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-10-04 17:26:32 +01:00
Stephen Finucane 28fc7164da Fix compatibility with Python 3.12, importlib-metadata 5.0
importlib-metadata 5.0 has removed support for dict-style interaction
with entrypoints [1]. This is going to eventually affect us when Python
3.12 is released but even before then anyone not properly using upper
constraints with an older Python 3.7-based release (the only Python
version where we require the third-party importlib-metadata package
rather than the stdlib importlib.metadata package) will be bitten. Fix
it now to address both.

[1] dde2b9de29

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ib9c2b0a14edea91e97d122d2ac93b650029f918e
Closes-Bug: #1991559
2022-10-04 11:24:25 +01:00
Stephen Finucane 663d56c953 Fix compatibility with Python 3.10, 3.9.11
A fix to 'importlib.metadata' in Python 3.10 [1], later backported to
3.9 and released in 3.9.11 [2], has broken our tests. Fix them.

[1] b1e2868607
[2] 177be52517

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Closes-bug: #1966040
Change-Id: Iff536d4f4267efbebc4be1e7e5da8a9fde39f79b
2022-10-04 11:23:17 +01:00
Zuul 13a9c2799a Merge "remove unicode from code" 2022-10-03 16:27:53 +00:00
Stephen Finucane 462be040a6 Catch NotADirectoryError error
Per the documentation [1]:

  exception NotADirectoryError
    Raised when a directory operation (such as os.listdir()) is
    requested on something which is not a directory. On most POSIX
    platforms, it may also be raised if an operation attempts to open or
    traverse a non-directory file as if it were a directory. Corresponds
    to errno ENOTDIR.

Apparently creating a packaged application can cause this issue. There's
no harm in ignoring it so do just that.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Closes-bug: #1980383
Change-Id: I19b14c7f3b70bee5310cafcaa90fcee9003713c6
2022-09-09 17:01:58 +01:00
OpenStack Release Bot 8c546cb6c8 Add Python3 antelope unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope.

See also the PTI in governance [1].

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

Change-Id: Ibf3e8d63a7a43e65ac626e50ef42831c4a9b5e41
2022-09-09 09:19:31 +00:00
OpenStack Release Bot 55e9e1e5e8 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: I258603f7e7304c3e852d6d47bae5e024e33a90f7
2022-09-09 09:19:30 +00:00
wangjiaqi07 c13ac8a0cc remove unicode from code
Change-Id: Ib4c9f766b2844d8a3cdc748fbd9ef98b81aec5a5
2022-08-25 09:14:44 +08:00
Takashi Kajinami ccd17543a3 Fix remaining logic to support Python 3.6/7
... because this library no longer supports these old versions and
requires Python >= 3.8 now[1].

[1] 8efaa1ceb8

Change-Id: I2b229b24425d3afb9159b2479bd9547e3443011f
2022-06-21 21:54:06 +09:00
Hervé Beraud 8efaa1ceb8 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: I1bdec397b1ac563b09174763c20e8a91e5f86143
2022-05-05 16:02:13 +02:00
OpenStack Release Bot 3e10666e14 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

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

Change-Id: I5fab51857949a743a07d4639f5e0ba114de19eab
2022-03-04 17:20:49 +00:00
OpenStack Release Bot 15d258c29e Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: I732f42ae437931a824aba788bf434f85100f06fa
2022-03-04 17:20:47 +00:00
OpenStack Release Bot 442f157193 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

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

Change-Id: Ia489c3d9a47828961b7a8fe736c3bc1ddaaa32cc
2021-09-10 14:41:12 +00:00
OpenStack Release Bot ba9469f41e Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

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

Sem-Ver: feature
Change-Id: I6195a346563189a6867482950b13eda11e0fb5d2
2021-09-10 14:41:10 +00:00
Jason R. Coombs 11da137e3f Rely on member access, the preferred access since importlib_metadata 4.8.
Change-Id: I20a7fe4240cf78e6b863951740c2d0fe9aa28132
Closes: #1941991
2021-09-01 10:55:33 +01:00
Zuul 8846a3f24a Merge "setup.cfg: Replace dashes with underscores" 2021-05-26 18:46:18 +00:00
Zuul e32c2a0396 Merge "Fix formatting of release list" 2021-05-26 17:20:19 +00:00
maaoyu cba482114c 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: I394e12bf1816e4e23e4f547db4bae89547af7989
2021-05-04 10:08:29 +08:00
Zuul 31c58f24e7 Merge "Add Python3 xena unit tests" 2021-04-16 14:03:43 +00:00
Pierre Riteau ba1268da18 Fix formatting of release list
Change-Id: I86d06e8b665e4440f6c67e1de8cd3a217ac1d166
2021-04-16 14:22:50 +02:00
wu.shiming 74d6d5867b Remove lower-constraints remnants
These were missed in change: I62d911111b54976a9df726c48f593a52e275fe6c

Change-Id: I4f07ec3617d5e73abbabd45234fe4e67ec395fdb
2021-04-16 11:03:09 +00:00
Zuul 3ce59eee72 Merge "Update master for stable/wallaby" 2021-04-15 18:06:53 +00:00
Daniel Bengtsson 53838531be 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: I9ffd46865477b3fa7d43258d67dd0ec224ee6467
2021-03-23 13:11:54 +01:00
OpenStack Release Bot 518948a489 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: Ib5e435c53f7719b6e64a550c0aec6a2d0d576839
2021-03-18 11:33:52 +00:00
OpenStack Release Bot 107308ac1d Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

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

Sem-Ver: feature
Change-Id: I73998aa60325a26fc11418a0b37c1f4524469e32
2021-03-18 11:33:41 +00:00