Commit Graph

94 Commits

Author SHA1 Message Date
Takashi Kajinami 14ffe72e39 Bump hacking
hacking 3.0.x is too old.

Change-Id: I3293136b291c38803c701f7aabf0ec896d164944
2024-01-28 00:00:08 +09:00
liyou01 5ff06df97f Remove Python 2 support
Python 2 has been deprecated for almost two years, and has not been
guaranteed to work with glance_store for a while. This patch removes all
traces of six, unicode strings and Python 2 tweaks.

Co-Authored-By: Cyril Roelandt <cyril@redhat.com>
Change-Id: Ifa78924d7ecf4f2d9a54c677888ab2926530c487
2022-05-25 04:42:06 +02:00
Erno Kuvaja d05024afc3 Fix lower_constraints and requirements
Change-Id: I6c232e80ed5975e156f6ddf34e9a8944ac35f2d6
2020-12-18 11:11:40 +00:00
Ade Lee a34419aecd Replace md5 with oslo version
md5 is not an approved algorithm in FIPS mode, and trying to
instantiate a hashlib.md5() will fail when the system is running in
FIPS mode.

md5 is allowed when in a non-security context.  There is a plan to
add a keyword parameter (usedforsecurity) to hashlib.md5() to annotate
whether or not the instance is being used in a security context.

In the case where it is not, the instantiation of md5 will be allowed.
See https://bugs.python.org/issue9216 for more details.

Some downstream python versions already support this parameter.  To
support these versions, a new encapsulation of md5() has been added to
oslo_utils.  See https://review.opendev.org/#/c/750031/

This patch is to replace the instances of hashlib.md5() with this new
encapsulation, adding an annotation indicating whether the usage is
a security context or not.

It looks like the uses of the md5 are primarily for checksums and
generation of etags.

With this patch, all the unit and functional tests appear to pass
on a FIPS enabled system.

Change-Id: I0603ba217d6dc19f5c9f73c60c7b365efd28d30b
Depends-On: https://review.opendev.org/#/c/760160
2020-11-11 13:40:46 -05:00
Hervé Beraud ab4c9fd15c Cap jsonschema 3.2.0 as the minimal version
Previous versions of jsonschema (<3.2.0) doesn't support python 3.8 [1].
Python 3.8 is part of the victoria supported runtimes [2] so we now force
to use jsonschema version 3.2.0 to avoid issues, remove ambiguity and ensure
that everything works with python 3 in general.

[1] https://github.com/Julian/jsonschema/pull/627
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: I097b2d0349083cad1908db8dc25a33d9ad492adb
2020-05-26 21:49:22 +02:00
Andreas Jaeger 8ba16057db Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I12ecea6b3cfcca8edd5adedac91f906d77f4ff36
2020-04-05 08:20:21 +02:00
Tony Breeds a42acbb60a Uncap jsonschema
We have jsonschema capped at a fairly old version. Other than some
specific releases, it looks like keeping it below 3.0 was added in
I943fd68b9fab3bce1764305a5058df5339470757 without really any explanation
why.

In order to update to a 3.x release we need to:
1. Remove the cap from global-requirements.txt (see Depends-On), leaving
   upper-constraints.txt at a 2.x release
2. Remove the cap from all consumers (this change)
3. Release a new version of consumers that are published to pypi
4. Update upper-constraints.txt with those new releases
5. Update jsonschema in upper-constraints.txt to a 3.X release
   (See: https://review.openstack.org/649789)
6. Test consumers with the change from 5.
7. [Optional] fix issues in consumers that arise from 6.
8. Merge the change from 5.

Change-Id: Iaabde1c8e8a9d23952e499810715adac992f67cc
Co-Authored-by: Sean McGinnis <sean.mcginnis@gmail.com>
Depends-On: https://review.openstack.org/649669
2019-04-04 13:59:37 +11:00
James Page ef44579c35 Move doc8 to test requirements
doc8 is not required to use this module, only for style
checking of RST documentation.

Move from requirements.txt -> test-requirements.txt to avoid
generating a run-time dependency on doc8.

Change-Id: I3ae3909401eb53d4442e6d369228e235e1d5d60e
2018-08-14 14:23:44 +01:00
Doug Hellmann ea8631cad0 uncap eventlet
We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

Change-Id: If1bbf13b94f301d3d3330439c9352050ee030ed7
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-11 11:52:23 -04:00
OpenStack Proposal Bot 6d97ea212b Updated from global requirements
Change-Id: Ib6a5cae62c27c9cce648665426d2d798835ff76b
2018-03-26 08:02:39 +00:00
OpenStack Proposal Bot 07f76ca158 Updated from global requirements
Change-Id: Ib9ab50dc3f7e526da7511032b5986adbe1585c43
2018-03-15 06:56:08 +00:00
OpenStack Proposal Bot 7fa5c57222 Updated from global requirements
Change-Id: Iabcfed5d75d1bf84a4abe27ab750759bfc922715
2018-02-17 09:28:09 +00:00
Hoang Trung Hieu 2a32fb63fa Add doc8 to pep8 check for glance_store project
This patch adds a doc8 check of .rst files to the current pep8 check.
It includes fixes to the .rst files that didn't pass the check.

Co-authored-By: Nguyen Van Trung <trungnv@vn.fujitsu.com>
Change-Id: If35a7a9ea64c7482306ef6403e9585b78da27fb9
2018-02-01 09:11:53 +07:00
OpenStack Proposal Bot 87a0702d9b Updated from global requirements
Change-Id: Ibedbbbc52723e4ba1bc050322b4d86d5635490bb
2018-01-16 12:27:02 +00:00
OpenStack Proposal Bot de3be54437 Updated from global requirements
Change-Id: Iae6c32991d5899441105c2ac5d96a97f0912937f
2017-12-19 01:16:06 +00:00
OpenStack Proposal Bot 013f4de731 Updated from global requirements
Change-Id: Id63aa141797eaba43de75415c6038752c5887016
2017-12-05 03:02:28 +00:00
OpenStack Proposal Bot e076d6122f Updated from global requirements
Change-Id: Id2e6c51f67a1360f1f609d58c0083fa0b0a43752
2017-11-29 08:55:10 +00:00
OpenStack Proposal Bot 45e3c49ad5 Updated from global requirements
Change-Id: Id3935c9a7294eb02ace95abbe5378b7afd2ee081
2017-11-16 11:03:26 +00:00
OpenStack Proposal Bot ff5a739783 Updated from global requirements
Change-Id: I11f51a48f51370250f5bb0f724b9b1ebcd2a5af6
2017-11-14 03:56:39 +00:00
OpenStack Proposal Bot 705153fa18 Updated from global requirements
Change-Id: Ia690fc4881e5aa1a60eebd2d1085e5a5e14eeed4
2017-09-16 23:11:48 +00:00
OpenStack Proposal Bot cb20d7a676 Updated from global requirements
Change-Id: I549a5b935edd60b4a2754e0b4ba00a1353653960
2017-09-13 12:50:11 +00:00
OpenStack Proposal Bot 01a846152a Updated from global requirements
Change-Id: I5f5e7f460d6a1eb3dc0e0a22bf5310009728dfdd
2017-09-01 12:35:44 +00:00
OpenStack Proposal Bot aa365092ae Updated from global requirements
Change-Id: Iff6f44f183a0e011c8d1338d3e77f5a60370d2b7
2017-07-28 04:14:10 +00:00
OpenStack Proposal Bot 246baf8542 Updated from global requirements
Change-Id: I5e8336c9102cbf79ab64b7b0cd2eb1832029f779
2017-07-23 13:41:31 +00:00
OpenStack Proposal Bot 7ac6e99f4b Updated from global requirements
Change-Id: I4760baca3f2bf2bfca4dc02bdc68584740ba211c
2017-07-18 01:45:48 +00:00
OpenStack Proposal Bot 74ed580ea1 Updated from global requirements
Change-Id: Ib2f5e6051f3205b4994f2f832b501052b402d247
2017-06-15 16:22:56 +00:00
Jenkins 5bae81f9ef Merge "Remove debtcollector in requirements.txt" 2017-03-22 21:36:39 +00:00
OpenStack Proposal Bot 2f1f18b4b4 Updated from global requirements
Change-Id: Ia0e03bbf431e0fa984d8ea576c5abee2a33956cc
2017-03-15 04:18:40 +00:00
OpenStack Proposal Bot c596b64fbb Updated from global requirements
Change-Id: I5959d1506846b0495987b14655847d800e54ad27
2017-03-03 22:48:54 +00:00
OpenStack Proposal Bot b5d6686f70 Updated from global requirements
Change-Id: I230fff0bb64be9e3a8485d94c8c3786feab73a50
2017-03-01 04:06:30 +00:00
OpenStack Proposal Bot cd86c4304a Updated from global requirements
Change-Id: I3555871b9158d0d7d05cd59b11c567bbc67ab2bc
2017-02-11 17:41:49 +00:00
OpenStack Proposal Bot ee6840c92e Updated from global requirements
Change-Id: If9e8f2a842f95ff716338493dc0aaefd367c8618
2017-01-16 17:18:28 +00:00
Li Wei d266491b20 Remove debtcollector in requirements.txt
We have not use debtcollector in whole glance_store,
so remove it in requirements.txt.

Change-Id: I6c4f559d896cc9dc632ea5e33ddba20753f1b026
2017-01-10 07:53:56 +00:00
OpenStack Proposal Bot 042ab6235e Updated from global requirements
Change-Id: I4a35292131d240cde15aa64652afef46f246e6a1
2016-12-15 03:47:08 +00:00
OpenStack Proposal Bot bdad99eabb Updated from global requirements
Change-Id: Ifd9402de4e24c0f50e1681bf37fbf704c4fe08bc
2016-11-08 21:34:48 +00:00
Jamie Lennox 4d7703b934 Convert to keystoneauth
A direct conversion of keystoneclient usage to the newer supported
keystoneauth library. The libraries are largely compatible and there
should be no issues swapping between them.

This doesn't fix any problems of the way auth is used, it just changes
out the library.

Change-Id: Ibe212e17150a3c750e9c2536a4c869d87e9d4e13
2016-11-02 09:53:07 +11:00
OpenStack Proposal Bot 9ba10d8e25 Updated from global requirements
Change-Id: I3d21acc45dd4bffa217f4429fc4e2542bfd03bc5
2016-10-27 12:13:27 +00:00
OpenStack Proposal Bot d46c997e81 Updated from global requirements
Change-Id: Ifdf2bb1b074c684570e086d93d508873f12c38b3
2016-10-06 16:54:47 +00:00
OpenStack Proposal Bot ec5ec71bbf Updated from global requirements
Change-Id: Ida8c040a68c1e08a285cf0dac1a71f621b8cde9e
2016-08-12 04:33:47 +00:00
OpenStack Proposal Bot 51f86dbe81 Updated from global requirements
Change-Id: I47dc6a045691d76856132a4cb68c4f7f2d83845a
2016-08-04 02:34:48 +00:00
OpenStack Proposal Bot 3fe4e0022e Updated from global requirements
Change-Id: I4edae05f26c2978d17e3df604dfedb83fc5e8289
2016-07-29 02:28:01 +00:00
OpenStack Proposal Bot c1ba85406e Updated from global requirements
Change-Id: Id8e6de6a7109156f9b04e833a1f420b919f8c00b
2016-07-18 15:27:37 +00:00
OpenStack Proposal Bot 6e7c7229ab Updated from global requirements
Change-Id: I58598d380cc64bbe4ce1aa5af0031875a342c0b0
2016-06-30 18:42:18 +00:00
OpenStack Proposal Bot a678c26dee Updated from global requirements
Change-Id: Id7c185ae48531a1f052d70c69cf7f2cfb0640712
2016-06-08 15:08:13 +00:00
OpenStack Proposal Bot 9a588122aa Updated from global requirements
Change-Id: Icc920b9a7f6a0720aa75acee831e779764f7ad27
2016-06-01 13:47:47 +00:00
OpenStack Proposal Bot 922233fa4d Updated from global requirements
Change-Id: I9f21e3ad5c7f91749adc8909d548798906d5abd4
2016-05-31 03:00:06 +00:00
OpenStack Proposal Bot 2e933191ae Updated from global requirements
Change-Id: Idc583c898ae87d58df350aafa46cf443074e366c
2016-05-21 15:46:32 +00:00
OpenStack Proposal Bot 8eda73bb0d Updated from global requirements
Change-Id: I9c0a91a100d0f8b0525f2bb8d15e1d1aa32fc2c7
2016-05-17 14:03:24 +00:00
OpenStack Proposal Bot 40dded6c77 Updated from global requirements
Change-Id: I722aaf80e7717fb7ce848d6aafe9c4bb9f1d7e93
2016-05-10 00:43:46 +00:00
OpenStack Proposal Bot 7b439d64bb Updated from global requirements
Change-Id: I63f6b8995624b793e7b1892b5a65b04c020f339c
2016-04-19 12:23:15 +00:00