Import Debian changes 1.4.0-ok1
python-distro (1.4.0-ok1) yangtze; urgency=medium * Build for openKylin.
This commit is contained in:
parent
5c9aa18b94
commit
9d2962c25d
|
@ -0,0 +1,5 @@
|
||||||
|
python-distro (1.4.0-ok1) yangtze; urgency=medium
|
||||||
|
|
||||||
|
* Build for openKylin.
|
||||||
|
|
||||||
|
-- openKylinBot <openKylinBot@openkylin.com> Mon, 25 Apr 2022 22:03:04 +0800
|
|
@ -0,0 +1,36 @@
|
||||||
|
Source: python-distro
|
||||||
|
Section: python
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
|
||||||
|
Uploaders:
|
||||||
|
Barry Warsaw <barry@debian.org>,
|
||||||
|
Build-Depends:
|
||||||
|
debhelper-compat (= 12),
|
||||||
|
dh-python,
|
||||||
|
python3-all,
|
||||||
|
python3-setuptools,
|
||||||
|
Build-Depends-Indep:
|
||||||
|
python3-pytest,
|
||||||
|
Standards-Version: 4.5.0
|
||||||
|
Rules-Requires-Root: no
|
||||||
|
Homepage: https://github.com/nir0s/distro
|
||||||
|
Vcs-Git: https://salsa.debian.org/python-team/modules/python-distro.git
|
||||||
|
Vcs-Browser: https://salsa.debian.org/python-team/modules/python-distro
|
||||||
|
|
||||||
|
Package: python3-distro
|
||||||
|
Architecture: all
|
||||||
|
Depends:
|
||||||
|
lsb-release,
|
||||||
|
${misc:Depends},
|
||||||
|
${python3:Depends},
|
||||||
|
Description: Linux OS platform information API
|
||||||
|
distro (for: Linux Distribution) provides information about the Linux
|
||||||
|
distribution it runs on, such as a reliable machine-readable ID, or version
|
||||||
|
information.
|
||||||
|
.
|
||||||
|
It is a renewed alternative implementation for Python's original
|
||||||
|
platform.linux_distribution function, but it also provides much more
|
||||||
|
functionality which isn't necessarily Python bound like a command-line
|
||||||
|
interface.
|
||||||
|
.
|
||||||
|
This is the Python 3 version of the library.
|
|
@ -0,0 +1,28 @@
|
||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: distro
|
||||||
|
Upstream-Contact: Nir Cohen <nir36g@gmail.com>
|
||||||
|
Source: <https://pypi.python.org/pypi/distro/>
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2015,2016 Nir Cohen
|
||||||
|
License: Apache-2.0
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2016 Barry Warsaw <barry@debian.org>
|
||||||
|
License: Apache-2.0
|
||||||
|
|
||||||
|
License: Apache-2.0
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
.
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
.
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
.
|
||||||
|
On Debian systems, the full text of the Apache License version 2.0 can be
|
||||||
|
found in the file `/usr/share/common-licenses/Apache-2.0
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
export PYBUILD_NAME=distro
|
||||||
|
#export PYBUILD_VERBOSE=1
|
||||||
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with python3 --buildsystem=pybuild
|
||||||
|
|
||||||
|
# For now, I do not want to distribute /usr/bin/distro
|
||||||
|
|
||||||
|
override_dh_python3:
|
||||||
|
dh_python3
|
||||||
|
rm -rf debian/python3-distro/usr/bin
|
|
@ -0,0 +1 @@
|
||||||
|
3.0 (quilt)
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import distro
|
||||||
|
|
||||||
|
|
||||||
|
# Not the full API, but enough to flex the package.
|
||||||
|
print(distro.linux_distribution())
|
||||||
|
print(distro.linux_distribution(full_distribution_name=False))
|
||||||
|
print(distro.name())
|
||||||
|
print(distro.name(pretty=True))
|
||||||
|
|
||||||
|
# Use lsb_release for enhanced information.
|
||||||
|
assert len(distro.LinuxDistribution().lsb_release_info()) > 0, (
|
||||||
|
"Why isn't lsb_release(1) available?")
|
|
@ -0,0 +1,5 @@
|
||||||
|
Test-Command: cd "$AUTOPKGTEST_TMP" ; python3 -c "import distro; print(distro)"
|
||||||
|
Depends: python3-distro
|
||||||
|
|
||||||
|
Tests: api-3.py
|
||||||
|
Depends: python3-distro
|
|
@ -0,0 +1,4 @@
|
||||||
|
Bug-Database: https://github.com/nir0s/distro/issues
|
||||||
|
Bug-Submit: https://github.com/nir0s/distro/issues/new
|
||||||
|
Repository: https://github.com/nir0s/distro.git
|
||||||
|
Repository-Browse: https://github.com/nir0s/distro
|
|
@ -0,0 +1,3 @@
|
||||||
|
version=3
|
||||||
|
opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
|
||||||
|
https://pypi.debian.net/distro/distro-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
|
Loading…
Reference in New Issue