From cddfd4316a98fa7abcd3254ef2ddc3251f193135 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 9 Feb 2021 17:25:55 -0500 Subject: [PATCH 1/2] feat: add project_urls example In https://github.com/pypa/packaging.python.org/pull/823, it was mentioned that project_urls might be a good thing to show. This adds that example. --- source/tutorials/packaging-projects.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/tutorials/packaging-projects.rst b/source/tutorials/packaging-projects.rst index 9107e14b6b..9c62725c3c 100644 --- a/source/tutorials/packaging-projects.rst +++ b/source/tutorials/packaging-projects.rst @@ -134,6 +134,8 @@ an escape hatch when absolutely necessary. long_description = file: README.md long_description_content_type = text/markdown url = https://github.com/pypa/sampleproject + project_urls = + Bug Tracker = https://github.com/pypa/sampleproject/issues classifiers = Programming Language :: Python :: 3 License :: OSI Approved :: MIT License @@ -169,6 +171,8 @@ an escape hatch when absolutely necessary. - ``url`` is the URL for the homepage of the project. For many projects, this will just be a link to GitHub, GitLab, Bitbucket, or similar code hosting service. + - ``project_urls`` lets you list any number of extra links to show in PyPI. + Generally this could be to documentation, issue trackers, etc. - ``classifiers`` gives the index and :ref:`pip` some additional metadata about your package. In this case, the package is only compatible with Python 3, is licensed under the MIT license, and is OS-independent. You should @@ -234,6 +238,9 @@ an escape hatch when absolutely necessary. long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/pypa/sampleproject", + project_urls={ + "Bug Tracker": https://github.com/pypa/sampleproject/issues", + } classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", @@ -266,6 +273,8 @@ an escape hatch when absolutely necessary. - ``url`` is the URL for the homepage of the project. For many projects, this will just be a link to GitHub, GitLab, Bitbucket, or similar code hosting service. + - ``project_urls`` lets you list any number of extra links to show in PyPI. + Generally this could be to documentation, issue trackers, etc. - ``classifiers`` gives the index and :ref:`pip` some additional metadata about your package. In this case, the package is only compatible with Python 3, is licensed under the MIT license, and is OS-independent. You should From 961f6fbb41146d8de599cd689d047e38fa9d2e04 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 23 Feb 2021 00:48:56 +0100 Subject: [PATCH 2/2] s/in/on/ --- source/tutorials/packaging-projects.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/tutorials/packaging-projects.rst b/source/tutorials/packaging-projects.rst index 9c62725c3c..d34ad6611e 100644 --- a/source/tutorials/packaging-projects.rst +++ b/source/tutorials/packaging-projects.rst @@ -171,7 +171,7 @@ an escape hatch when absolutely necessary. - ``url`` is the URL for the homepage of the project. For many projects, this will just be a link to GitHub, GitLab, Bitbucket, or similar code hosting service. - - ``project_urls`` lets you list any number of extra links to show in PyPI. + - ``project_urls`` lets you list any number of extra links to show on PyPI. Generally this could be to documentation, issue trackers, etc. - ``classifiers`` gives the index and :ref:`pip` some additional metadata about your package. In this case, the package is only compatible with Python @@ -273,7 +273,7 @@ an escape hatch when absolutely necessary. - ``url`` is the URL for the homepage of the project. For many projects, this will just be a link to GitHub, GitLab, Bitbucket, or similar code hosting service. - - ``project_urls`` lets you list any number of extra links to show in PyPI. + - ``project_urls`` lets you list any number of extra links to show on PyPI. Generally this could be to documentation, issue trackers, etc. - ``classifiers`` gives the index and :ref:`pip` some additional metadata about your package. In this case, the package is only compatible with Python