]> git.pld-linux.org Git - packages/python3-setuptools_scm.git/commitdiff
- up to 6.0.1 auto/th/python3-setuptools_scm-6.0.1-1
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Apr 2022 09:10:34 +0000 (11:10 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Apr 2022 09:10:34 +0000 (11:10 +0200)
python3-setuptools_scm.spec

index 079535378919782df95c64d148f3777d17612c10..ef7485e3c7eba92073892a56fc1be693e083e2c1 100644 (file)
@@ -1,31 +1,19 @@
 #
 # Conditional build:
-%bcond_without tests           # py.test tests
+%bcond_with    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
+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
+Name:          python3-setuptools_scm
+Version:       6.0.1
+Release:       1
 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
+# Source0-md5: aa7f0efbbf46c5576db5994dd1ce3f8d
 URL:           https://github.com/pypa/setuptools_scm
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools >= 1:42
-%if %{with tests}
-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}
@@ -33,15 +21,14 @@ 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}
 BuildRequires: git-core
 BuildRequires: mercurial
 %endif
-Requires:      python-setuptools
-Requires:      python-toml
+Requires:      python3-setuptools
+Requires:      python3-toml
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -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,17 +52,6 @@ systemach kontroli wersji Mercurial i Git.
 %{__rm} testing/test_setuptools_support.py
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd)/src \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest testing
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
@@ -99,36 +59,17 @@ 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.204022 seconds and 4 git commands to generate.