Commit 59dd72d9 authored by Cyril Roelandt's avatar Cyril Roelandt

Use license classifiers rather than the license field.

The license field has a 'free' format, while the classifiers are unique
identifiers, similar to SPDX identifiers. In the documentation, we
should therefore showcase the use of classifiers.
parent d36295aa
Use license classifiers rather than the license field.
...@@ -136,16 +136,18 @@ dependencies, and perhaps some data files and scripts:: ...@@ -136,16 +136,18 @@ dependencies, and perhaps some data files and scripts::
author="Me", author="Me",
author_email="me@example.com", author_email="me@example.com",
description="This is an Example Package", description="This is an Example Package",
license="PSF",
keywords="hello world example examples", keywords="hello world example examples",
url="http://example.com/HelloWorld/", # project home page, if any url="http://example.com/HelloWorld/", # project home page, if any
project_urls={ project_urls={
"Bug Tracker": "https://bugs.example.com/HelloWorld/", "Bug Tracker": "https://bugs.example.com/HelloWorld/",
"Documentation": "https://docs.example.com/HelloWorld/", "Documentation": "https://docs.example.com/HelloWorld/",
"Source Code": "https://code.example.com/HelloWorld/", "Source Code": "https://code.example.com/HelloWorld/",
} },
classifiers=[
'License :: OSI Approved :: Python Software Foundation License'
]
# could also include long_description, download_url, classifiers, etc. # could also include long_description, download_url, etc.
) )
In the sections that follow, we'll explain what most of these ``setup()`` In the sections that follow, we'll explain what most of these ``setup()``
...@@ -2234,6 +2236,7 @@ boilerplate code in some cases. ...@@ -2234,6 +2236,7 @@ boilerplate code in some cases.
license = BSD 3-Clause License license = BSD 3-Clause License
classifiers = classifiers =
Framework :: Django Framework :: Django
License :: OSI Approved :: BSD License
Programming Language :: Python :: 3 Programming Language :: Python :: 3
Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.5
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment