!5 delete python2.

From: @weiwei_150212
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-10-29 15:00:09 +08:00 committed by Gitee
commit bfd3a1bdc1

View File

@ -1,12 +1,12 @@
Name: python-distro Name: python-distro
Version: 1.5.0 Version: 1.5.0
Release: 1 Release: 2
Summary: Linux Distribution - a Linux OS platform information API Summary: Linux Distribution - a Linux OS platform information API
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/nir0s/distro URL: https://github.com/nir0s/distro
Source0: https://files.pythonhosted.org/packages/source/d/distro/distro-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/d/distro/distro-%{version}.tar.gz
BuildRequires: python2-devel python2-setuptools python2-pytest python3-devel python3-setuptools python3-pytest BuildRequires: python3-devel python3-setuptools python3-pytest
BuildArch: noarch BuildArch: noarch
%description %description
@ -19,22 +19,6 @@ Python bound, like a command-line interface.
Distro currently supports Linux and BSD based systems but Windows and OS X support is also planned. Distro currently supports Linux and BSD based systems but Windows and OS X support is also planned.
%package -n python2-distro
Summary: Linux Distribution - a Linux OS platform information API
%{?python_provide:%python_provide python2-distro}
%description -n python2-distro
Distro provides information about the OS distribution it runs on, such as a reliable machine-readable
ID, or version information.
It is the recommended replacement for Python's original platform.linux_distribution function (which
will be removed in Python 3.8). It also provides much more functionality which isn't necessarily
Python bound, like a command-line interface.
Distro currently supports Linux and BSD based systems but Windows and OS X support is also planned.
Python2 version of distro.
%package -n python3-distro %package -n python3-distro
Summary: Linux Distribution - a Linux OS platform information API Summary: Linux Distribution - a Linux OS platform information API
%{?python_provide:%python_provide python3-distro} %{?python_provide:%python_provide python3-distro}
@ -56,20 +40,14 @@ Python3 version of distro.
rm -rf distro.egg-info rm -rf distro.egg-info
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
%{__python2} -m pytest tests -v
%{__python3} -m pytest tests -v %{__python3} -m pytest tests -v
%files -n python2-distro
%doc LICENSE CHANGELOG.md CONTRIBUTORS.md README.md
%{python2_sitelib}/*
%files -n python3-distro %files -n python3-distro
%doc LICENSE CHANGELOG.md CONTRIBUTORS.md README.md %doc LICENSE CHANGELOG.md CONTRIBUTORS.md README.md
@ -77,6 +55,9 @@ rm -rf distro.egg-info
%{_bindir}/distro %{_bindir}/distro
%changelog %changelog
* Fri Oct 23 2020 tianwei <tianwei12@huawei.com> - 1.5.0-2
- delete python2
* Thu Jul 23 2020 dingyue <dingyue5@huawei.com> - 1.5.0-1 * Thu Jul 23 2020 dingyue <dingyue5@huawei.com> - 1.5.0-1
- Package update - Package update
* Mon Nov 25 2019 lingsheng <lingsheng@huawei.com> - 1.3.0-5 * Mon Nov 25 2019 lingsheng <lingsheng@huawei.com> - 1.3.0-5