Compare commits

..

No commits in common. "27aab7c17915d7351642b5dadd589ea835461d96" and "58c5f5ad7eeab1e7c7e093f988d1d7c06a3336d8" have entirely different histories.

3 changed files with 43 additions and 43 deletions

View File

@ -1,36 +1,41 @@
%global _empty_manifest_terminate_build 0
Name: python-setuptools_scm
Version: 7.1.0
Release: 1
Version: 3.1.0
Release: 2
Summary: Manage your Python package versions in SCM metadata
License: MIT
URL: https://pypi.python.org/pypi/setuptools_scm/
Source0: %{pypi_source setuptools_scm}
URL: https://pypi.python.org/pypi/setuptools_scm
Source0: https://files.pythonhosted.org/packages/source/%(n=setuptools_scm; echo ${n:0:1})/setuptools_scm/setuptools_scm-%{version}.tar.gz
BuildRequires: python3-tomli python3-packaging python3-pip python3-wheel
BuildArch: noarch
Requires: python3-setuptool
Requires: python3-toml
BuildRequires: git-core mercurial
%description
setuptools_scm handles managing your Python package versions in SCM metadata
instead of declaring them as the version argument or in a SCM managed file.
It also handles file finders for the supported SCMs.
%package -n python3-setuptools_scm
Summary: the blessed package to manage your versions by scm tags
Provides: python-setuptools_scm
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-setuptools_scm
%package_help
%package -n python2-setuptools_scm
Summary: %{summary}
BuildRequires: python2-devel python2-setuptools
BuildRequires: python2-pytest
%{?python_provide:%python_provide python2-setuptools_scm}
%description -n python2-setuptools_scm
setuptools_scm handles managing your Python package versions in SCM metadata
instead of declaring them as the version argument or in a SCM managed file.
It also handles file finders for the supported SCMs.
%package help
Summary: Development documents and examples for setuptools_scm
Provides: python3-setuptools_scm-doc
%description help
%package -n python%{python3_pkgversion}-setuptools_scm
Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-pytest
%{?python_provide:%python_provide python%{python3_pkgversion}-setuptools_scm}
Obsoletes: platform-python-setuptools_scm < %{version}-%{release}
%description -n python%{python3_pkgversion}-setuptools_scm
setuptools_scm handles managing your Python package versions in SCM metadata
instead of declaring them as the version argument or in a SCM managed file.
It also handles file finders for the supported SCMs.
@ -39,38 +44,33 @@ It also handles file finders for the supported SCMs.
%autosetup -n setuptools_scm-%{version}
%build
%pyproject_build
%py2_build
%py3_build
%install
%pyproject_install setuptools_scm==%{version}
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
%py2_install
%py3_install
%files -n python3-setuptools_scm
%{python3_sitelib}/*
%check
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v -k 'not (test_pip_download or test_old_setuptools_fails or test_old_setuptools_allows_with_warnings or test_distlib_setuptools_works)'
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python3_version} -v -k 'not (test_pip_download or test_old_setuptools_fails or test_old_setuptools_allows_with_warnings or test_distlib_setuptools_works)'
%files help
%{_pkgdocdir}
%doc README.rst
%files -n python2-setuptools_scm
%defattr(-,root,root)
%license LICENSE
%{python2_sitelib}/setuptools_scm/
%{python2_sitelib}/setuptools_scm-*.egg-info/
%files -n python%{python3_pkgversion}-setuptools_scm
%defattr(-,root,root)
%license LICENSE
%{python3_sitelib}/setuptools_scm/
%{python3_sitelib}/setuptools_scm-*.egg-info
%changelog
* Fri Sep 01 2023 wulei <wu_lei@hoperun.com> - 7.1.0-1
- Update to 7.1.0
* Sun Apr 23 2023 caodongxia <caodongxia@h-partners.com> - 6.4.2-1
- Update to 6.4.2
* Thu Jun 16 2022 OpenStack_SIG <openstack@openeuler.org> - 6.0.0-1
- Upgrade version for openstack yoga
* Thu Dec 3 2020 baizhonggui <baizhonggui@huawei.com> - 4.1.2-1
- Update to 4.1.2
* Wed Oct 21 2020 zhanghua <zhanghua40@huawei.com> - 3.1.0-3
- remove python2 subpackage
* Tue Dec 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1.0-2
- Modify spec format.

BIN
setuptools_scm-3.1.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.