Skip to content

Commit cc46a8c

Browse files
committed
🔧 Use PEP 639 licence expression
Remove deprecated Trove classifier
1 parent 44d8cb5 commit cc46a8c

File tree

3 files changed

+34
-11
lines changed

3 files changed

+34
-11
lines changed

docs/packs/dataprep/pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["Cython", "setuptools>=61.0"]
2+
requires = ["Cython", "setuptools>=77.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -10,7 +10,9 @@ authors = [
1010
]
1111
description = "A small dataprep package"
1212
readme = "README.rst"
13-
requires-python = ">=3.7"
13+
License-Expression = "BSD-3-Clause"
14+
License-File = [ "LICENSE" ]
15+
requires-python = ">=3.9"
1416
classifiers = [
1517
"Programming Language :: Python :: 3",
1618
"License :: OSI Approved :: BSD License",

docs/packs/distribution.rst

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ like this, for example:
4747
:lineno-start: 1
4848
4949
[build-system]
50-
requires = ["hatchling"]
50+
requires = ["hatchling>=1.27"]
5151
build-backend = "hatchling.build"
5252
5353
``build-system``
5454
defines a section describing the build system
5555
``requires``
5656
defines a list of dependencies that must be installed for the build system
57-
to work, in our case ``hatchling``.
57+
to work, in our case ``hatchling>=1.27`` for :pep:`639` support.
5858

5959
.. note::
6060
Dependency version numbers should usually be written in the
61-
`requirements.txt
62-
<https://pip.pypa.io/en/latest/user_guide/#requirements-files>`_ file,
63-
not here.
61+
`constraints.txt
62+
<https://pip.pypa.io/en/latest/user_guide/#constraints-files>`_ file, not
63+
here.
6464

6565
``build-backend``
6666
identifies the entry point for the build-backend object as a dotted path.
@@ -108,7 +108,7 @@ as:
108108

109109
.. literalinclude:: dataprep/pyproject.toml
110110
:language: toml
111-
:lines: 5-19, 21-23, 40-
111+
:lines: 5-21, 23-25, 42-
112112
:lineno-start: 5
113113

114114
``name``
@@ -152,7 +152,7 @@ as:
152152
.. code-block:: toml
153153
154154
[build-system]
155-
requires = ["hatchling", "hatch-vcs"]
155+
requires = ["hatchling>=1.27", "hatch-vcs"]
156156
...
157157
[tool.hatch.version]
158158
source = "vcs"
@@ -163,7 +163,7 @@ as:
163163
.. code-block:: toml
164164
165165
[build-system]
166-
requires = ["setuptools>=61.0", "setuptools-scm"]
166+
requires = ["setuptools>=77.0", "setuptools-scm"]
167167
build-backend = "setuptools.build_meta"
168168
[project]
169169
...
@@ -219,6 +219,26 @@ as:
219219
is a path to a file containing a detailed description of the package. This
220220
is displayed on the package details page on :term:`Python Package Index`
221221
(:term:`PyPI`). In this case, the description is loaded from ``README.rst``.
222+
223+
.. _license-expression:
224+
225+
``License-Expression``
226+
contains valid `SPDX license expressions
227+
<https://spdx.github.io/spdx-spec/v2.2.2/SPDX-license-expressions/>`_.
228+
229+
.. seealso::
230+
* `License-Expression
231+
<https://packaging.python.org/en/latest/specifications/core-metadata/#license-expression>`_
232+
* `Add License-Expression field
233+
<https://peps.python.org/pep-0639/#add-license-expression-field>`_
234+
235+
``license-files``
236+
specifies a list of files containing licence information.
237+
238+
.. seealso::
239+
* `License-File (multiple use)
240+
<https://packaging.python.org/en/latest/specifications/core-metadata/#license-file-multiple-use>`_
241+
222242
``requires-python``
223243
specifies the versions of Python that are supported by your project. This
224244
will cause installers like :term:`pip` to search through older versions of

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ authors = [
66
]
77
description = "Training materials for our Python basics course: https://cusy.io/en/seminars"
88
readme = "README.rst"
9+
License-Expression = "BSD-3-Clause"
10+
License-File = [ "LICENSE" ]
911
requires-python = ">=3.9"
1012
classifiers = [
1113
"Programming Language :: Python :: 3",
12-
"License :: OSI Approved :: BSD License",
1314
"Operating System :: OS Independent",
1415
]
1516
dependencies = []

0 commit comments

Comments
 (0)