summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Treinish <mtreinish@kortar.org>2020-03-30 07:15:56 -0400
committerStephen Finucane <stephenfin@redhat.com>2020-08-06 08:28:11 +0000
commit39fe3495d2954366b52126f2dc3c93a40e61e733 (patch)
treeb8d967c6b09ed3bc844203d810e5f1ed1121042a
parent206b795517a13d759f60ed9605eb03ca785ce10a (diff)
downloadpbr-39fe3495d2954366b52126f2dc3c93a40e61e733.tar.gz
Update python requires packaging metadata for package
The metadata field, 'python-requires' was introduced in PEP440 and appears to have superseded 'requires-python'. [1] The metadata that pbr uses for itself and it's test package was using the old incorrect field, this commit updates it to be the proper metadata to show a working example. To a certain extent it probably doesn't matter because it's very unlikely someone will try to install pbr with python 2.5, but it's more about making sure that pbr itself is leading by example and that it's own config actually works. [1] https://github.com/mtreinish/stestr/issues/292 Change-Id: I5eb14d490a3731b6b95d7a1137c33ec2d73f193f
-rw-r--r--pbr/tests/testpackage/setup.cfg2
-rw-r--r--setup.cfg2
2 files changed, 2 insertions, 2 deletions
diff --git a/pbr/tests/testpackage/setup.cfg b/pbr/tests/testpackage/setup.cfg
index 3929f0d..ab31e95 100644
--- a/pbr/tests/testpackage/setup.cfg
+++ b/pbr/tests/testpackage/setup.cfg
@@ -15,7 +15,7 @@ description-file =
README.txt
CHANGES.txt
description-content-type = text/plain; charset=UTF-8
-requires-python = >=2.5
+python-requires = >=2.5
requires-dist =
setuptools
diff --git a/setup.cfg b/setup.cfg
index 31d0f5c..f88d217 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -11,7 +11,7 @@ project_urls =
Bug Tracker = https://bugs.launchpad.net/pbr/
Documentation = https://docs.openstack.org/pbr/
Source Code = https://git.openstack.org/cgit/openstack-dev/pbr/
-requires-python = >=2.6
+python-requires = >=2.6
classifier =
Development Status :: 5 - Production/Stable
Environment :: Console