diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..368cb42 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-build (1.0.3-ok1) nile; urgency=medium + + * Build for openKylin. + + -- openKylinBot Tue, 07 May 2024 10:51:56 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..684c56c --- /dev/null +++ b/debian/control @@ -0,0 +1,54 @@ +Source: python-build +Section: python +Priority: optional +Maintainer: openKylin Developers +Uploaders: Sergio Durigan Junior +Build-Depends: debhelper-compat (= 13), + dh-python, + flit (>= 3.4), + python3-all, + python3-packaging, + python3-pyproject-hooks, + python3-toml, + dh-sequence-sphinxdoc , + python3-sphinx , + python3-sphinx-autodoc-typehints , + python3-sphinx-argparse-cli , + python3-sphinx-issues , + furo , +Standards-Version: 4.6.2 +Homepage: https://github.com/pypa/build +Vcs-Browser: https://salsa.debian.org/python-team/packages/python-build +Vcs-Git: https://salsa.debian.org/python-team/packages/python-build.git +Testsuite: autopkgtest-pkg-python +Rules-Requires-Root: no + +Package: python3-build +Architecture: all +Depends: ${python3:Depends}, + ${misc:Depends}, + python3-packaging, + python3-pyproject-hooks, + python3-toml, + python3-wheel, +Suggests: python3-pip, + python3-venv, + python-build-doc, +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. + +Package: python3-build-doc +Architecture: all +Section: doc +Depends: ${sphinxdoc:Depends}, ${misc:Depends} +Multi-Arch: foreign +Description: Simple, correct PEP517 package builder (documentation) + 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 is the documentation package. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..cf5f69e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: python-build +Source: https://github.com/pypa/build + +Files: * +Copyright: 2019 Filipe LaĆ­ns +License: Expat + +Files: debian/* +Copyright: 2020-2022 Sergio Durigan Junior +License: Expat + +License: Expat + 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/python3-build-doc.doc-base b/debian/python3-build-doc.doc-base new file mode 100644 index 0000000..329a2db --- /dev/null +++ b/debian/python3-build-doc.doc-base @@ -0,0 +1,17 @@ +Document: python-build +Title: Debian python-build Manual +Author: Toshio Kuratomi +Abstract: This is the manual for python-build. + python-build is a simple, correct PEP517 package builder. + . + 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. +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python3-build/html/index.html +Files: + /usr/share/doc/python3-build/html/*.html + /usr/share/doc/python3-build/html/_sources/* + /usr/share/doc/python3-build/html/_static/* diff --git a/debian/python3-build-doc.docs b/debian/python3-build-doc.docs new file mode 100644 index 0000000..dd2636a --- /dev/null +++ b/debian/python3-build-doc.docs @@ -0,0 +1 @@ +docs/_build/html/ diff --git a/debian/python3-build.manpages b/debian/python3-build.manpages new file mode 100644 index 0000000..f928297 --- /dev/null +++ b/debian/python3-build.manpages @@ -0,0 +1 @@ +docs/_build/man/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e2d081e --- /dev/null +++ b/debian/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=build + +ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) +export PYBUILD_AFTER_BUILD = \ + PYTHONPATH={build_dir} \ + http_proxy='127.0.0.1:9' \ + {interpreter} -m sphinx -N -bhtml \ + ./docs/ ./docs/_build/html/ ; \ + PYTHONPATH={build_dir} \ + http_proxy='127.0.0.1:9' \ + {interpreter} -m sphinx -N -bman \ + ./docs/ ./docs/_build/man/ ; \ + mv -v ./docs/_build/man/build.1 ./docs/_build/man/pyproject-build.1 +endif + +%: + dh $@ --with python3 --buildsystem=pybuild + +# Unfortunately, python-build's testsuite relies heavily on "pip +# install" and other network-related operations, which are 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/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..260ebbe --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,11 @@ +# For more information on what jobs are run see: +# https://salsa.debian.org/salsa-ci-team/pipeline +# +# To enable the jobs, go to your repository (at salsa.debian.org) +# and click over Settings > CI/CD > Expand (in General pipelines). +# In "Custom CI config path" write debian/salsa-ci.yml and click +# in "Save Changes". The CI tests will run after the next commit. +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml 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/source/options b/debian/source/options new file mode 100644 index 0000000..cb61fa5 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" 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