[packages/python3-setuptools_scm] - up to 6.0.1
baggins
baggins at pld-linux.org
Sat Apr 9 11:10:45 CEST 2022
commit 5d332441d2604f9a9c9956a9e25419475a8b6d84
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Apr 9 11:10:34 2022 +0200
- up to 6.0.1
python3-setuptools_scm.spec | 77 ++++++---------------------------------------
1 file changed, 9 insertions(+), 68 deletions(-)
---
diff --git a/python3-setuptools_scm.spec b/python3-setuptools_scm.spec
index 0795353..ef7485e 100644
--- a/python3-setuptools_scm.spec
+++ b/python3-setuptools_scm.spec
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-setuptools_scm.git/commitdiff/5d332441d2604f9a9c9956a9e25419475a8b6d84
More information about the pld-cvs-commit
mailing list