-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[FR] Releasing: include link to changelog in GH release #2892
Comments
This uses |
I'm in favor of supporting this. I'd prefer to support it in jaraco/skeleton as a procedure that applies to all projects. My main reluctance there is that it's yet another piece of metadata that has to be customized for each project, but only for those that support RTD (not all projects incorporate RTD because of the overhead that adds). Currently, there's one thing that needs to be customized when enabling RTD - the badge in the readme (that you found eventually). I'd like to see something like:
If this functionality were added, it would rely on the existing signals to generate the metadata in useful places. Step 2 could be skipped, but there have been other requests to include the documentation URL in PyPI. Would you be willing to work on this? |
I'd need some pointers. Step 1: Something like this: def rtd_badge_doc_link():
found_badge = False
with open("README.rst") as f:
for line in f:
if found_badge:
return line.split()[-1]
elif ".. image:: https://img.shields.io/readthedocs/" in line:
found_badge = True
return None returns Where would this routine live? Would it be in the setuptools plugin? Which repo would the plugin be part of? I don't have experience with setuptools plugins, could you point me to some examples? |
Nice! Oh, that's interesting. Setuptools appears to have a stale or customized badge. Most skeleton-based projects use RTD directly. I would want to support that scheme too (and maybe just switch Setuptools to align with the skeleton). One tweak I'll want to make is in the
I'm happy to host it in jaraco.develop, which could also implement the setuptools plugin.
setuptools_scm implements a finalize_distribution_options hook in order to supply a version on the distribution. You may need to inspect the Setuptools code to determine what attribute(s) need to be modified to accept the project URLs (note, it might not be what Hope that helps. Oh, and one other tip - in the plugin, you may wish not to hard-code "README.rst" but instead accept the project's "Description" (aka long_description) as input. |
I strongly think that a better and cleaner solution will be to add the changelog url to the First and foremost not everyone looks in the GH releases. Adding a link to the |
Hi! Sorry, this dropped off my todo list and isn't important for me now, so I'll unvolunteer myself :) I don't mind if this issue is closed or if someone else takes care of it. |
The crux of this issue is that the README is static. I'd really much rather not have to supply essential metadata in the README, but instead have the readme reflect important metadata. I noticed recently that https://github.com/hynek/hatch-fancy-pypi-readme offers some dynamism in the README, but it's still largely pulling from other static fragments and substitutions and it's for hatch only. I welcome others to take this up, but I have other priorities (distutils migration, pkg_resources deprecation) before I get to the features that would make this problem easier (zero config). I welcome others to contribute. |
What's the problem this feature will solve?
I'm subscribed to this repo's release notifications (thank you for making GH releases!)
When a new release is made, I want to check the changelog to see if I need to upgrade right away, or make some changes to a project.
This is my flow:
Describe the solution you'd like
Please could you include the https://setuptools.pypa.io/en/latest/history.html link in the release body? Then it's a single click from release to the changelog.
Alternative Solutions
No response
Additional context
I see https://github.com/jaraco/jaraco.develop is used for creating the GitHub release:
https://github.com/jaraco/jaraco.develop/blob/main/jaraco/develop/create-github-release.py
Perhaps the changelog link could be added to
project_urls
insetup.cfg
, then extracted fromrepo.get_project_metadata()
(it's a"Project-URL"
).Then passed as a new parameter to
project.create_release(tag)
, and used in the GitHub API call asbody
:https://github.com/jaraco/jaraco.develop/blob/main/jaraco/develop/github.py
Code of Conduct
The text was updated successfully, but these errors were encountered: