Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Currently, there is no way to do that directly. That is an improvement that can be done, @ForgottenProgramme |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is currently available: it allows one to use the latest release.
✋ How can you create a recipe for a specific release version (with a tag preferably)?
🔥 Is there something like the following that could be used?
grayskull pypi https://github.com/{{ OWNER }}/{{ REPO }} --tag {{ TAG }}Example:
Notes
I see that the code tries to download the sdist package from this URL.
https://api.github.com/repos/{{ USER }}/{{ REPO }}/releases/latestAccording to GitHub API docs the following returns the release information with a specific tag.
https://api.github.com/repos/{{ USER }}/{{ REPO }}/releases/tags/{{ TAG }}Example
Here we look at the json output returned by GitHub API for genespeak repository. Both of the following two methods will yield the same output (release info for
v0.0.9as on 2022-04-26).Release:
latestClick to expand and see output
{ "url": "https://api.github.com/repos/sugatoray/genespeak/releases/57632929", "assets_url": "https://api.github.com/repos/sugatoray/genespeak/releases/57632929/assets", "upload_url": "https://uploads.github.com/repos/sugatoray/genespeak/releases/57632929/assets{?name,label}", "html_url": "https://github.com/sugatoray/genespeak/releases/tag/v0.0.9", "id": 57632929, "author": { "login": "sugatoray", "id": 10201242, "node_id": "MDQ6VXNlcjEwMjAxMjQy", "avatar_url": "https://avatars.githubusercontent.com/u/10201242?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sugatoray", "html_url": "https://github.com/sugatoray", "followers_url": "https://api.github.com/users/sugatoray/followers", "following_url": "https://api.github.com/users/sugatoray/following{/other_user}", "gists_url": "https://api.github.com/users/sugatoray/gists{/gist_id}", "starred_url": "https://api.github.com/users/sugatoray/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sugatoray/subscriptions", "organizations_url": "https://api.github.com/users/sugatoray/orgs", "repos_url": "https://api.github.com/users/sugatoray/repos", "events_url": "https://api.github.com/users/sugatoray/events{/privacy}", "received_events_url": "https://api.github.com/users/sugatoray/received_events", "type": "User", "site_admin": false }, "node_id": "RE_kwDOGmamys4Db2ih", "tag_name": "v0.0.9", "target_commitish": "master", "name": "v0.0.9", "draft": false, "prerelease": false, "created_at": "2022-01-21T03:26:06Z", "published_at": "2022-01-21T03:27:46Z", "assets": [ ], "tarball_url": "https://api.github.com/repos/sugatoray/genespeak/tarball/v0.0.9", "zipball_url": "https://api.github.com/repos/sugatoray/genespeak/zipball/v0.0.9", "body": "The first release after integrating with zenodo. No major changes.\n" }Release Tag:
v0.0.9Click to expand and see output
{ "url": "https://api.github.com/repos/sugatoray/genespeak/releases/57632929", "assets_url": "https://api.github.com/repos/sugatoray/genespeak/releases/57632929/assets", "upload_url": "https://uploads.github.com/repos/sugatoray/genespeak/releases/57632929/assets{?name,label}", "html_url": "https://github.com/sugatoray/genespeak/releases/tag/v0.0.9", "id": 57632929, "author": { "login": "sugatoray", "id": 10201242, "node_id": "MDQ6VXNlcjEwMjAxMjQy", "avatar_url": "https://avatars.githubusercontent.com/u/10201242?v=4", "gravatar_id": "", "url": "https://api.github.com/users/sugatoray", "html_url": "https://github.com/sugatoray", "followers_url": "https://api.github.com/users/sugatoray/followers", "following_url": "https://api.github.com/users/sugatoray/following{/other_user}", "gists_url": "https://api.github.com/users/sugatoray/gists{/gist_id}", "starred_url": "https://api.github.com/users/sugatoray/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sugatoray/subscriptions", "organizations_url": "https://api.github.com/users/sugatoray/orgs", "repos_url": "https://api.github.com/users/sugatoray/repos", "events_url": "https://api.github.com/users/sugatoray/events{/privacy}", "received_events_url": "https://api.github.com/users/sugatoray/received_events", "type": "User", "site_admin": false }, "node_id": "RE_kwDOGmamys4Db2ih", "tag_name": "v0.0.9", "target_commitish": "master", "name": "v0.0.9", "draft": false, "prerelease": false, "created_at": "2022-01-21T03:26:06Z", "published_at": "2022-01-21T03:27:46Z", "assets": [ ], "tarball_url": "https://api.github.com/repos/sugatoray/genespeak/tarball/v0.0.9", "zipball_url": "https://api.github.com/repos/sugatoray/genespeak/zipball/v0.0.9", "body": "The first release after integrating with zenodo. No major changes.\n" }Beta Was this translation helpful? Give feedback.
All reactions