* Update oslo.utils from branch 'master'
to 5e0fa925f59bd33aed7697c62ae4c646cb204418
- Merge "reno: Update master for unmaintained/xena"
- reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.
Change-Id: I42a12859aa2e1628d0431a6d0fcc0b3e43f20fbc
* Update oslo.utils from branch 'master'
to 8966f550d7b775ce21758b79f38c447cf8341d3f
- Merge "reno: Update master for unmaintained/wallaby"
- reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.
Change-Id: I2192d2821322d24925557d2f0923b8296cfa08a6
* Update oslo.utils from branch 'master'
to 5586acbdfc01deb814c8cc7d532cf3af69a95285
- Merge "reno: Update master for unmaintained/victoria"
- reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.
Change-Id: I6e233e29a86e0965220c5c3f0393aa6cc015c5b2
* Update oslo.utils from branch 'master'
to 5aaabf6a34a80333372ac1e6861bc3bf90c9eace
- 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
* Update oslo.utils from branch 'master'
to 17581b50bd98628d8c1aef17fbfd6eb45114169c
- Merge "pre-commit: Integrate bandit"
- 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
* Update oslo.utils from branch 'master'
to e46d63f2ec40ba09bf8c21672e74c9fc9390ac4d
- Merge "pre-commit: Bump versions"
- pre-commit: Bump versions
hacking now has a native hook.
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: Ia3c0e56c15614a59b608fcdfd1a4c2df3967607b
* Update oslo.utils from branch 'master'
to 72c80f6993714816a33d8ce22019cee5b8180069
- 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>
* Update oslo.utils from branch 'master'
to 093f20df8da58f68dde9fe37783a97be49c47f68
- reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.
Change-Id: Ic0b7be56e16626bb8dd2b5267cf655dd2b57fa38
* Update oslo.utils from branch 'master'
to ad0f25023022e4ee7810e3281f7609ca1a10547c
- Merge "Require pytz only in Python < 3.9"
- 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
* Update oslo.utils from branch 'master'
to 701b09642edb3f8814f495e96b013e9355a095d8
- 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
* Update oslo.utils from branch 'master'
to 945f7eddf589c8b97ca1f6013c6ef267b2101ce1
- Merge "Remove reference to monotonic on PyPI"
- Remove reference to monotonic on PyPI
The monotonic module is no longer in use and
this comment is left here incorrectly.
Change-Id: Ie5f18dcd2d36cd637bfd799bde664ec13b51a711
* Update oslo.utils from branch 'master'
to 59f3a0dba287c4ca9248046a80f068893a687ad4
- 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
* Update oslo.utils from branch 'master'
to 4c4c4e3c1bc3387f553dfea00b40596ea955e462
- Merge "Remove strict from is_same_callback()"
- 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
* Update oslo.utils from branch 'master'
to 505d80e557631b8d78bd372fcec5832cfd916360
- Merge "versionutil: Remove trailing alpha/beta/rc suffix"
- 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
* Update oslo.utils from branch 'master'
to d58ba07f0404a3e654d0a608e919d0df0d0b3fe0
- Merge "Fix missing PyYAML dependency"
- Fix missing PyYAML dependency
PyYAML is required by oslo_utils.fileutils, but has been missing from
requirements.
Closes-Bug: #1977850
Change-Id: I80afbf26c92e20f64904e0e431360dd269b96f23
* Update oslo.utils from branch 'master'
to a122f5c065c346c9ca2218a9131a2a352e6b380f
- 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
* Update oslo.utils from branch 'master'
to 7ef1004a98c9828dd79b3b1a1d2171bbc5ed7230
- 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
* Update oslo.utils from branch 'master'
to a5941e8f845534e3604dacf2dfa9a87d224eeef8
- 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
* Update oslo.utils from branch 'master'
to 77c90bd6bdae52d6a4bd433d30ff98d3b7029664
- 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>
* Update oslo.utils from branch 'master'
to 7c2b949ce98b29e45db012ffade0acc5e8cb68b6
- Merge "Add netutils.get_my_ipv6()"
- Add netutils.get_my_ipv6()
Analog to netutils.get_my_ipv4(), except will return an
IPv6 address on the local host.
Change-Id: I26812ca6eaaeff70796bafa9f735d15d80f1bc30
* Update oslo.utils from branch 'master'
to 15da67c99ef88107af3614784bd34b8dbcafff9f
- Merge "strutils: update string_to_bytes"
- strutils: update string_to_bytes
Update the string_to_bytes function to support current IEC/SI prefixes.
Change-Id: I9aa51df4825ffbe87598feb06821e8984cacd461
* Update oslo.utils from branch 'master'
to ed662b165432c94e0375327127a9c3940f64b585
- Merge "Update units for current SI prefixes"
- 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
* Update oslo.utils from branch 'master'
to 2c8668c4e5ec30d3e19af97ff15aae232bf0984b
- 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] 7d9fda625fd5e16c91a9b95920c477f857193389
Change-Id: Ica344021a4e922bcfd20d20cffcce585a5742c8f
* Update oslo.utils from branch 'master'
to 328b6243c70518b1ad109bbabe1f0e7d30b327f8
- Merge "Implement zoneinfo support to drop dependency to pytz"
- 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
* Update oslo.utils from branch 'master'
to 8c63440f34ad7912ae07ca722a2fc3f76a4d30f2
- 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
* Update oslo.utils from branch 'master'
to c598fd15a66d390995a955e29571cde740d12e26
- Merge "Use the new openstack-python3-jobs template"
- 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
* Update oslo.utils from branch 'master'
to 067a0dbd10e795b8b246db49d19772ddf7e402c5
- 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
* Update oslo.utils from branch 'master'
to d49d5944824f15d00e04e1b9c7f8c3b03b440c95
- [imageutils] Fix __str__ for QemuImgInfo
Code is calling 'appened' on a list; correct this to 'append'.
Closes-bug: #1996426
Change-Id: I8729cf180f92f43519c942e22f3b285377a5612f
* Update oslo.utils from branch 'master'
to cb8076bbe4067b6b6fff5c2d5c629714ba3e92d7
- Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
Change-Id: Ifc167609013d83f7140efd1ad912ae83e75af773
* Update oslo.utils from branch 'master'
to 7deb3130c9fef13845957c584ba1d356cc451543
- 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: Ida38facc856fd53162da9cd6e59eab1c10ab889f
* Update oslo.utils from branch 'master'
to da17141ed5f031be40e3c4f8204bbd719e6aab62
- 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: I9fc3a12e0596370e9d602e178ba40ba7f5e6a098
* Update oslo.utils from branch 'master'
to 760deb9cc4441fe573e2757447d14f2a7ab8673f
- Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
Change-Id: I2834d2d5427efca3ab83cd04fd603efc02aab19a
* Update oslo.utils from branch 'master'
to 6a5d497069621107d00a274f79c41b07a9104457
- Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
Change-Id: Ib718d3ebd82a9fa81528775569c779e389bb8fdd
* Update oslo.utils from branch 'master'
to 7df64737c23f7e88cb4d8abe29245603864ed4f9
- Merge "Remove deprecated helpers from oslo_utils.timeutils"
- Remove deprecated helpers from oslo_utils.timeutils
Remove the 'isotime', 'strtime' and 'iso8601_from_timestamp' helpers
from 'oslo_utils.timeutils'. These are all available in the stdlib now.
Change-Id: If4afb9242b14c48cc70e409463865b7b644a919f
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Update oslo.utils from branch 'master'
to 3b7c49730ac2fcf1c47db3461737702e03325bce
- Merge "Remove oslo_utils.fnmatch"
- Remove oslo_utils.fnmatch
This has been deprecated for a long time. No need to keep it around any
longer.
Change-Id: I8273e164243e014a658b725a375e5632af211945
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Update oslo.utils from branch 'master'
to 48edac4ea3d98a670022c38a57c16b0903abe981
- Merge "requirements: Remove explicit pbr dependency"
- requirements: Remove explicit pbr dependency
We don't use this at runtime. No need to install it.
Change-Id: I5d7d526beebc39de2fa0ff8c6b1d2458c6a3d0bb
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Update oslo.utils from branch 'master'
to 6890f1ef2943a417aeb2320ba377a7de72eae442
- Merge "strutils: Defer import of pyparsing"
- strutils: Defer import of pyparsing
This is a slow import and the single user of it, the 'split_by_commas'
helper, does not appear to have any users outside of python-glareclient
(which is a dead project). We might want to remove the user at some
point, but for now simply defer loading of the library.
Change-Id: I91d0c6eec5333a660f995a9d1436e4b068693900
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Update oslo.utils from branch 'master'
to 383789ce70efb7070a69885f7fa7bb6e3d90af55
- 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: I0f9f23514867820fcf1d6397d08cde0dd15f29c8
* Update oslo.utils from branch 'master'
to de4429f2be5fa21d1f6e1cacbb3c8417a7c56310
- fix strutils password regex
Those regexes will fix Object style representation output.
See the payload used in tests for details. This kind
of output can be obtained by using the command:
```
$ openstack --debug
```
Co-Authored-By: Daniel Bengtsson <dbengt@redhat.com>
Change-Id: I9024be93b109d1b64ca736546c0f69db7a5e06d0
* Update oslo.utils from branch 'master'
to c03c07cd7223a485a1c86194ea3ec9f242316d28
- 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: I21bd17a734cfbc893169ffb42931c36d864be1d8
* Update oslo.utils from branch 'master'
to 7855d96c65651d617fdc2f9875b3e4319f56ec4d
- 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: If66133112990e5bcffa302b8802ded88f60a0116
* Update oslo.utils from branch 'master'
to ad49b3ace4424637df4bae91bf82820e27341bc1
- Fix formatting of release list
Change-Id: I678d0d3d9506709404d534dc1c68ed6f75445558
* Update oslo.utils from branch 'master'
to 6e17ae1f7959c64dfd20a5f67edf422e702426aa
- Fix regex used to mask password
Some use cases are poorly handled by the regex used
to mask password. Indeed when the password contains
quotes or double quotes in the middle such as `pass"word`,
the mask_password method will return `***"word`.
For more details please see
https://bugs.launchpad.net/oslo.utils/+bug/1949623
Closes-Bug: #1949623
Change-Id: I941750b4d49d2d75f0831b24d6dd17f4040f70a2
* Update oslo.utils from branch 'master'
to 95986ab43a70069e545f291d3119ffb105da2025
- Merge "Update python testing classifier"
- Update python testing classifier
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job
- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286
this commit updates the classifier in setup.cfg file.
[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html
Change-Id: I3a74a608fec5cc9f562c8a1cc99d3d35fc8d505a