From 179ecb38fddb94050282b94b66b88594db6af029 Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Mar 14 2019 14:57:08 +0000 Subject: Restrict version of PyYAML on Python 2.6 Newer versions of the library don't seem to work with such old Python. Signed-off-by: Lubomír Sedlář --- diff --git a/requirements/pypi.txt b/requirements/pypi.txt index e4c43bb..5d35f3b 100644 --- a/requirements/pypi.txt +++ b/requirements/pypi.txt @@ -8,7 +8,6 @@ koji >= 1.15 pycurl >= 7.19 requests six >= 1.9.0 -PyYAML # rpm-py-installer # diff --git a/setup.py b/setup.py index 8104a56..9979c3a 100755 --- a/setup.py +++ b/setup.py @@ -60,6 +60,14 @@ setup( url="https://pagure.io/rpkg", packages=find_packages(), install_requires=install_requires, + extras_require={ + ':python_version=="2.6"': [ + 'PyYAML<=3.13', + ], + ':python_version>"2.6"': [ + 'PyYAML', + ], + }, tests_require=tests_require, dependency_links=dep_links, test_suite='nose.collector',