summaryrefslogtreecommitdiff
path: root/pbr/hooks/backwards.py
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-06-19 12:15:20 +1200
committerRobert Collins <rbtcollins@hp.com>2015-06-19 13:58:42 +1200
commit4b1503849c33cb9b6c0c0cb8b3322204d396249e (patch)
tree8fa86172f27943494c585728faacd45ad3b9f3f1 /pbr/hooks/backwards.py
parente41a9180ed3103bb45fa1d1be93ba951016b029c (diff)
downloadpbr-4b1503849c33cb9b6c0c0cb8b3322204d396249e.tar.gz
Strip markers from test requirements.1.2.0
Setuptools doesn't [yet] support markeres in tests_require parameters to setup(). While we need to get that fixed, we also need to support syncing marker constrained requirements from global-requirements. Since version constraints are needed to successfully port to Python3 this won't be a long term viable solution: but few of our test-only dependencies require version constraints, so we can do this in the interim. The ones that do - such as python-mysql - we're either moving away from, or centralising them into optional dependencies on other packages where the tests_require limitation shouldn't apply. Change-Id: I31adaf35c8d7b72fe3f8c9242cc356fe34d537e8
Diffstat (limited to 'pbr/hooks/backwards.py')
-rw-r--r--pbr/hooks/backwards.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pbr/hooks/backwards.py b/pbr/hooks/backwards.py
index adbacbf..01f07ab 100644
--- a/pbr/hooks/backwards.py
+++ b/pbr/hooks/backwards.py
@@ -29,4 +29,5 @@ class BackwardsCompatConfig(base.BaseConfig):
packaging.append_text_list(
self.config, 'tests_require',
packaging.parse_requirements(
- packaging.TEST_REQUIREMENTS_FILES))
+ packaging.TEST_REQUIREMENTS_FILES,
+ strip_markers=True))