Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates @ packaging-projects.rst #1818

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions source/tutorials/packaging-projects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ following this tutorial.
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
license = "MIT"
license-files = ["LICEN[CS]E*"]
license = { file = "LICENSE.md" }

[project.urls]
Homepage = "https://github.com/pypa/sampleproject"
Expand Down Expand Up @@ -308,7 +307,7 @@ Creating a LICENSE
It's important for every package uploaded to the Python Package Index to include
a license. This tells users who install your package the terms under which they
can use your package. For help picking a license, see
https://choosealicense.com/. Once you have chosen a license, open
https://choosealicense.com/. Once you have chosen a license, create a file called :file:`LICENSE`, open
:file:`LICENSE` and enter the license text. For example, if you had chosen the
MIT license:

Expand Down Expand Up @@ -486,6 +485,14 @@ and install your package from TestPyPI:

python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps example-package-YOUR-USERNAME-HERE


In case there is an issue with the above instruction and the package isn't recognized, use the link provided at TestPyPI:

.. code-block:: bash

pip install -i https://test.pypi.org/simple/ example-package-YOUR-USERNAME-HERE


.. tab:: Windows

.. code-block:: bat
Expand Down