@@ -213,9 +213,10 @@ following this tutorial.
213213 requires-python = ">=3.8"
214214 classifiers = [
215215 "Programming Language :: Python :: 3",
216- "License :: OSI Approved :: MIT License",
217216 "Operating System :: OS Independent",
218217 ]
218+ license = "MIT"
219+ license-files = ["LICEN[CS]E*"]
219220
220221 [project.urls]
221222 Homepage = "https://github.com/pypa/sampleproject"
@@ -242,11 +243,15 @@ following this tutorial.
242243 packages until it finds one that has a matching Python version.
243244- ``classifiers `` gives the index and :ref: `pip ` some additional metadata
244245 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
248249 your package will work on. For a complete list of classifiers, see
249250 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 glob paths to the license files,
254+ relative to the directory where :file: `pyproject.toml ` is located.
250255- ``urls `` lets you list any number of extra links to show on PyPI.
251256 Generally this could be to the source, documentation, issue trackers, etc.
252257
@@ -305,6 +310,9 @@ MIT license:
305310
306311 Most build backends automatically include license files in packages. See your
307312backend'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.
308316
309317
310318Including other files
0 commit comments