Skip to content

Commit 68ad77c

Browse files
authored
Merge pull request #826 from henryiii/feat/project_urls
feat: add project_urls example
2 parents 6df00c3 + ab1ef1a commit 68ad77c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

source/tutorials/packaging-projects.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ an escape hatch when absolutely necessary.
134134
long_description = file: README.md
135135
long_description_content_type = text/markdown
136136
url = https://github.com/pypa/sampleproject
137+
project_urls =
138+
Bug Tracker = https://github.com/pypa/sampleproject/issues
137139
classifiers =
138140
Programming Language :: Python :: 3
139141
License :: OSI Approved :: MIT License
@@ -169,6 +171,8 @@ an escape hatch when absolutely necessary.
169171
- ``url`` is the URL for the homepage of the project. For many projects, this
170172
will just be a link to GitHub, GitLab, Bitbucket, or similar code hosting
171173
service.
174+
- ``project_urls`` lets you list any number of extra links to show on PyPI.
175+
Generally this could be to documentation, issue trackers, etc.
172176
- ``classifiers`` gives the index and :ref:`pip` some additional metadata
173177
about your package. In this case, the package is only compatible with Python
174178
3, is licensed under the MIT license, and is OS-independent. You should
@@ -235,6 +239,9 @@ an escape hatch when absolutely necessary.
235239
long_description=long_description,
236240
long_description_content_type="text/markdown",
237241
url="https://github.com/pypa/sampleproject",
242+
project_urls={
243+
"Bug Tracker": https://github.com/pypa/sampleproject/issues",
244+
}
238245
classifiers=[
239246
"Programming Language :: Python :: 3",
240247
"License :: OSI Approved :: MIT License",
@@ -267,6 +274,8 @@ an escape hatch when absolutely necessary.
267274
- ``url`` is the URL for the homepage of the project. For many projects, this
268275
will just be a link to GitHub, GitLab, Bitbucket, or similar code hosting
269276
service.
277+
- ``project_urls`` lets you list any number of extra links to show on PyPI.
278+
Generally this could be to documentation, issue trackers, etc.
270279
- ``classifiers`` gives the index and :ref:`pip` some additional metadata
271280
about your package. In this case, the package is only compatible with Python
272281
3, is licensed under the MIT license, and is OS-independent. You should

0 commit comments

Comments
 (0)