From 5ac60a98dbe768041c634c98940017e3be5b6dc0 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Sep 19 2016 09:18:21 +0000 Subject: Update to 0.30.0a0 and fix FTBFS. --- diff --git a/.gitignore b/.gitignore index 06773f4..c3a3618 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /wheel-0.24.0.tar.gz /wheel-0.26.0.tar.gz /wheel-0.29.0.tar.gz +/wheel-0.30.0a0.tar.gz diff --git a/python-wheel.spec b/python-wheel.spec index f42a38e..b9daf02 100644 --- a/python-wheel.spec +++ b/python-wheel.spec @@ -1,7 +1,7 @@ %global pypi_name wheel Name: python-%{pypi_name} -Version: 0.29.0 +Version: 0.30.0a0 Release: 1%{?dist} Summary: A built-package format for Python @@ -10,6 +10,15 @@ URL: https://bitbucket.org/pypa/wheel Source0: https://files.pythonhosted.org/packages/source/%(n=%{pypi_name}; echo ${n:0:1})/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch +# Latest version of wheel requires the package keyrings.alt in order for the tests to pass, +# however it can't be packaged for Fedora as of yet since the code is not licensed, +# and as a result wheel fails to build from source. +# Review request of keyrings.alt: https://bugzilla.redhat.com/show_bug.cgi?id=1365794 +# Until the license issue is resolved upstream, this patch is added to revert +# the commit from wheel, that introduced this dependency. +# https://bitbucket.org/pypa/wheel/commits/06841295888fdb430abe12aae29da92107e7360a +Patch0: remove-keyrings.alt-dependency.patch + %global _description \ A built-package format for Python.\ \ @@ -46,9 +55,10 @@ BuildRequires: python3-jsonschema Python 3 version. %prep -%autosetup -n %{pypi_name}-%{version} +%setup -q -n %{pypi_name}-%{version} # remove unneeded shebangs sed -ie '1d' %{pypi_name}/{egg2wheel,wininst2wheel}.py +%patch0 -p1 %build %py2_build @@ -87,6 +97,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build %exclude %{python3_sitelib}/%{pypi_name}/test %changelog +* Mon Sep 19 2016 Charalampos Stratakis - 0.30.0a0-1 +- Update to 0.30.0a0 +- Added patch to remove keyrings.alt dependency + * Wed Aug 10 2016 Igor Gnatenko - 0.29.0-1 - Update to 0.29.0 - Cleanups and fixes diff --git a/remove-keyrings.alt-dependency.patch b/remove-keyrings.alt-dependency.patch new file mode 100644 index 0000000..fbe1c19 --- /dev/null +++ b/remove-keyrings.alt-dependency.patch @@ -0,0 +1,29 @@ +diff --git a/setup.py b/setup.py +index bd1c900..9579fac 100644 +--- a/setup.py ++++ b/setup.py +@@ -39,7 +39,7 @@ setup(name='wheel', + ], + extras_require={ + ':python_version=="2.6"': ['argparse'], +- 'signatures': ['keyring', 'keyrings.alt'], ++ 'signatures': ['keyring'], + 'signatures:sys_platform!="win32"': ['pyxdg'], + 'signatures:python_version=="2.6"': ['importlib'], + 'faster-signatures': ['ed25519ll'], +diff --git a/wheel/tool/__init__.py b/wheel/tool/__init__.py +index 4c0187b..81eae0e 100644 +--- a/wheel/tool/__init__.py ++++ b/wheel/tool/__init__.py +@@ -29,9 +29,8 @@ def get_keyring(): + try: + from ..signatures import keys + import keyring +- assert keyring.get_keyring().priority +- except (ImportError, AssertionError): +- raise WheelError("Install wheel[signatures] (requires keyring, keyrings.alt, pyxdg) for signatures.") ++ except ImportError: ++ raise WheelError("Install wheel[signatures] (requires keyring, pyxdg) for signatures.") + return keys.WheelKeys, keyring + + def keygen(get_keyring=get_keyring): diff --git a/sources b/sources index 86eff52..211afa9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -555a67e4507cedee23a0deb9651e452f wheel-0.29.0.tar.gz +aa1145d48e4da2f9415eac2d51468a83 wheel-0.30.0a0.tar.gz