#1 Remove Python 2 subpackage (RHBZ#1723967)
Merged 3 months ago by lsedlar. Opened 3 months ago by pviktori.
rpms/ pviktori/python-gitdb nopy2  into  master

file modified
+9 -25

@@ -2,7 +2,7 @@ 

  

  Name:           python-%{modname}

  Version:        2.0.3

- Release:        5%{?dist}

+ Release:        6%{?dist}

  Summary:        Git Object Database

  

  License:        BSD

@@ -21,19 +21,6 @@ 

  

  %description %{_description}

  

- %package -n python2-%{modname}

- Summary:        %{summary}

- %{?python_provide:%python_provide python2-%{modname}}

- BuildRequires:  python2-devel

- BuildRequires:  python2-setuptools

- BuildRequires:  python2-nose

- BuildRequires:  python2-smmap >= 2.0.0

- Requires:       python2-smmap >= 2.0.0

- 

- %description -n python2-%{modname} %{_description}

- 

- Python 2 version.

- 

  %package -n python3-%{modname}

  Summary:        %{summary}

  %{?python_provide:%python_provide python3-%{modname}}

@@ -51,23 +38,14 @@ 

  %autosetup -n %{modname}-%{version} -Sgit

  

  %build

- %py2_build

  %py3_build

  

  %install

- %py2_install

  %py3_install

  

  %check

- # https://github.com/gitpython-developers/smmap/issues/34

- nosetests-%{python2_version} -v || :

- nosetests-%{python3_version} -v || :

- 

- %files -n python2-%{modname}

- %license LICENSE

- %doc AUTHORS

- %{python2_sitelib}/%{modname}2-*.egg-info/

- %{python2_sitelib}/%{modname}/

+ # Skipped "test_pack_writing": https://github.com/gitpython-developers/smmap/issues/34

+ %{__python3} -m nose -v --exclude=test_pack_writing

  

  %files -n python3-%{modname}

  %license LICENSE

@@ -76,6 +54,12 @@ 

  %{python3_sitelib}/%{modname}/

  

  %changelog

+ * Wed Jun 26 2019 Petr Viktorin <pviktori@redhat.com> - 2.0.3-6

+ - Remove Python 2 subpackage

+   https://bugzilla.redhat.com/show_bug.cgi?id=1723967

+ - Run tests using a specific Python interpreter, rather than rely on command name

+ - Re-enable passing tests

+ 

  * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-5

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

  

  • Run tests using a specific Python interpreter, rather than rely on command name

  • Re-enable passing tests

Thank you for the patch.

Pull-Request has been merged by lsedlar

3 months ago
Metadata