annotate pyproject.toml @ 406:deabdfed3b96

For current Python versions use an intree build backend that wraps setuptools.build_meta. Augmenting the generated sdist archive is now done automatically.
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 17 Feb 2026 16:15:31 +0100
parents 3beac9c85781
children d3429477cd55 3e28e5aacb8a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
138
64078592444f Add a minimal pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
1 # Pure-Python-Build
64078592444f Add a minimal pyproject.toml
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
2 [build-system]
397
c033f4072c14 FIX: _postprocess-sdist now works for compressed archives and configuration in pyproject.toml.
Franz Glasner <fzglas.hg@dom66.de>
parents: 392
diff changeset
3 requires = [
c033f4072c14 FIX: _postprocess-sdist now works for compressed archives and configuration in pyproject.toml.
Franz Glasner <fzglas.hg@dom66.de>
parents: 392
diff changeset
4 "setuptools>=77.0",
406
deabdfed3b96 For current Python versions use an intree build backend that wraps setuptools.build_meta.
Franz Glasner <fzglas.hg@dom66.de>
parents: 398
diff changeset
5 "wheel>=0.33"
397
c033f4072c14 FIX: _postprocess-sdist now works for compressed archives and configuration in pyproject.toml.
Franz Glasner <fzglas.hg@dom66.de>
parents: 392
diff changeset
6 ]
406
deabdfed3b96 For current Python versions use an intree build backend that wraps setuptools.build_meta.
Franz Glasner <fzglas.hg@dom66.de>
parents: 398
diff changeset
7 # This is a intree wrapper for setuptools.build_meta
deabdfed3b96 For current Python versions use an intree build backend that wraps setuptools.build_meta.
Franz Glasner <fzglas.hg@dom66.de>
parents: 398
diff changeset
8 build-backend = "cutils_build"
deabdfed3b96 For current Python versions use an intree build backend that wraps setuptools.build_meta.
Franz Glasner <fzglas.hg@dom66.de>
parents: 398
diff changeset
9 backend-path = ["intree-build-helper"]
390
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
10
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
11 [project]
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
12 name = "py-cutils"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
13 description = "Pure Python implementation of some coreutils with some extensions"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
14 #
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
15 # NOTE: This is the *distribution* license (e.g. includes vendored stuff).
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
16 # There is no such thing here as a "project" license.
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
17 #
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
18 license = "BSD-3-Clause AND MIT"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
19 license-files = [
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
20 "LICENSES/BSD-3-Clause.txt",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
21 "LICENSES/MIT.txt"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
22 ]
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
23 authors = [
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
24 {name = "Franz Glasner", email = "fzglas.hg@dom66.de"},
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
25 ]
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
26 classifiers = [
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
27 "Development Status :: 5 - Production/Stable",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
28 "Environment :: Console",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
29 "Intended Audience :: Developers",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
30 "Intended Audience :: End Users/Desktop",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
31 "Intended Audience :: System Administrators",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
32 "Operating System :: OS Independent",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
33 "Programming Language :: Python :: 2.7",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
34 "Programming Language :: Python :: 3",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
35 "Topic :: System",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
36 "Topic :: Utilities"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
37 ]
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
38 requires-python = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
39 dynamic = ["version", "readme"]
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
40
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
41 [project.urls]
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
42 homepage = "https://hg2.dom66.de/hgrepos/Python/apps/py-cutils"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
43 download = "https://pypi2.dom66.de/simple/py-cutils/"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
44 source = "https://hg2.dom66.de/hgrepos/Python/apps/py-cutils"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
45
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
46 [project.scripts]
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
47 py-dos2unix = "cutils.dos2unix:main"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
48 py-genpwd = "cutils.genpwd:main"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
49 py-shasum = "cutils.shasum:main"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
50 py-treesum = "cutils.treesum:main"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
51
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
52 [tool.setuptools]
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
53 include-package-data = false
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
54 platforms = ["any"]
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
55 zip-safe = true
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
56 packages = [
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
57 "cutils",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
58 "cutils.util",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
59 "cutils.crcmod",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
60 "cutils.crcmod.python2",
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
61 "cutils.crcmod.python3"
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
62 ]
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
63
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
64 [tool.setuptools.dynamic]
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
65 version = {attr = "cutils.__version__"}
1ea88e3bec25 On the default trunk begin a pure PEP 517 build configuration.
Franz Glasner <fzglas.hg@dom66.de>
parents: 138
diff changeset
66 readme = {file = ["README.txt"], content-type = "text/x-rst"}
392
5b8c48e8c4ec FIX: Include REUSE.toml in the wheel
Franz Glasner <fzglas.hg@dom66.de>
parents: 390
diff changeset
67
5b8c48e8c4ec FIX: Include REUSE.toml in the wheel
Franz Glasner <fzglas.hg@dom66.de>
parents: 390
diff changeset
68 [tool.setuptools.package-data]
5b8c48e8c4ec FIX: Include REUSE.toml in the wheel
Franz Glasner <fzglas.hg@dom66.de>
parents: 390
diff changeset
69 "cutils.crcmod" = ["REUSE.toml"]