Commit Graph

879 Commits

Author SHA1 Message Date
Zuul 5e0fa925f5 Merge "reno: Update master for unmaintained/xena" 2024-03-12 14:29:20 +00:00
Zuul 8966f550d7 Merge "reno: Update master for unmaintained/wallaby" 2024-03-12 14:24:58 +00:00
Zuul 5586acbdfc Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:11:28 +00:00
OpenStack Release Bot 5aaabf6a34 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: I44eb0d050f653f16e1135acb872166d238e29d15
2024-03-08 14:23:44 +00:00
OpenStack Release Bot 14bdc08319 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I42a12859aa2e1628d0431a6d0fcc0b3e43f20fbc
2024-03-07 14:27:37 +00:00
OpenStack Release Bot e3fc92d3cf reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

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

Change-Id: I6e233e29a86e0965220c5c3f0393aa6cc015c5b2
2024-03-07 14:18:20 +00:00
Zuul 17581b50bd Merge "pre-commit: Integrate bandit" 2024-02-20 12:35:33 +00:00
Zuul e46d63f2ec Merge "pre-commit: Bump versions" 2024-02-20 12:35:32 +00:00
Adam Rozman 72c80f6993 add <range-in> spec DSL operator
Add a new spec DSL operator called `range-in` that allowes users of
the spec_matcher to match values against numeric ranges.
The surrounding brackets determines whether the limit should be
inclusive or not.

examples:
 <range-in> [ 10 20 ]  : 10 <= x <= 20
 <range-in> ( 10 20 ]  : 10 <  x <= 20
 <range-in> [ 10 20 )  : 10 <= x <  20
 <range-in> ( 10 20 )  : 10 <  x <  20

Closes-Bug: #2052619
Change-Id: I444c01219d02ea7572d4b82117b89b8d3eb75e56
Signed-off-by: Adam Rozman <adam.rozman@est.tech>
Co-authored-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2024-02-19 13:23:13 +02:00
OpenStack Release Bot 093f20df8d reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ic0b7be56e16626bb8dd2b5267cf655dd2b57fa38
2024-02-06 14:29:48 +00:00
Zuul d83d22da0e Merge "Bump hacking" 2024-02-01 11:01:40 +00:00
Takashi Kajinami 619d312a18 pre-commit: Integrate bandit
We also remove these unnecessary linter dependencies from
test-requirements.txt.

The independent bandit target was removed because it's integrated to
the pep8 target.

Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: I0c9ca1f9310820c83667bffa2d1287d3daffccbc
2024-02-01 02:37:23 +09:00
Takashi Kajinami 2eb7a9fe62 pre-commit: Bump versions
hacking now has a native hook.

Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: Ia3c0e56c15614a59b608fcdfd1a4c2df3967607b
2024-02-01 02:20:50 +09:00
Zuul ad0f250230 Merge "Require pytz only in Python < 3.9" 2024-01-27 13:49:44 +00:00
Takashi Kajinami e159cfd424 Bump hacking
hacking 3.0.x is too old.

Change-Id: I665eb5f8aa70863ac5750d2162ddc7a053444b56
2024-01-26 01:17:39 +09:00
Ghanshyam Mann 701b09642e 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: I7308fb528048bce7aa0fe44ac466a05f1a576649
2024-01-11 16:38:03 -08:00
Zuul 945f7eddf5 Merge "Remove reference to monotonic on PyPI" 2023-12-19 18:56:04 +00:00
Rodolfo Alonso Hernandez 59f3a0dba2 Python-3.12: do not use datetime.datetime.utcnow()
This is deprecated in the favor of:
  datetime.datetime.now(datetime.timezone.utc)

In order to return a ``datetime.datetime`` object without the TZ
zone defined, the ``tzinfo`` member is deleted. That allows the
addition/substraction from offset-naive ``datetime.datetime`` objects.

Change-Id: Id345167e71bf576ec383b9d700f222343b08b249
2023-12-18 14:47:13 +00:00
Zuul 4c4c4e3c1b Merge "Remove strict from is_same_callback()" 2023-11-16 17:48:42 +00:00
Takashi Kajinami 569296d389 Require pytz only in Python < 3.9
ptyz is no longer required in Python >= 3.9 in favor of zoneinfo.

Also tzdata was added to requirements as a runtime dependency of
zoneinfo, which is only available in Python >= 3.9 and is not required
in Python 3.8.

Depends-on: https://review.opendev.org/c/openstack/requirements/+/901119
Change-Id: I9ab39a8d394c7063a33c699d277c7f4ed2151767
2023-11-16 08:41:24 +00:00
Zuul 505d80e557 Merge "versionutil: Remove trailing alpha/beta/rc suffix" 2023-11-07 20:28:13 +00:00
Takashi Kajinami 0588ba20d9 versionutil: Remove trailing alpha/beta/rc suffix
Sometimes we have to use the latest code instead of the latest release
to test upcoming changes (eg. sqlalchemy). In such case the version
string might contain its development status such as beta, and causes
failure while parsing the version string.

This makes the parse logic ignore the development status suffix to
avoid the failure.

Closes-Bug: #2042886
Change-Id: I27c14ede026c5600173047b1a0892a02a54dbb06
2023-11-08 02:19:55 +09:00
Zuul d58ba07f04 Merge "Fix missing PyYAML dependency" 2023-11-04 16:31:39 +00:00
Takashi Kajinami d6b9e846e4 Fix missing PyYAML dependency
PyYAML is required by oslo_utils.fileutils, but has been missing from
requirements.

Closes-Bug: #1977850
Change-Id: I80afbf26c92e20f64904e0e431360dd269b96f23
2023-10-07 11:12:53 +09:00
whoami-rajat cecf061e6e Mask chapsecret
Doesn't mask chapsecre
>>> strutils.mask_password("'chapsecre' : 'aaaaa'")
"'chapsecre' : 'aaaaa'"

Masks chapsecret
>>> strutils.mask_password("'chapsecret' : 'aaaaa'")
"'chapsecret' : '***'"

Closes-Bug: #2038466
Change-Id: Iae22a544ff69069b1b82b6ab3a885f3a19869287
2023-10-04 17:46:57 +00:00
OpenStack Proposal Bot a122f5c065 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ife474c6e16f8228c5ae28b062ab446047ca3bc6d
2023-09-08 04:01:37 +00:00
OpenStack Release Bot 7ef1004a98 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: Ifc44797b29130afa8fc7c668d8b6ca3c49b82702
2023-09-07 09:38:49 +00:00
OpenStack Proposal Bot a5941e8f84 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3525e493d197644c4d2c70a93eafecf877ba6933
2023-06-28 04:48:41 +00:00
Zuul 8115085dac Merge "Bump bandit" 2023-06-27 14:10:44 +00:00
Petr Vaněk 77c90bd6bd Replace deprecated assertAlmostEquals method
The assertAlmostEquals method has been deprecated since Python 3.2 and
was removed in Python 3.12 [1], assertAlmostEqual should be used as the
replacement.

[1] https://docs.python.org/3.13/whatsnew/3.12.html#removed

Change-Id: I1c1be8072e8be6aa5a0e876d08817b1255a31275
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
2023-06-22 12:03:58 +02:00
Zuul 7c2b949ce9 Merge "Add netutils.get_my_ipv6()" 2023-06-09 05:04:33 +00:00
Zuul 15da67c99e Merge "strutils: update string_to_bytes" 2023-06-01 20:52:08 +00:00
Zuul ed662b1654 Merge "Update units for current SI prefixes" 2023-06-01 14:13:37 +00:00
Brian Rosmaita c08e46d5ba strutils: update string_to_bytes
Update the string_to_bytes function to support current IEC/SI prefixes.

Change-Id: I9aa51df4825ffbe87598feb06821e8984cacd461
2023-05-31 13:28:24 -04:00
Brian Haley 650b31f8ea Add netutils.get_my_ipv6()
Analog to netutils.get_my_ipv4(), except will return an
IPv6 address on the local host.

Change-Id: I26812ca6eaaeff70796bafa9f735d15d80f1bc30
2023-05-24 13:58:29 +00:00
Hervé Beraud 7281cb96c1 Bump bandit
Change-Id: I3d594ef953b9d7bea0bad2b1459e1a30d58c20e6
2023-05-19 15:57:59 +02:00
Takashi Kajinami 2c8668c4e5 Fix compatibility with Python 3.8
We removed compatibility with Python 3.8 once but it was added back to
tested runtimes for 2023.2. Thus we have to make sure the code works
with Python 3.8, which was broken by [1].

Note that ptyz is added back to requirmenets.txt and is now required
regardless of the python version. This is a short term solution until
we figure out the way to fix the requirement-check job (or we again
remove python 3.8 support).

[1] 7d9fda625f

Change-Id: Ica344021a4e922bcfd20d20cffcce585a5742c8f
2023-05-15 17:29:46 +09:00
Zuul 439f39bdbf Merge "Revert "Moves supported python runtimes from version 3.8 to 3.10"" 2023-05-05 13:31:51 +00:00
Tobias Urdin c4746ef643 Remove reference to monotonic on PyPI
The monotonic module is no longer in use and
this comment is left here incorrectly.

Change-Id: Ie5f18dcd2d36cd637bfd799bde664ec13b51a711
2023-05-05 11:53:21 +00:00
Ghanshyam 541ba307e2 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit 8c63440f34.

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: I23797010c517205f71105fafb625379f071672b4
2023-05-04 20:18:53 +00:00
Zuul 328b6243c7 Merge "Implement zoneinfo support to drop dependency to pytz" 2023-04-17 11:26:34 +00:00
Hervé Beraud 8c63440f34 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: Iff1d2cd5ff16b1e6855bec95fdc9aca2911914d0
2023-04-10 01:51:40 +00:00
Brian Rosmaita 4cc5693190 Update units for current SI prefixes
Following Resolution 3 of the 27th General Conference on Weights
and Measures (CGPM) in 2022 [0], update oslo units to include
'ronna' and 'quetta' for decimal prefixes.  Although ISO/IEC
80000-13 has not yet been updated for the binary equivalents,
it's safe to assume ISO will follow current practice [1], so
those are added as well.

[0] https://www.bipm.org/en/cgpm-2022/resolution-3
[1] https://iopscience.iop.org/article/10.1088/1681-7575/ac6afd

Change-Id: I6e6b3fe9fe24533553f655a687a3c4e6714fde6f
2023-04-07 11:34:06 -04:00
Zuul c598fd15a6 Merge "Use the new openstack-python3-jobs template" 2023-03-28 08:07:02 +00:00
Hervé Beraud 7d9fda625f Implement zoneinfo support to drop dependency to pytz
Zoneinfo was introduced within python 3.9.

The support of pytz will be removed within RHEL 10 [1].

2023.2 (bobcat) will move our testing runtime to py3.9 and py3.10
so we want to see pytz removed within this series.

tzdata is required at runtime in our gates, because, by default,
zoneinfo uses the system’s time zone data if available; if no system
time zone data is available, the library will fall back to using the
first-party tzdata package available on PyPI. Apparently our gates have no
time zone data available nor tzdata installed by default because we get the
following error without tzdata installed [3]:
`ModuleNotFoundError: No module named 'tzdata'

So I prefer to add tzdata in our requirements to avoid runtime failure
related to time zone and ensure that time zone are always available.

[1] https://issues.redhat.com/browse/RHEL-219
[2] https://review.opendev.org/c/openstack/governance/+/872232
[3] https://zuul.opendev.org/t/openstack/build/0a1576775e894b09bc31269fea00ba03/log/job-output.txt#1445`

Depends-on: https://review.opendev.org/c/openstack/requirements/+/875854
Change-Id: I1f88bdadc68bfa726eac1da1c5824c1ed352ad98
2023-03-23 17:13:44 +01:00
Hervé Beraud 26a920efc6 Use the new openstack-python3-jobs template
release repository did not change to use the latest template for unit
test jobs. This patch removes the versioned template and replaces it
with the unversioned one (that was introduced with patch [1]).

[1] https://review.opendev.org/856903

Change-Id: I9420c82793ccab5c8fd522c2dda547d6ce439195
2023-03-23 17:13:44 +01:00
Takashi Kajinami 2319e6d328 Remove strict from is_same_callback()
The strict argument has been deprecated since 4.6.0 because it has no
effect in Python >=3.8 [1].

Because now this library supports only Python >=3.8, the logic for old
python versions can be removed.

[1] https://review.opendev.org/c/openstack/oslo.utils/+/750216

Related-Bug: #1841072
Change-Id: I5873c0df347a4e9a8a1fbfcf9f1212af14f7aef2
2023-03-15 03:31:45 +00:00
OpenStack Release Bot 067a0dbd10 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: Ic971c4dc343681e8016361a23ab88dc08621d8dd
2023-02-24 15:24:32 +00:00
Brian Rosmaita d49d594482 [imageutils] Fix __str__ for QemuImgInfo
Code is calling 'appened' on a list; correct this to 'append'.

Closes-bug: #1996426
Change-Id: I8729cf180f92f43519c942e22f3b285377a5612f
2022-11-11 16:18:15 -05:00