Import Debian changes 1.4.0-ok1

python-distro (1.4.0-ok1) yangtze; urgency=medium

  * Build for openKylin.
This commit is contained in:
openKylinBot 2022-04-25 22:03:04 +08:00
parent 5c9aa18b94
commit 9d2962c25d
9 changed files with 110 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -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

36
debian/control vendored Normal file
View File

@ -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.

28
debian/copyright vendored Normal file
View File

@ -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

14
debian/rules vendored Executable file
View File

@ -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

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

14
debian/tests/api-3.py vendored Normal file
View File

@ -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?")

5
debian/tests/control vendored Normal file
View File

@ -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

4
debian/upstream/metadata vendored Normal file
View File

@ -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

3
debian/watch vendored Normal file
View File

@ -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)))