-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Restore PyPI landing page #4520
Conversation
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.
pyproject.toml
Outdated
] | ||
|
||
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] | ||
pattern = '#(\d+)' |
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.
I think we need to require a space before the issue ID here like we do on usernames, or we could use a negative lookbehind to omit cases with \w
directly before #
. This caught us recently and the second point on v1.10.2
is currently messed up.
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.
pyproject.toml
Outdated
content-type = 'text/markdown' | ||
fragments = [ | ||
{ path = 'README.md' }, | ||
{ path = 'HISTORY.md' }, |
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.
does this insert the new lines required?
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.
Yup
oh, sorry I just fixed |
Heh I live to serve. :) JFTR, your change log is getting a bit long, so if you need help to cut it to the latest release LMK. |
Ye, might be nice to include just releases after v1 or similar. I think easiest solution would be to split Then we can add a link to the end of |
Sure that works too, but it feels wrong to me to neuter the OG file. :) Check out how doc2dash does it – it's just a bunch of regexps: |
Makes sense. @ofek if you want to put a magic comment in |
Addressed! |
Yes, but does this use the current actual license file, or a generic "MIT" label. |
In wheel it's under |
FWIW these are separate problems: A file called LICENSE (and some others which already led to Fedora packagers pester me about it) is always added courtesy of wheel: https://github.com/pypa/wheel/blob/5edc61d2c6535c380fa278bc83c578fbd5444167/src/wheel/bdist_wheel.py#L450 This is what's controlled by The PyPI metadata is set using You can see in https://pypi.org/project/doc2dash/ meta section that it shows correctly The PEP-conformant way isn't |
That's not what's happening here actually.
|
Ugh, back when I was on setuptools, they told me that they can't do anything because it's all in wheel. This will take a few years to untangle I guess… Anyhow, the effect stands since you're using the same patterns. :)
Cool! I'm not one to insist on packaging PEP peculiarities. I just noticed that my editor is yelling at me. :) Anyhow, I don't mean to derail this any further. |
Shall I go back to using the new way then? |
I think this is good, but I need to review one more time. Will do on Tuesday. |
Thanks so much for this @ofek. I've tweaked the setup slightly to make it a little more concise and IMO more readable, hope that's okay with you. |
Addresses #4473 (comment) by using @hynek's plugin