!5 remove python2 of package python-setuptools_scm
From: @zhanghua1831 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
d364709667
@ -1,6 +1,6 @@
|
|||||||
Name: python-setuptools_scm
|
Name: python-setuptools_scm
|
||||||
Version: 3.1.0
|
Version: 3.1.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Manage your Python package versions in SCM metadata
|
Summary: Manage your Python package versions in SCM metadata
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.python.org/pypi/setuptools_scm
|
URL: https://pypi.python.org/pypi/setuptools_scm
|
||||||
@ -16,17 +16,6 @@ It also handles file finders for the supported SCMs.
|
|||||||
|
|
||||||
%package_help
|
%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 -n python%{python3_pkgversion}-setuptools_scm
|
%package -n python%{python3_pkgversion}-setuptools_scm
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
@ -44,26 +33,17 @@ It also handles file finders for the supported SCMs.
|
|||||||
%autosetup -n setuptools_scm-%{version}
|
%autosetup -n setuptools_scm-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%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}%{python3_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)'
|
||||||
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
|
%files help
|
||||||
%doc README.rst
|
%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
|
%files -n python%{python3_pkgversion}-setuptools_scm
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -71,6 +51,9 @@ PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python3_version} -v -k 'not
|
|||||||
%{python3_sitelib}/setuptools_scm-*.egg-info
|
%{python3_sitelib}/setuptools_scm-*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Tue Dec 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1.0-2
|
||||||
- Modify spec format.
|
- Modify spec format.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user