From d6cc1874310f76aae5f6fca1a54fdae3abd1be80 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 09:36:24 -0400 Subject: [PATCH] import python-setuptools_scm-1.15.7-5.module+el8+2540+b19c9b35 --- .gitignore | 1 + .python-setuptools_scm.metadata | 1 + SPECS/python-setuptools_scm.spec | 84 ++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 .gitignore create mode 100644 .python-setuptools_scm.metadata create mode 100644 SPECS/python-setuptools_scm.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0cb7493 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/setuptools_scm-1.15.7.tar.gz diff --git a/.python-setuptools_scm.metadata b/.python-setuptools_scm.metadata new file mode 100644 index 0000000..4ee974d --- /dev/null +++ b/.python-setuptools_scm.metadata @@ -0,0 +1 @@ +7790dd35cfccf871acc1d38336f091c4082a7e7d SOURCES/setuptools_scm-1.15.7.tar.gz diff --git a/SPECS/python-setuptools_scm.spec b/SPECS/python-setuptools_scm.spec new file mode 100644 index 0000000..22abfad --- /dev/null +++ b/SPECS/python-setuptools_scm.spec @@ -0,0 +1,84 @@ +%bcond_without python3 + +%global srcname setuptools_scm + +Name: python-%{srcname} +Version: 1.15.7 +Release: 5%{?dist} +Summary: Blessed package to manage your versions by scm tags + +# https://github.com/pypa/setuptools_scm/issues/211 +License: MIT +URL: https://pypi.python.org/pypi/setuptools_scm +Source0: https://files.pythonhosted.org/packages/source/%(n=%{srcname}; echo ${n:0:1})/%{srcname}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%description +Setuptools_scm handles managing your python package versions in scm metadata. +It also handles file finders for the suppertes scms. + +%package -n python2-%{srcname} +Summary: %{summary} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +Setuptools_scm handles managing your python package versions in scm metadata. +It also handles file finders for the suppertes scms. + +%if %{with python3} +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-%{srcname}} +Obsoletes: platform-python-%{srcname} < %{version}-%{release} + +%description -n python3-%{srcname} +Setuptools_scm handles managing your python package versions in scm metadata. +It also handles file finders for the suppertes scms. + +%endif + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py2_build +%if %{with python3} +%py3_build +%endif + +%install +%py2_install +%if %{with python3} +%py3_install +%endif + +#%%check +# Tests are not shipped in PyPI tarball and requires git and mercurial +# which means that we'd have to depends on mercurial module which is +# too heavy dependency for tests of one package not included in module API + +%files -n python2-%{srcname} +#license LICENSE +%doc README.rst +%{python2_sitelib}/%{srcname}/ +%{python2_sitelib}/%{srcname}-*.egg-info/ + +%if %{with python3} +%files -n python3-%{srcname} +#license LICENSE +%doc README.rst +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{srcname}-*.egg-info +%endif + +%changelog +* Tue Jul 31 2018 Lumír Balhar - 1.15.7-5 +- Make possible to disable python3 subpackage + +* Wed Jul 18 2018 Lumír Balhar - 1.15.7-5 +- First version for python27 module