From 4e067bb10c50e0f235e5ddabb3427ac2abb0974c Mon Sep 17 00:00:00 2001 From: sufang Date: Mon, 30 Jan 2023 15:19:05 +0800 Subject: [PATCH] Import Debian changes 0.9.0-ok1 python-build (0.9.0-ok1) yangtze; urgency=medium * Build for openkylin. --- debian/changelog | 5 ++ debian/control | 34 ++++++++++++ debian/copyright | 114 +++++++++++++++++++++++++++++++++++++++ debian/patches/series | 1 + debian/rules | 20 +++++++ debian/source/format | 1 + debian/upstream/metadata | 5 ++ debian/watch | 4 ++ 8 files changed, 184 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..6a6620c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-build (0.9.0-ok1) yangtze; urgency=medium + + * Build for openkylin. + + -- sufang Mon, 30 Jan 2023 15:19:05 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..25f2c7b --- /dev/null +++ b/debian/control @@ -0,0 +1,34 @@ +Source: python-build +Section: python +Priority: optional +Maintainer: OpenKylin Developers +Build-Depends: debhelper-compat (= 13), + dh-python, + python3-setuptools, + python3-all, + python3-packaging, + python3-pep517, + python3-toml, +Standards-Version: 4.6.2 +Homepage: https://github.com/pypa/build +Vcs-Browser: https://gitee.com/openkylin/python-build +Vcs-Git: https://gitee.com/openkylin/python-build.git +Testsuite: autopkgtest-pkg-python +Rules-Requires-Root: no + +Package: python3-build +Architecture: all +Depends: ${python3:Depends}, + ${misc:Depends}, + python3-packaging, + python3-pep517, + python3-toml, + python3-wheel, +Suggests: python3-pip, + python3-venv, +Description: Simple, correct PEP517 package builder (Python 3) + python-build will invoke the PEP 517 hooks to build a distribution + package. It is a simple build tool and does not perform any + dependency management. + . + This package installs the library for Python 3. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..cfa0e04 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,114 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: python-build +Source: +# +# Please double check copyright with the licensecheck(1) command. + +Files: .dockerignore + .github/CODEOWNERS + .github/dependabot.yml + .github/workflows/check.yml + .github/workflows/test.yml + .gitignore + .pre-commit-config.yaml + .readthedocs.yml + CHANGELOG.rst + README.md + codecov.yml + docs/api.rst + docs/differences.rst + docs/index.rst + docs/installation.rst + docs/mission.rst + docs/test_suite.rst + pyproject.toml + setup.cfg + setup.py + src/build/__init__.py + src/build/__main__.py + src/build/env.py + src/build/py.typed + src/build/util.py + tests/conftest.py + tests/constraints.txt + tests/packages/inline/pyproject.toml + tests/packages/legacy/legacy/__init__.py + tests/packages/legacy/setup.py + tests/packages/test-bad-backend/pyproject.toml + tests/packages/test-bad-syntax/pyproject.toml + tests/packages/test-bad-wheel/backend_bad_wheel.py + tests/packages/test-bad-wheel/pyproject.toml + tests/packages/test-bad-wheel/setup.cfg + tests/packages/test-cant-build-via-sdist/backend_bad_sdist.py + tests/packages/test-cant-build-via-sdist/pyproject.toml + tests/packages/test-cant-build-via-sdist/some-file-that-is-needed-for-build.txt + tests/packages/test-flit/pyproject.toml + tests/packages/test-flit/test_flit/__init__.py + tests/packages/test-invalid-requirements/pyproject.toml + tests/packages/test-invalid-requirements/setup.cfg + tests/packages/test-metadata/backend.py + tests/packages/test-metadata/pyproject.toml + tests/packages/test-no-backend/pyproject.toml + tests/packages/test-no-permission/pyproject.toml + tests/packages/test-no-prepare/backend_no_prepare.py + tests/packages/test-no-prepare/pyproject.toml + tests/packages/test-no-prepare/setup.cfg + tests/packages/test-no-project/empty.txt + tests/packages/test-no-requires/pyproject.toml + tests/packages/test-optional-hooks/hookless_backend.py + tests/packages/test-optional-hooks/pyproject.toml + tests/packages/test-setuptools/pyproject.toml + tests/packages/test-setuptools/setup.cfg + tests/packages/test-typo/pyproject.toml + tests/test_env.py + tests/test_integration.py + tests/test_main.py + tests/test_module.py + tests/test_projectbuilder.py + tests/test_self_packaging.py + tests/test_util.py + tox.ini +Copyright: __NO_COPYRIGHT_NOR_LICENSE__ +License: __NO_COPYRIGHT_NOR_LICENSE__ + +Files: tests/packages/inline/build.py +Copyright: __NO_COPYRIGHT__ in: tests/packages/inline/build.py +License: __UNKNOWN__ + Desc + . + Wheel-Version: 1.0 + Generator: {name}-{version} + Root-Is-Purelib: true + Tag: py3-none-any + +Files: docs/conf.py +Copyright: __NO_COPYRIGHT__ in: docs/conf.py +License: __UNKNOWN__ + # The short X.Y version + +#---------------------------------------------------------------------------- +# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following +# license/copyright files. + +#---------------------------------------------------------------------------- +# License file: LICENSE + Copyright © 2019 Filipe Laíns + . + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice (including the next + paragraph) shall be included in all copies or substantial portions of the + Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4a97dfa --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +# You must remove unused comment lines for the released package. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..6e44dc9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=build +export SETUPTOOLS_USE_DISTUTILS=stdlib + +%: + dh $@ --with python3 --buildsystem=pybuild + +# Unfortunately, python-build's testsuite relies heavily on "pip +# install" and other network-related operations, which are not not +# allowed during build time. +# +# Although not all tests are affected by this, it is becoming more and +# more difficult to maintain a list of tests that should be disabled +# because of this issue. For this reason, and in order to keep the +# maintenance burden low, we decided to disable running these tests +# during build time. +# +# TODO: Create a dep8 test that runs the entire upstream testsuite. +override_dh_auto_test: diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..3559887 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/pypa/build/issues +Bug-Submit: https://github.com/pypa/build/issues/new +Repository: https://github.com/pypa/build.git +Repository-Browse: https://github.com/pypa/build diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..2166b80 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +# Compulsory line, this is a version 4 file +version=4 + +https://github.com/pypa/build/tags .*/archive/refs/tags/v?((?:\d+\.?)*)\.tar\.gz