#9 [totally untested] Package for EPEL 7
Closed 4 years ago by churchyard. Opened 4 years ago by churchyard.
rpms/ tadej/python-pluggy master  into  epel7

file modified
+3
@@ -0,0 +1,3 @@ 

+ /pluggy-0.3.0.tar.gz

+ /pluggy-0.3.1.tar.gz

+ /python-pluggy-0.6.0.tar.gz

file added
+155
@@ -0,0 +1,155 @@ 

+ %global pypiname pluggy

+ 

+ %if 0%{?fedora} || 0%{?rhel} >= 7

+ %global with_python3 1

+ %else

+ %global with_python3 0

+ %endif

+ 

+ Name:           python-pluggy

+ Version:        0.6.0

+ Release:        3%{?dist}

+ Summary:        The plugin manager stripped of pytest specific details

+ 

+ License:        MIT

+ URL:            https://github.com/pytest-dev/pluggy

+ Source0:        https://github.com/pytest-dev/%{pypiname}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

+ 

+ # Augment/Remove tests that fail on EPEL7 due to too old pytest packages

+ Patch0:         0001-Augment-remove-tests-that-fail-on-Fedora-EPEL7-build.patch

+ 

+ BuildArch:      noarch

+ BuildRequires:  python2-devel

+ BuildRequires:  python2-pytest

+ BuildRequires:  python2-setuptools

+ %if 0%{?with_python3}

+ BuildRequires:  python%{python3_pkgversion}-devel

+ BuildRequires:  python%{python3_pkgversion}-pytest

+ BuildRequires:  python%{python3_pkgversion}-setuptools

+ %endif # with python3

+ # Required for %%autosetup

+ BuildRequires:  git-core

+ 

+ %global _description\

+ The plugin manager stripped of pytest specific details.

+ 

+ %description %_description

+ 

+ %package -n python2-%{pypiname}

+ Summary: %summary

+ %{?python_provide:%python_provide python2-%{pypiname}}

+ 

+ %description -n python2-%{pypiname} %_description

+ 

+ %if 0%{?with_python3}

+ %package -n python%{python3_pkgversion}-%{pypiname}

+ Summary:  The plugin manager stripped of pytest specific details.

+ 

+ %description -n python%{python3_pkgversion}-%{pypiname}

+ The plugin manager stripped of pytest specific details.

+ 

+ %endif # with python3

+ 

+ 

+ %prep

+ # The patches only apply to EPEL builds

+ %autosetup -n %{pypiname}-%{version} -N -S git

+ %if 0%{?rhel} && 0%{?rhel} <= 7

+ %autopatch

+ %endif

+ 

+ 

+ %build

+ %py2_build

+ 

+ %if 0%{?with_python3}

+ %py3_build

+ %endif # with python3

+ 

+ 

+ %install

+ %if 0%{?with_python3}

+ %py3_install

+ %endif # with python3

+ 

+ %py2_install

+ 

+ 

+ %check

+ export PYTHONPATH=.:$PYTHONPATH

+ py.test testing

+ 

+ %if 0%{?with_python3}

+ py.test-%{python3_version} testing

+ %endif

+ 

+ 

+ %files -n python2-%{pypiname}

+ %doc README.rst

+ %license LICENSE

+ %{python2_sitelib}/%{pypiname}

+ %{python2_sitelib}/%{pypiname}-%{version}-py%{python2_version}.egg-info

+ 

+ 

+ %if 0%{?with_python3}

+ %files -n python%{python3_pkgversion}-%{pypiname}

+ %{python3_sitelib}/%{pypiname}

+ %{python3_sitelib}/%{pypiname}-%{version}-py%{python3_version}.egg-info

+ %doc README.rst

+ %license LICENSE

+ %endif # with python3

+ 

+ 

+ %changelog

+ * Tue May 15 2018 Tadej Janež <tadej.j@nez.si> - 0.6.0-3

+ - Replace references to python3 (except in macro names) with

+   python%{python3_pkgversion} to allow building on EPEL7

+ - Enable building with Python 3 on EPEL7

+ - Augment/Remove tests that fail on EPEL7 due to too old pytest packages

+ 

+ * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

+ 

+ * Mon Jan 29 2018 Matthias Runge <mrunge@redhat.com> - 0.6.0-1

+ - update to 0.6.0

+ - requirement renames to meet python2 names

+ 

+ * Tue Jan 23 2018 Karsten Hopp <karsten@redhat.com> - 0.3.1-10

+ - fix conditional

+ 

+ * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.1-9

+ - Python 2 binary package renamed to python2-pluggy

+   See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3

+ 

+ * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-8

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

+ 

+ * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-7

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

+ 

+ * Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-6

+ - Rebuild for Python 3.6

+ 

+ * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-5

+ - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

+ 

+ * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-4

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

+ 

+ * Mon Nov 16 2015 Matthias Runge <mrunge@redhat.com> - 0.3.1-3

+ - make tests pass again on Python 3.5

+ 

+ * Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2

+ - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5

+ 

+ * Mon Sep 21 2015 Matthias Runge <mrunge@redhat.com> - 0.3.1-1

+ - update to 0.3.1

+ 

+ * Tue Aug 25 2015 Matthias Runge <mrunge@redhat.com> - 0.3.0-3

+ - fix python3 builds

+ 

+ * Fri Aug 21 2015 Matthias Runge <mrunge@redhat.com> - 0.3.0-2

+ - add python2_sitelib macros and BR to setuptools (rhbz#1254484)

+ 

+ * Fri Aug 14 2015 Matthias Runge <mrunge@redhat.com> - 0.3.0-1

+ - version based on the inital proposal of Adam Young

file modified
+1
@@ -0,0 +1,1 @@ 

+ SHA512 (python-pluggy-0.6.0.tar.gz) = ed8fe81907c7dc476ebfbf0f7e0f902577323d64014765e7d7bfe22c2dc7e4977e1ce7ad55ce7f4e923ae23d206d6c3bcc6663de760c877fce82298cc21079db

no initial comment

@tadej I ma not sure whether this is still desired or whether a newer version wouldn't work better.

@churchyard, this is no longer relevant for me. I've created a Copr repo at that time and tried to contribute my changes back to upstream Fedora package.

Feel free to close this.

Thanks for clarifying. Sad that it took too long for Fedora to respond :(

Pull-Request has been closed by churchyard

4 years ago