Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
f78fde0534
!9 【轻量级 PR】:rebuild for next release
From: @kerongw 
Reviewed-by: @ruebb 
Signed-off-by: @ruebb
2022-10-27 07:27:37 +00:00
kerongw
da8ef535d6
rebuild for next release
Signed-off-by: kerongw <wangkerong@h-partners.com>
2022-10-26 03:05:27 +00:00
openeuler-ci-bot
52bfb29e07 !7 [sync] PR-6: update to python-distro-1.6.0
From: @openeuler-sync-bot
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
2021-11-29 02:50:20 +00:00
shirely16
359c405815 update to python-distro-1.6.0
(cherry picked from commit 996929e4e3e516ffa3aa47773b8e8ce0b90de4fd)
2021-11-29 10:39:49 +08:00
openeuler-ci-bot
bfd3a1bdc1 !5 delete python2.
From: @weiwei_150212
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-10-29 15:00:09 +08:00
s17723959267
7ae2e79110 delete python2 2020-10-23 17:01:37 +08:00
openeuler-ci-bot
9e15dc3259 !2 update to 1.5.0
Merge pull request !2 from phanddy/master
2020-07-28 19:35:56 +08:00
zhouhaibo055
642a18f557 update to 1.5.0 2020-07-28 11:25:42 +08:00
openeuler-ci-bot
1c937064bd !1 add yaml
Merge pull request !1 from cuibb1/master
2020-05-09 16:48:44 +08:00
cuibb1
16da1232df yaml upload 2020-05-09 14:12:00 +08:00
4 changed files with 19 additions and 26 deletions

Binary file not shown.

BIN
distro-1.6.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,12 @@
Name: python-distro
Version: 1.3.0
Release: 5
Version: 1.6.0
Release: 2
Summary: Linux Distribution - a Linux OS platform information API
License: ASL 2.0
URL: https://github.com/nir0s/distro
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
%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.
%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
Summary: Linux Distribution - a Linux OS platform information API
%{?python_provide:%python_provide python3-distro}
@ -56,26 +40,31 @@ Python3 version of distro.
rm -rf distro.egg-info
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
%{__python2} -m pytest tests -v
%{__python3} -m pytest tests -v
%files -n python2-distro
%doc LICENSE README.rst CHANGELOG.md CONTRIBUTORS.md README.md
%{python2_sitelib}/*
%files -n python3-distro
%doc LICENSE README.rst CHANGELOG.md CONTRIBUTORS.md README.md
%doc LICENSE CHANGELOG.md CONTRIBUTORS.md README.md
%{python3_sitelib}/*
%{_bindir}/distro
%changelog
* Tue Oct 25 2022 wangkerong <wangkerong@h-partners.com> - 1.6.0-2
- rebuild for next release
* Wed Nov 24 2021 hanhui <hanhui15@huawei.com> - 1.6.0-1
- update to 1.6.0
* 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
- Package update
* Mon Nov 25 2019 lingsheng <lingsheng@huawei.com> - 1.3.0-5
- Package init

4
python-distro.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: pypi
src_repo: distro
tag_prefix: "^v"
seperator: "."