-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Allow reading package description/summary from Python file #10
Comments
We are not likely to add this support in pdm-pep517. Ideally, per the spirit of PEP 621, Python files are not going to keep any metadata, as they should be stored in |
In fact, I even didn't notice this line. IMO that is way too much assumption of what the main file should be like. |
Closed by the linked PR above |
Hmm… OK. Does that mean your looking to remove
|
(Slighly sad that the description wasn't actually added, but not a big deal. It's probably not worth the hassle of keeping the code around in the long run.) |
See flit's usage guide for prior-art on this. It's a small thing, but it saves duplicating the summary line between the module docs and the pyproject file.
Also currently converting a project from flit to pdm (as I did) results in the project description being empty, with this feature it could instead be converted to a dynamic reference to the project's
__init__.py
file.I'm thinking that using the
tokenize
module would be the best way to implement this (re
won't really cut it). I can whip a PoC of this if you are interested. Cheers!The text was updated successfully, but these errors were encountered: