Commit Graph

54 Commits

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

Change-Id: Iebcae312b2776a17ca6164c2c879f7ba8a683808
2024-01-16 22:24:36 +09:00
Takashi Kajinami 2930db4892 Remove compatibility with Python < 3.8
... because this library now supports only Python 3.8 or newer
versions.

Change-Id: Ibb48af4c501946b62a244994ecea5bfcd998810c
2023-10-07 12:01:26 +09:00
Ben Nemec cfa256464e Bump minimum version for PyYAML to 5.1
This addresses CVE-2017-18342. I doubt anyone is actually using an
old version of PyYAML with oslo.config at this point, but that means
it shouldn't hurt to bump the minimum either.

Change-Id: I4f440eb9511333ce70db4184857dcbcdd0ed1b97
Closes-Bug: 1839398
2021-02-18 18:23:54 +00:00
Doug Hellmann 392922aa33 drop use of pkg_resources
Importing pkg_resources scans all of the installed modules for data
that won't be used. Switch to using importlib.metdata, which more
efficiently loads the metadata for a package.

Change-Id: Idd2a0d0026fef9296172c9995b428ea43a746483
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2020-07-05 19:37:01 -04:00
Stephen Finucane 20a7cee3e3 Remove six
We don't need this in a Python 3-only world. We can't remove mock yet
since there's an issue with the stdlib variant in python3.6, but that is
called out.

Change-Id: I9657b1fd4409be90d645175a6e177d7e1d2ebac2
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2020-02-12 09:56:55 +00:00
Stephen Finucane 4e071eb034 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in Ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I13ce8e8264679a19c7b108381ccb969573ea9ac6
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Sem-Ver: api-break
2020-02-03 15:12:02 +00:00
Andrey Volkov 4a2b7af718 Resolve deprecation warning for rfc3986 uri validation
rfc3986.is_valid_uri is deprecated in 1.1.0. That generates a lot of
warnings: "Please use rfc3986.validators.Validator instead. This
method will be eventually removed.".

This patch updates URI type to use rfc3986.validators.
ValueError exception is preserved.

Change-Id: Ida56dfa17fca0080b74c1a80d5420ebed203431f
2018-12-25 14:56:21 +03:00
Doug Hellmann e233fc58da Add config_source option
Define a config_source option that can be used to specify the
alternative sources that require drivers to load configuration
settings.

Co-Authored-By: Moises Guimaraes de Medeiros <moguimar@redhat.com>
Change-Id: Ibd5a6d306bb98d30d973dfe3604dcc0691d2e369
Blueprint: oslo-config-drivers
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-25 10:17:12 +02:00
OpenStack Proposal Bot 6e3c3828f4 Updated from global requirements
Change-Id: I7d6132e63e46a0bf9876efe29617f04941288cbc
2018-03-15 07:47:33 +00:00
Doug Hellmann a9625c78d3 track the location where configuration options are set
Add a get_location() method to ConfigOpts to ask where the option
value was set. Update _do_get() to return this information based on
the search criteria.

The LocationInfo data structure has 2 fields. We are only using the
location for now, but the detail field will be filled in by changes
later in this series.

Change-Id: I3643c49b3de1850139913ce395199c238dbe6cf0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-02-05 14:26:41 -05:00
OpenStack Proposal Bot 32b073cc98 Updated from global requirements
Change-Id: Idc5253c597b9ad5f445df0bc73a2779409ab3f6a
2017-11-16 11:21:02 +00:00
OpenStack Proposal Bot 85daf7a6eb Updated from global requirements
Change-Id: I63f843b4d592e00a316b073f2984a187b90e1f34
2017-09-11 21:46:54 +00:00
OpenStack Proposal Bot 393275fadb Updated from global requirements
Change-Id: I0ec640ea8651d684e71229098581c948b1857508
2017-08-18 11:39:52 +00:00
OpenStack Proposal Bot 28b4e2b50b Updated from global requirements
Change-Id: Ied3e50a32ae6583333437e736d0911c4c168b6ca
2017-06-13 23:02:36 +00:00
Javier Pena e63f1f66d6 Add PyYAML as a requirement
https://review.openstack.org/451081 added a requirement on PyYAML
without explicitly including it in requirements.txt

Change-Id: Ib11f5262f3cfd451eeaf0bd4a0374ab7bbc38058
2017-06-05 10:11:35 +02:00
OpenStack Proposal Bot 741abca48e Updated from global requirements
Change-Id: I0c5efb33749823775358c2a5ea26c432615f4f62
2017-05-23 11:57:49 +00:00
OpenStack Proposal Bot dcdce8f44e Updated from global requirements
Change-Id: I08b39bbde8378d75dce026e03bb708f661195069
2017-03-03 00:02:50 +00:00
OpenStack Proposal Bot 54ccc7ad83 Updated from global requirements
Change-Id: I6e130711ae097a77118706d850c47f0dcaca8662
2017-01-10 18:50:50 +00:00
OpenStack Proposal Bot a8178f5880 Updated from global requirements
Change-Id: I475da83b3f93bf5aafc71734de29b320450e0eb8
2016-10-06 17:01:01 +00:00
OpenStack Proposal Bot 214dad4ff3 Updated from global requirements
Change-Id: Iac028eb972f64f0bdb8b1977343f409a30338a1f
2016-09-15 20:24:58 +00:00
OpenStack Proposal Bot 2377612116 Updated from global requirements
Change-Id: Ie86cda18070bb485b8648d3043460e3366d48490
2016-08-25 01:40:57 +00:00
OpenStack Proposal Bot 55c2026576 Updated from global requirements
Change-Id: Iafa292f1a77b03291311b4c1c34ea6daff6f943d
2016-07-17 23:58:38 +00:00
Masaki Matsushita 45ee2bed52 Add URIOpt
This change add URIOpt which validates string as URI.

Closes-Bug: #1500398
Change-Id: Ie8736b8654b9feb2a2b174159f08dbea03568d84
2016-06-17 13:39:39 +09:00
OpenStack Proposal Bot 792a43fbf4 Updated from global requirements
Change-Id: Ie3c5d1a17e3058fa48e658e2f70f25ce0ed968e2
2016-05-25 15:01:48 +00:00
Ronald Bradford 20e6e90b44 Added i18n formatting to log messages
Change-Id: I22143feee4ab936aac91b14f4dafb6fcdde07d7e
2016-05-23 13:38:09 -04:00
OpenStack Proposal Bot 9930ba4684 Updated from global requirements
Change-Id: I1a6994b709c87acaa8c682d3d8d575d4dcff6e9a
2016-05-10 00:48:33 +00:00
OpenStack Proposal Bot bc8f4e7ae3 Updated from global requirements
Change-Id: I6fec8e7628fbec19cf29a6afdfa234bf54c7d266
2016-04-19 12:27:52 +00:00
OpenStack Proposal Bot 08317298be Updated from global requirements
Change-Id: Ifdca550230ccc4e4687ed2d5a6f645f635e2bb1e
2016-02-11 07:43:34 +00:00
Andreas Jaeger 10215b26e7 Add debtcollector as requirement
oslo.config imports debtcollector but does not require it.

This now leads to build failures for projects importing oslo.config
like:
http://logs.openstack.org/97/277697/1/check/gate-openstack-manuals-tox-checkniceness/1729088/console.html#_2016-02-09_06_50_36_536

Change-Id: I4c598b338592a56c8a0b447c5fdfaf3f5c2f4876
2016-02-09 08:21:47 +01:00
Andreas Jaeger 9db24a4d9a Remove argparse from requirements
argparse was external in python 2.6 but not anymore, remove it
from requirements.

This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is really not needed.

Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
2016-01-20 12:54:50 +01:00
OpenStack Proposal Bot 37f137988d Updated from global requirements
Change-Id: I86f912188ee7803564dbb9af12a6f96ee6e0c79f
2016-01-16 03:31:05 +00:00
OpenStack Proposal Bot 7a9f4e7d67 Updated from global requirements
Change-Id: I529107e85456ea385e21a455166bc26b409da400
2015-08-31 15:35:23 +00:00
OpenStack Proposal Bot b3198a77c0 Updated from global requirements
Change-Id: Ie3078b99f9d11bc9d8d04de0d55d9d929b1e46fb
2015-06-22 08:26:57 +00:00
OpenStack Proposal Bot 795c5d1592 Updated from global requirements
Change-Id: I4d0c4f72ff8677d0c6ccc5f2e7be5c81c8b33ba0
2015-06-11 00:47:43 +00:00
Jamie Lennox cc9940f91e Remove pbr requirement
Oslo.config doesn't have a runtime dependency on PBR so remove it from
requirements.

Change-Id: I2b45bbffeca22811da09fb8431fc23f6926c6595
2015-05-26 17:13:58 +10:00
OpenStack Proposal Bot 0914bd1397 Updated from global requirements
Change-Id: If02a6f9f416e002d697a4d625ecae569dd8a8f8d
2015-05-07 23:36:33 +00:00
Doug Hellmann 2e32e5863f Uncap library requirements for liberty
Change-Id: I8a6a65bd51e8d6c748d0f1d48607d9882eaa6be3
Depends-On: Ib948b756b8e6ca47a4c9c44c48031e54b7386a06
2015-04-16 17:56:05 +00:00
OpenStack Proposal Bot dee52b4967 Updated from global requirements
Change-Id: I89c3229b448d1dae5ca0f0e63f82fb9ee2788046
2015-03-21 00:16:50 +00:00
OpenStack Proposal Bot a98dc254d3 Updated from global requirements
Change-Id: I897728cecd32a280dedd8936537421b283c6bb93
2015-02-20 13:58:42 +00:00
Jenkins e57aea86c5 Merge "Add pbr to installation requirements" 2014-11-25 22:12:24 +00:00
OpenStack Proposal Bot 73635ef078 Updated from global requirements
Change-Id: I80d8e794d443a34be1c8b3da8eef222c0948cca8
2014-10-27 12:20:57 +00:00
Doug Hellmann e140a1dd87 Add pbr to installation requirements
Add pbr to the list of installation requirements so that it is installed
via pip before this library is installed, instead of with easy_install.
This avoids issues like Bug #1384919, and ensures that projects that use
this library as a dependency are properly installed.

Change-Id: I6c155370dbd01fe4748d5137bdf288e8d3e1a67e
2014-10-24 09:26:01 -04:00
OpenStack Proposal Bot e82f6bb933 Updated from global requirements
Change-Id: Ifc3b21982b35ee6deac637cd438c5e31b0c9cacf
2014-09-23 02:00:15 +00:00
Jenkins 4d89f03818 Merge "warn against sorting requirements" 2014-09-11 15:09:45 +00:00
OpenStack Proposal Bot 6acc2dde71 Updated from global requirements
Change-Id: Id105ee1d495144517a684edd49116cba24060529
2014-09-04 17:54:35 +00:00
Doug Hellmann 64d3484748 warn against sorting requirements
Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e
Addresses-Bug: #1365061
2014-09-03 14:18:17 -04:00
Jenkins 3d3ca2ac3f Merge "Add oslo-config-generator" 2014-07-02 14:51:34 +00:00
Jakub Libosvar afab1f5266 Introduce Opts for IP addresses
In order to validate correct input values for IP addresses new Opt was
introduced. Validation is done on parsing level so there is no need to
explicitly check for valid ip address in the code.
Requirement for netaddr package was added.

DocImpact

Change-Id: I9adc30d9b989e8c636fefd435885c4c363ca540c
Partial-Bug: #1284684
2014-06-30 07:26:28 +01:00
Mark McLoughlin 97c6352008 Add oslo-config-generator
Add a sample config file generator utility. This is a dramatically
different approach from the generator in oslo-incubator, whereby we move
away from magic towards much more explicit control over the generator.

blueprint: oslo-config-generator
Closes-Bug: #1300546
Change-Id: I15686708fc9460948a58cfea3d18dae40ba1fda9
2014-06-26 14:20:22 +01:00
OpenStack Proposal Bot 63784a0df4 Updated from global requirements
Change-Id: I4f210812d4b2df3992b8444f384839b36f807123
2014-06-19 01:12:07 +00:00