[packages/python-setuptools_scm] - python 3 support moved to python3-setuptools_scm package, rel 4
baggins
baggins at pld-linux.org
Sat Apr 9 11:06:04 CEST 2022
commit 39137393c3aa2cdcbd4da79cfe90eaf0d0ba10df
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Apr 9 11:05:34 2022 +0200
- python 3 support moved to python3-setuptools_scm package, rel 4
python-setuptools_scm.spec | 59 +---------------------------------------------
1 file changed, 1 insertion(+), 58 deletions(-)
---
diff --git a/python-setuptools_scm.spec b/python-setuptools_scm.spec
index 0795353..3503f1f 100644
--- a/python-setuptools_scm.spec
+++ b/python-setuptools_scm.spec
@@ -2,21 +2,18 @@
# Conditional build:
%bcond_without tests # py.test tests
%bcond_with tests_scm # py.test tests using SCM programs (git, hg)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
Summary: Python 2 package to manager versions by scm tags
Summary(pl.UTF-8): Pakiet Pythona 2 do zarządzania wersjami poprzez etykiety systemu kontroli wersji
Name: python-setuptools_scm
Version: 5.0.2
-Release: 3
+Release: 4
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/setuptools_scm/
Source0: https://files.pythonhosted.org/packages/source/s/setuptools_scm/setuptools_scm-%{version}.tar.gz
# Source0-md5: 8ddd44e0cd3a243350fe709024ec7224
URL: https://github.com/pypa/setuptools_scm
-%if %{with python2}
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools >= 1:42
%if %{with tests}
@@ -24,16 +21,6 @@ BuildRequires: python-py >= 1.4.26
BuildRequires: python-pytest >= 3.1.0
BuildRequires: python-toml
%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools >= 1:42
-%if %{with tests}
-BuildRequires: python3-py >= 1.4.26
-BuildRequires: python3-pytest >= 3.1.0
-BuildRequires: python3-toml
-%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with tests_scm}
@@ -54,22 +41,6 @@ setuptools_scm to proste narzędzie dla funkcji setup_requires modułu
setuptools przeznaczone do stosowania w projektach opatych na
systemach kontroli wersji Mercurial i Git.
-%package -n python3-setuptools_scm
-Summary: Python 3 package to manager versions by scm tags
-Summary(pl.UTF-8): Pakiet Pythona 3 do zarządzania wersjami poprzez etykiety systemu kontroli wersji
-Group: Libraries/Python
-Requires: python3-setuptools
-Requires: python3-toml
-
-%description -n python3-setuptools_scm
-setuptools_scm is a simple utility for the setup_requires feature of
-setuptools for use in Mercurial and Git based projects.
-
-%description -n python3-setuptools_scm -l pl.UTF-8
-setuptools_scm to proste narzędzie dla funkcji setup_requires modułu
-setuptools przeznaczone do stosowania w projektach opatych na
-systemach kontroli wersji Mercurial i Git.
-
%prep
%setup -q -n setuptools_scm-%{version}
@@ -81,7 +52,6 @@ systemach kontroli wersji Mercurial i Git.
%{__rm} testing/test_setuptools_support.py
%build
-%if %{with python2}
%py_build
%if %{with tests}
@@ -89,46 +59,19 @@ PYTHONPATH=$(pwd)/src \
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python} -m pytest testing
%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd)/src \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest testing
-%endif
-%endif
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%py_install
%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc CHANGELOG.rst LICENSE README.rst
%{py_sitescriptdir}/setuptools_scm
%{py_sitescriptdir}/setuptools_scm-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-setuptools_scm
-%defattr(644,root,root,755)
-%doc CHANGELOG.rst LICENSE README.rst
-%{py3_sitescriptdir}/setuptools_scm
-%{py3_sitescriptdir}/setuptools_scm-%{version}-py*.egg-info
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-setuptools_scm.git/commitdiff/39137393c3aa2cdcbd4da79cfe90eaf0d0ba10df
More information about the pld-cvs-commit
mailing list