summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2014-07-21 08:00:59 -0700
committerMonty Taylor <mordred@inaugust.com>2014-07-21 08:00:59 -0700
commitee94082d4884dafea419c321bec40aa22244d07f (patch)
tree5f06cbe9800804c5cc528565e0b7aadbf87cd081
parentc2aab3b27f03887606b49711a7db9a21b72a60c1 (diff)
downloadpbr-ee94082d4884dafea419c321bec40aa22244d07f.tar.gz
Remove all 2.7 filtering0.10.20.10.0
ordereddict and importlib used to break when attempted to install on python 2.7 - but this situation seems to have improved in modern pip/setuptools. Remove the logic and support for this. Change-Id: I49d9c9ee3108ad7ec9537f3fcec62e84d4de1680
-rw-r--r--pbr/packaging.py7
-rw-r--r--pbr/tests/test_setup.py14
2 files changed, 0 insertions, 21 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index f88f54f..471ed85 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -49,9 +49,6 @@ from pbr import extra_files
TRUE_VALUES = ('true', '1', 'yes')
REQUIREMENTS_FILES = ('requirements.txt', 'tools/pip-requires')
TEST_REQUIREMENTS_FILES = ('test-requirements.txt', 'tools/test-requires')
-# part of the standard library starting with 2.7
-# adding it to the requirements list screws distro installs
-BROKEN_ON_27 = ('importlib', 'ordereddict')
def get_requirements_files():
@@ -153,10 +150,6 @@ def parse_requirements(requirements_files=None):
elif re.match(r'\s*-f\s+', line):
line = None
reason = 'Index Location'
- elif (project_name and
- project_name in BROKEN_ON_27 and sys.version_info >= (2, 7)):
- line = None
- reason = 'Python 2.6 only dependency'
if line is not None:
requirements.append(line)
diff --git a/pbr/tests/test_setup.py b/pbr/tests/test_setup.py
index 1a35b34..44436df 100644
--- a/pbr/tests/test_setup.py
+++ b/pbr/tests/test_setup.py
@@ -304,20 +304,6 @@ class ParseRequirementsTest(base.BaseTestCase):
fh.write("-f foobar")
self.assertEqual([], packaging.parse_requirements([self.tmp_file]))
- def test_parse_requirements_removes_versioned_ordereddict(self):
- self.useFixture(fixtures.MonkeyPatch('sys.version_info', (2, 7)))
- with open(self.tmp_file, 'w') as fh:
- fh.write("ordereddict==1.0.1")
- self.assertEqual([], packaging.parse_requirements([self.tmp_file]))
-
- def test_parse_requirements_keeps_versioned_ordereddict(self):
- self.useFixture(fixtures.MonkeyPatch('sys.version_info', (2, 6)))
- with open(self.tmp_file, 'w') as fh:
- fh.write("ordereddict==1.0.1")
- self.assertEqual([
- "ordereddict==1.0.1"],
- packaging.parse_requirements([self.tmp_file]))
-
def test_parse_requirements_override_with_env(self):
with open(self.tmp_file, 'w') as fh:
fh.write("foo\nbar")