Commit Graph

61 Commits

Author SHA1 Message Date
Takashi Kajinami 8e118445bf Remove old excludes
These are detected as errors since the clean up was done[1] in
the requirements repository.

[1] 314734e938f107cbd5ebcc7af4d9167c11347406

Change-Id: Ib07225b219f6a17decc8eac22fd63a5f19be7138
2024-05-01 11:42:28 +09:00
Zuul 9b62848ffe Merge "pre-commit: Integrate bandit" 2024-01-28 09:00:02 +00:00
Stephen Finucane 7f90f0cabd pre-commit: Integrate bandit
We also remove these unnecessary linter dependencies from
test-requirements.txt.

Change-Id: I6c3c5fcc329c46054a144557a79c4b3c6ca383b5
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2024-01-03 12:12:19 +00:00
Takashi Kajinami 9aaea368e4 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: Icb5bffbeb3da0582332c420ec2b4ceac1a58966b
2023-11-16 23:03:42 +09:00
Hervé Beraud 61c460f3f2 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 pytz 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] a326ec5eea

Change-Id: I3b222bb59260dff7a06a5ed48720df3dc8c74ea7
2023-05-16 10:24:51 +02:00
Hervé Beraud a326ec5eea 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: I8d87d54f6f5ded8caee6cb780bacb39afea0fea1
2023-03-23 17:17:59 +01:00
Daniel Bengtsson 3847688ab7 Remove the yamlutils module.
The pyyaml is now safe by default:

https://github.com/yaml/pyyaml/pull/74/files
https://access.redhat.com/security/cve/CVE-2017-18342
https://github.com/search?q=oslo.serialization+yamlutils+user%3Aopenstack+language%3APython&type=Code

So the yamlutils is now useless. No project in OpenStack used this
module. We can remove it.

Sem-Ver: api-break
Change-Id: If0a98f1e15d83131cb309e02f892372f353fa5da
2020-06-08 11:44:27 +02:00
Stephen Finucane ad356ea9c2 Drop use of six
Another one bites the dust.

Change-Id: I1fadcad8219322b569eeecd81e454a44641e8b1e
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-03-02 10:10:22 +00:00
Daniel Bengtsson 84363e91a0 Deprecated the yamlutils module.
The pyyaml is now safe by default:

https://github.com/yaml/pyyaml/pull/74/files
https://access.redhat.com/security/cve/CVE-2017-18342

So the yamlutils is now useless. We can depracated it and then remove it.

Change-Id: I4ecb34eee942c714d09d2258db80f5b8d61dec89
2020-02-14 13:03:14 +01:00
Hervé Beraud 35dae9c288 Introduce a base yaml parser for all openstack components
A lot of openstack components like:
- solum
- tosca-parser
- heat
- murano
- etc...

reimplement theirs own yaml parser for loading and dumping.

These implementations sometimes forgot to use a safe loader
or safe dumper, our implementation use safe by default.

You can deactive safe by passing the argument is_safe to false when
you call oslo_serialization.yamlutils.load or oslo_serialization.yamlutils.dump.

Change-Id: I63e85a2b4fc999e6acac12ae51c2ab8c64bddbc6
Co-Authored-By: Natal Ngétal <hobbestigrou@erakis.eu>
2019-02-21 17:34:38 +01:00
Morgan d5855294a8 Stop using encoding='utf-8' with msgpack
msgpack is throwing a warning that the unpacker has deprecated the use
of encoding argument. Instead the unpacker uses `raw=False`, which
does an unpack with similar behavior to the old encoding='utf-8'
mechanism.

This will reduce a lot of warning spam for projects using msgpack
such as Keystone. The change to the kwarg "raw" from "bytes_as_raw"
happned between 0.5.1 and 0.5.2. Changing the lower constraint is
required to ensure the new arguments are matching the method
signature.

Change-Id: Iadbee3ec8def9512369a415fb4603dc05d0cbc56
2018-06-03 00:25:50 -07:00
Morgan Fainberg bd10ae04a1 Unblock requirements changes
Add ipaddress===1.0.17 to unblock updates of requirements.

Update requirements.txt for msgpack to be 0.5.1 matching
lower-constraints.txt

Change-Id: I94e0dd9dc54822a6fa8daf6d2dce1f203451cb22
2018-06-03 00:24:48 -07:00
Dirk Mueller 277730036f msgpack-python has been renamed to msgpack
Change-Id: I265723d0734d35309258af26eb921cde1b318d00
Related-Bug: #1743445
2018-01-15 20:44:04 +01:00
OpenStack Proposal Bot 9ac1d6b3e7 Updated from global requirements
Change-Id: Ic77fae57c5972e4c95250197ecb46bfe83a9a18b
2017-12-19 01:39:31 +00:00
OpenStack Proposal Bot 640ce4f506 Updated from global requirements
Change-Id: Iefee26f914d54c160794a4bd28f0815b5e15ce7c
2017-11-16 11:21:57 +00:00
OpenStack Proposal Bot 922673c8e0 Updated from global requirements
Change-Id: If26fd6dbcd85611b0d7561b6bee4308e3587aa01
2017-11-12 21:14:25 +00:00
OpenStack Proposal Bot 8989ad3052 Updated from global requirements
Change-Id: I225d6ddc9d3f173e4f54a85ba0f6f3523e4b6656
2017-09-11 21:47:24 +00:00
OpenStack Proposal Bot 7fded98036 Updated from global requirements
Change-Id: I6634af9cb35a4c7a9e9ff04ba9745a4d608f7ad5
2017-04-12 04:20:20 +00:00
OpenStack Proposal Bot 279da59d17 Updated from global requirements
Change-Id: Ib76611efc7723a4cffe56188958739d63de6145e
2017-03-03 00:03:20 +00:00
OpenStack Proposal Bot 1dc9e0de3c Updated from global requirements
Change-Id: I3fe045fff363c96e711ebb3f991e4646c70c338d
2016-11-09 04:23:03 +00:00
OpenStack Proposal Bot eb0132efb6 Updated from global requirements
Change-Id: Ibc6f1ac2b545f68866666c891adc84cef1366ba5
2016-11-06 02:06:01 +00:00
OpenStack Proposal Bot 0e17d0b5f2 Updated from global requirements
Change-Id: Idec21f411f8cfc5df4351839b842e709558e6123
2016-10-22 01:26:14 +00:00
OpenStack Proposal Bot afb53323a1 Updated from global requirements
Change-Id: Ib76f363aba1eaf059799c4b954ddf296269ff390
2016-07-29 02:34:03 +00:00
OpenStack Proposal Bot 7ad9a95800 Updated from global requirements
Change-Id: I4e8b08864afacea4261d48e403ce159faae36da8
2016-07-09 19:26:04 +00:00
OpenStack Proposal Bot 5ee90fcb0e Updated from global requirements
Change-Id: I6ffc7b5b8ba947ce08c5e2484a4536b7719d9581
2016-06-30 18:48:37 +00:00
OpenStack Proposal Bot 8a4cac92bc Updated from global requirements
Change-Id: Iecdb59fdb7059e74c59e9414b4516cccbb96b828
2016-06-01 13:53:25 +00:00
OpenStack Proposal Bot 9bb6d42532 Updated from global requirements
Change-Id: Idfafa1e4760f2b2e3bd2c6f9c6d5f36278e07e06
2016-05-31 03:05:31 +00:00
Joshua Harlow 8985675d98 Drop babel as requirement since its not used
See the following thread for more details.

http://lists.openstack.org/pipermail/openstack-dev/2016-April/thread.html#92510

Change-Id: I9858ca0961da0df82f4313b7fd91bb80a2b8935c
2016-04-20 18:44:56 -07:00
OpenStack Proposal Bot 82758dacc0 Updated from global requirements
Change-Id: I9f2ffebde681dae012801cdb54600002bdb44570
2016-04-13 12:47:41 +00:00
OpenStack Proposal Bot 6b5116b6ff Updated from global requirements
Change-Id: Iced8bfd6e53943cb8b47177646a68523e07fa5b0
2016-02-20 21:59:44 +00:00
OpenStack Proposal Bot b8f2ac8c14 Updated from global requirements
Change-Id: I14a93976fa8b25690d6042e721b365aa20fb6e2d
2016-01-18 22:45:10 +00:00
OpenStack Proposal Bot ef8da69263 Updated from global requirements
Change-Id: Idea92d3bfab4192bf3080cd6c32e392a91bc79ee
2016-01-16 03:31:27 +00:00
ChangBo Guo(gcb) 972d3fd8ae Remove iso8601 dependency
oslo.serialization doesn't use iso8601 in anywhere,
so need remove the dependency.
Change-Id: I5bfcb024d7f831365af93fdfd6122d6d71faf87a
2015-12-16 14:55:29 +08:00
OpenStack Proposal Bot 32b9629573 Updated from global requirements
Change-Id: I9187c178b1f6b13dfe744718de8b865168ac6bac
2015-12-15 18:59:20 +00:00
OpenStack Proposal Bot f4a136ecac Updated from global requirements
Change-Id: I8b116b194760bfe6ef6fdb10b099d51bbda35c8d
2015-12-11 15:24:36 +00:00
OpenStack Proposal Bot 62d0fa2cfb Updated from global requirements
Change-Id: Ie5b421a5a7e12dda0bf65cb400985c64f61fda69
2015-11-18 20:51:02 +00:00
OpenStack Proposal Bot 136fe0f838 Updated from global requirements
Change-Id: I4bd9947ffa7485787ddd04ea13e477d7a3771308
2015-10-19 23:32:08 +00:00
OpenStack Proposal Bot a8626ea9f9 Updated from global requirements
Change-Id: I370ebbed14ee09a457100e1d01044da731361abf
2015-10-16 01:00:09 +00:00
OpenStack Proposal Bot f49cc0289b Updated from global requirements
Change-Id: I2e3f93d17765f6fdc1b124adfc31ec4d58914e6b
2015-09-17 12:16:12 +00:00
OpenStack Proposal Bot db9c140c84 Updated from global requirements
Change-Id: Ia44c2fe29ee7b0d409fa276e7e436805525aecc4
2015-08-26 14:07:17 +00:00
OpenStack Proposal Bot ed9a042959 Updated from global requirements
Change-Id: I7922d813751317627a1e2b36f46cf705e0f523af
2015-08-13 20:21:09 +00:00
OpenStack Proposal Bot 03abee129f Updated from global requirements
Change-Id: I9ca09ecee823f99240751288ca610b216a954f12
2015-08-10 01:09:42 +00:00
OpenStack Proposal Bot 6e067fa55e Updated from global requirements
Change-Id: I4e0a987f24a8827c373106dd9e78e55e4cb33864
2015-07-15 01:36:45 +00:00
OpenStack Proposal Bot dd9e1c0ca4 Updated from global requirements
Change-Id: I5f4fbf5d2af97069483a74348e90eb20eb149697
2015-06-22 08:27:16 +00:00
OpenStack Proposal Bot ce7dbc0722 Updated from global requirements
Change-Id: I16d4f90f02e93d4453271e0df6804fcd1832a5a4
2015-06-16 19:22:31 +00:00
OpenStack Proposal Bot a72da17725 Updated from global requirements
Change-Id: I3878594d44730dcca9a54346a4d4c3ca5a9a40ad
2015-05-07 23:36:48 +00:00
Doug Hellmann b2c235e914 Uncap library requirements for liberty
Change-Id: Icda4d8f757b8f466747e67c9e5024b7514d4ec09
Depends-On: Ib948b756b8e6ca47a4c9c44c48031e54b7386a06
2015-04-16 18:08:08 +00:00
OpenStack Proposal Bot ef8657f2a6 Updated from global requirements
Change-Id: I96a4579e6c1e48aa54c54479f343384bf4f568e7
2015-03-21 00:17:09 +00:00
OpenStack Proposal Bot 7bfd5dece0 Updated from global requirements
Change-Id: I564375256fe0ebcc05d7d8572dade1fab3e4a793
2015-02-20 13:59:00 +00:00
Joshua Harlow c89b3f8039 add dependency warning to requirements.txt
Change-Id: I3b04199d9a96635172f87f3c0505e7176bf1c1dc
2015-02-14 19:04:07 -08:00