@@ -213,9 +213,10 @@ following this tutorial.
213
213
requires-python = ">=3.8"
214
214
classifiers = [
215
215
"Programming Language :: Python :: 3",
216
- "License :: OSI Approved :: MIT License",
217
216
"Operating System :: OS Independent",
218
217
]
218
+ license = "MIT"
219
+ license-files = ["LICEN[CS]E*"]
219
220
220
221
[project.urls]
221
222
Homepage = "https://github.com/pypa/sampleproject"
@@ -242,11 +243,15 @@ following this tutorial.
242
243
packages until it finds one that has a matching Python version.
243
244
- ``classifiers `` gives the index and :ref: `pip ` some additional metadata
244
245
about your package. In this case, the package is only compatible with Python
245
- 3, is licensed under the MIT license, and is OS-independent. You should
246
- always include at least which version(s) of Python your package works on,
247
- which license your package is available under, and which operating systems
246
+ 3 and is OS-independent. You should
247
+ always include at least which version(s) of Python your package works on
248
+ and which operating systems
248
249
your package will work on. For a complete list of classifiers, see
249
250
https://pypi.org/classifiers/.
251
+ - ``license `` is the :term: `SPDX license expression <License Expression> ` of
252
+ your package.
253
+ - ``license-files `` is the list of paths to the license files,
254
+ relative to the directory where :file: `pyproject.toml ` is located.
250
255
- ``urls `` lets you list any number of extra links to show on PyPI.
251
256
Generally this could be to the source, documentation, issue trackers, etc.
252
257
@@ -305,6 +310,9 @@ MIT license:
305
310
306
311
Most build backends automatically include license files in packages. See your
307
312
backend's documentation for more details.
313
+ If you include the path to license in the ``license-files `` key of
314
+ :file: `pyproject.toml `, and your build backend supports :pep: `639 `,
315
+ the file will be automatically included in the package.
308
316
309
317
310
318
Including other files
0 commit comments