]> git.pld-linux.org Git - packages/python-setuptools_scm.git/commitdiff
- python 3 support moved to python3-setuptools_scm package, rel 4 auto/th/python-setuptools_scm-5.0.2-4
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Apr 2022 09:05:34 +0000 (11:05 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Apr 2022 09:05:34 +0000 (11:05 +0200)
python-setuptools_scm.spec

index 079535378919782df95c64d148f3777d17612c10..3503f1f97e87e3ae910e24eabf6913f2366640aa 100644 (file)
@@ -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
This page took 0.116661 seconds and 4 git commands to generate.