-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" } | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/pypa/sampleproject" | ||
|
@@ -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: | ||
|
||
|
@@ -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 | ||
|
||
python3 -m pip install --index-url https://test.pypi.org/simple/ example-package-YOUR-USERNAME-HERE | ||
Comment on lines
+489
to
+493
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand; how does omitting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's also dangerous to suggest this, as any other deps will be allowed from TestPyPI enabling supply chain attacks. |
||
|
||
|
||
.. tab:: Windows | ||
|
||
.. code-block:: bat | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PEP 639 deprecates this syntax and uses this field for SPDX.