-
Notifications
You must be signed in to change notification settings - Fork 931
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
Document the license argument to setup.py #95
Comments
Regarding this issue, I see now that maybe it isn't the intent of this section to document all arguments to Currently, for Python users, it seems like the documentation is spread across at least three places:
|
packaging.python.org should be an entry point, with the comprehensive docs covered in the individual tools. In the case of setuptools, the preference is to get its docs to a point of being standalone (i.e. not requiring folks to read the distutils docs first). @qwcode may be able to provide more info on the state of those docs updates (there's a lot of work involved, and I'm not personally sure who else beyond Marcus is actively working on it). |
I ran into this problem today and realized that it would be great if https://packaging.python.org/specifications/core-metadata/#license-optional or https://packaging.python.org/tutorials/distributing-packages/#license pointed to the list of trove classifiers at https://pypi.python.org/pypi?%3Aaction=list_classifiers (which is where I figured out that I needed to specify the GPL as |
Given pypi/warehouse#1300, linking to https://pypi.org/pypi?%3Aaction=list_classifiers would be better. |
- added a link to PyPI's list of classifers - updated the PEP 301 reference to be a regular hyperlink - hyperlinked the cross reference from License to Classifier
Nice, moving the specs into PyPUG made this a relatively simple PR, rather than "we don't have an easy way of handling that kind of spec clarification" (which was the whole point of moving them, but it's still nice seeing that theory work out in practice). |
- added a link to PyPI's list of classifers - updated the PEP 301 reference to be a regular hyperlink - hyperlinked the cross reference from License to Classifier
The core metadata page now links to this. Do we want to link directly to it from anywhere else? (The link is to the Legacy PyPI URL, since Warehouse doesn't provide this yet) |
The core metadata page now links to https://pypi.org/classifiers/ which is actually pleasant to look at!
@jonparrott any thoughts? Maybe scope creep for #210 but maybe not? |
Related: pypa/packaging-problems#31 |
I do feel like it's out of scope for #210. Let me think on this some more. |
It looks as though this has been fixed. Should this be closed? |
@cjerdonek Do you feel like #492 resolves the original issue? |
PR #492 explains nicely that the However I don’t understand why the last line says that that license classifiers are good values for the |
I would expect SPDX identifiers to be used in that field, with a possible fallback to an arbitrary value if a custom license is used. That's what NPM does, for example. |
Python packaging specifications are older than that! 🙂 There is a proposal to add a field with SPDX identifiers, but it’s a different discussion than this ticket. |
SPDX identifiers for Python package licensing is a work-in-progress proposal: https://discuss.python.org/t/improving-license-clarity-with-better-package-metadata/2154?u=pradyunsg. If you'd like to show your support for that effort, consider doing so on that thread/topic. For this issue, I think the actionable item is to amend https://github.com/pypa/packaging.python.org/pull/492/files#diff-4e95d0a5cf515ad0ea4ec6b129020f69R285-R286 to use clearer language that does not nudge users to specify licenses like |
I have started with a PR that removes the ill advice. |
It would be good to document permissible values for the "license" argument to setup.py and how it is used: https://python-packaging-user-guide.readthedocs.org/en/latest/tutorial.html#metadata
The text was updated successfully, but these errors were encountered: