Open worldofpeace opened 4 years ago
oh, this is in your todo list in the readme. I still think it would be good to actually have it in the tracker.
https://github.com/python-poetry/poetry-core/releases/tag/1.1.0a3
Clearly marked as pre-release, but the release atom feed does not seem to reflect that.
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xml:lang="en-US">
<id>tag:github.com,2008:https://github.com/python-poetry/poetry-core/releases</id>
<link type="text/html" rel="alternate" href="https://github.com/python-poetry/poetry-core/releases"/>
<link type="application/atom+xml" rel="self" href="https://github.com/python-poetry/poetry-core/releases.atom"/>
<title>Release notes from poetry-core</title>
<updated>2021-04-09T15:37:58Z</updated>
<entry>
<id>tag:github.com,2008:Repository/238972646/1.1.0a3</id>
<updated>2021-04-09T15:49:33Z</updated>
<link rel="alternate" type="text/html" href="https://github.com/python-poetry/poetry-core/releases/tag/1.1.0a3"/>
<title>1.1.0a3</title>
<content type="html"><h3>Fixed</h3>
<ul>
<li>Fixed dependency markers not being properly copied when changing the constraint (<a href="https://github.com/python-poetry/poetry-core/pull/162" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/162/hovercard">#162</a>).</li>
</ul></content>
<author>
<name>sdispater</name>
</author>
<media:thumbnail height="30" width="30" url="https://avatars.githubusercontent.com/u/555648?s=60&v=4"/>
</entry>
<entry>
<id>tag:github.com,2008:Repository/238972646/1.0.3</id>
<updated>2021-04-09T15:45:11Z</updated>
<link rel="alternate" type="text/html" href="https://github.com/python-poetry/poetry-core/releases/tag/1.0.3"/>
<title>1.0.3</title>
<content type="html"><h3>Fixed</h3>
<ul>
<li>Fixed an error when handling single-digit Python markers (<a href="https://github.com/python-poetry/poetry-core/pull/156" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/156/hovercard">#156</a>).</li>
<li>Fixed dependency markers not being properly copied when changing the constraint (<a href="https://github.com/python-poetry/poetry-core/pull/163" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/163/hovercard">#163</a>).</li>
</ul></content>
<author>
<name>sdispater</name>
</author>
<media:thumbnail height="30" width="30" url="https://avatars.githubusercontent.com/u/555648?s=60&v=4"/>
</entry>
<entry>
<id>tag:github.com,2008:Repository/238972646/1.1.0a2</id>
<updated>2021-04-08T15:57:30Z</updated>
<link rel="alternate" type="text/html" href="https://github.com/python-poetry/poetry-core/releases/tag/1.1.0a2"/>
<title>1.1.0a2</title>
<content type="html"><h3>Fixed</h3>
<ul>
<li>Fixed performance regressions when parsing version constraints (<a href="https://github.com/python-poetry/poetry-core/pull/152" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/152/hovercard">#152</a>).</li>
<li>Fixed how local build versions are handled and compared (<a href="https://github.com/python-poetry/poetry-core/pull/157" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/157/hovercard">#157</a>, <a href="https://github.com/python-poetry/poetry-core/pull/158" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/158/hovercard">#158</a>).</li>
<li>Fixed errors when parsing some environment markers (<a href="https://github.com/python-poetry/poetry-core/pull/155" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/155/hovercard">#155</a>).</li>
</ul></content>
<author>
<name>sdispater</name>
</author>
<media:thumbnail height="30" width="30" url="https://avatars.githubusercontent.com/u/555648?s=60&v=4"/>
</entry>
<entry>
<id>tag:github.com,2008:Repository/238972646/1.1.0a1</id>
<updated>2021-03-30T15:21:27Z</updated>
<link rel="alternate" type="text/html" href="https://github.com/python-poetry/poetry-core/releases/tag/1.1.0a1"/>
<title>1.1.0a1</title>
<content type="html"><p>This version is the first to drop support for Python 2.7 and 3.5.</p>
<p>If you are still using these versions you should update the <code>requires</code> property of the <code>build-system</code> section<br>
to restrict the version of <code>poetry-core</code>:</p>
<div class="highlight highlight-source-toml"><pre>[<span class="pl-en">build-system</span>]
<span class="pl-smi">requires</span> = [<span class="pl-s"><span class="pl-pds">"</span>poetry-core&lt;1.1.0<span class="pl-pds">"</span></span>]
<span class="pl-smi">build-backend</span> = <span class="pl-s"><span class="pl-pds">"</span>poetry.core.masonry.api<span class="pl-pds">"</span></span></pre></div>
<h3>Changed</h3>
<ul>
<li>Dropped support for Python 2.7 and 3.5 (<a href="https://github.com/python-poetry/poetry-core/pull/131" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/131/hovercard">#131</a>).</li>
<li>Reorganized imports internally to improve performances (<a href="https://github.com/python-poetry/poetry-core/pull/131" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/131/hovercard">#131</a>).</li>
<li>Directory dependencies are now in non-develop mode by default (<a href="https://github.com/python-poetry/poetry-core/pull/98" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/98/hovercard">#98</a>).</li>
<li>Improved support for PEP 440 specific versions that do not abide by semantic versioning (<a href="https://github.com/python-poetry/poetry-core/pull/140" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/140/hovercard">#140</a>).</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Fixed path dependencies PEP 508 representation (<a href="https://github.com/python-poetry/poetry-core/pull/141" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/141/hovercard">#141</a>).</li>
</ul></content>
<author>
<name>sdispater</name>
</author>
<media:thumbnail height="30" width="30" url="https://avatars.githubusercontent.com/u/555648?s=60&v=4"/>
</entry>
<entry>
<id>tag:github.com,2008:Repository/238972646/1.0.2</id>
<updated>2021-02-05T20:24:14Z</updated>
<link rel="alternate" type="text/html" href="https://github.com/python-poetry/poetry-core/releases/tag/1.0.2"/>
<title>1.0.2</title>
<content type="html"><h3>Fixed</h3>
<ul>
<li>Fixed a missing import causing an error in Poetry (<a href="https://github.com/python-poetry/poetry-core/pull/134" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/134/hovercard">#134</a>).</li>
</ul></content>
<author>
<name>sdispater</name>
</author>
<media:thumbnail height="30" width="30" url="https://avatars.githubusercontent.com/u/555648?s=60&v=4"/>
</entry>
<entry>
<id>tag:github.com,2008:Repository/238972646/1.0.1</id>
<updated>2021-02-05T19:54:21Z</updated>
<link rel="alternate" type="text/html" href="https://github.com/python-poetry/poetry-core/releases/tag/1.0.1"/>
<title>1.0.1</title>
<content type="html"><h3>Fixed</h3>
<ul>
<li>Fixed PEP 508 representation of dependency without extras (<a href="https://github.com/python-poetry/poetry-core/pull/102" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/102/hovercard">#102</a>).</li>
<li>Fixed an error where development dependencies were being resolved when invoking the PEP-517 backend (<a href="https://github.com/python-poetry/poetry-core/pull/101" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/101/hovercard">#101</a>).</li>
<li>Fixed source distribution not being deterministic (<a href="https://github.com/python-poetry/poetry-core/pull/105" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/105/hovercard">#105</a>).</li>
<li>Fixed an error where zip files were left open when building wheels (<a href="https://github.com/python-poetry/poetry-core/pull/122" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/122/hovercard">#122</a>).</li>
<li>Fixed an error where explicitly included files were still not present in final distributions (<a href="https://github.com/python-poetry/poetry-core/pull/124" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/124/hovercard">#124</a>).</li>
<li>Fixed wheel filename matching for recent architecture (<a href="https://github.com/python-poetry/poetry-core/pull/125" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/125/hovercard">#125</a>, <a href="https://github.com/python-poetry/poetry-core/pull/129" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/129/hovercard">#129</a>).</li>
<li>Fixed an error where the <code>&amp;</code> character was not accepted for author names (<a href="https://github.com/python-poetry/poetry-core/pull/120" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/120/hovercard">#120</a>).</li>
<li>Fixed the PEP-508 representation of some dependencies (<a href="https://github.com/python-poetry/poetry-core/pull/103" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/103/hovercard">#103</a>).</li>
<li>Fixed the <code>Requires-Python</code> metadata generation (<a href="https://github.com/python-poetry/poetry-core/pull/127" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/127/hovercard">#127</a>).</li>
<li>Fixed an error where pre-release versions were accepted in version constraints (<a href="https://github.com/python-poetry/poetry-core/pull/128" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/128/hovercard">#128</a>).</li>
</ul></content>
<author>
<name>sdispater</name>
</author>
<media:thumbnail height="30" width="30" url="https://avatars.githubusercontent.com/u/555648?s=60&v=4"/>
</entry>
<entry>
<id>tag:github.com,2008:Repository/238972646/1.0.0</id>
<updated>2020-09-30T23:13:50Z</updated>
<link rel="alternate" type="text/html" href="https://github.com/python-poetry/poetry-core/releases/tag/1.0.0"/>
<title>1.0.0</title>
<content>No content.</content>
<author>
<name>sdispater</name>
</author>
<media:thumbnail height="30" width="30" url="https://avatars.githubusercontent.com/u/555648?s=60&v=4"/>
</entry>
<entry>
<id>tag:github.com,2008:Repository/238972646/1.0.0rc3</id>
<updated>2020-09-30T20:36:22Z</updated>
<link rel="alternate" type="text/html" href="https://github.com/python-poetry/poetry-core/releases/tag/1.0.0rc3"/>
<title>1.0.0rc3</title>
<content type="html"><h3>Changed</h3>
<ul>
<li>Removed <code>intreehooks</code> build backend in favor of the <code>backend-path</code> mechanism (<a href="https://github.com/python-poetry/poetry-core/pull/90" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/90/hovercard">#90</a>).</li>
<li>Directory dependencies will now always use a posix path for their representation (<a href="https://github.com/python-poetry/poetry-core/pull/91" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/91/hovercard">#90</a>).</li>
<li>Dependency constraints can now be set directly via a proper setter (<a href="https://github.com/python-poetry/poetry-core/pull/90" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/90/hovercard">#90</a>).</li>
</ul></content>
<author>
<name>sdispater</name>
</author>
<media:thumbnail height="30" width="30" url="https://avatars.githubusercontent.com/u/555648?s=60&v=4"/>
</entry>
<entry>
<id>tag:github.com,2008:Repository/238972646/1.0.0rc2</id>
<updated>2020-09-25T13:41:45Z</updated>
<link rel="alternate" type="text/html" href="https://github.com/python-poetry/poetry-core/releases/tag/1.0.0rc2"/>
<title>1.0.0rc2</title>
<content>No content.</content>
<author>
<name>sdispater</name>
</author>
<media:thumbnail height="30" width="30" url="https://avatars.githubusercontent.com/u/555648?s=60&v=4"/>
</entry>
<entry>
<id>tag:github.com,2008:Repository/238972646/1.0.0rc1</id>
<updated>2020-09-25T10:55:37Z</updated>
<link rel="alternate" type="text/html" href="https://github.com/python-poetry/poetry-core/releases/tag/1.0.0rc1"/>
<title>1.0.0rc1</title>
<content type="html"><h3>Fixed</h3>
<ul>
<li>Fixed Python constraint propagation when converting a package to a dependency (<a href="https://github.com/python-poetry/core/pull/84" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/84/hovercard">#84</a>).</li>
<li>Fixed VCS ignored files being included in wheel distributions for projects using the <code>src</code> layout (<a href="https://github.com/python-poetry/core/pull/81" data-hovercard-type="pull_request" data-hovercard-url="/python-poetry/poetry-core/pull/81/hovercard">#81</a>)</li>
</ul></content>
<author>
<name>sdispater</name>
</author>
<media:thumbnail height="30" width="30" url="https://avatars.githubusercontent.com/u/555648?s=60&v=4"/>
</entry>
</feed>
https://github.com/python-poetry/poetry-core/releases.atom
There is a better api endpoint that we already use in the home-assistant update script.
{
"url": "https://api.github.com/repos/python-poetry/poetry-core/releases/41192682",
"assets_url": "https://api.github.com/repos/python-poetry/poetry-core/releases/41192682/assets",
"upload_url": "https://uploads.github.com/repos/python-poetry/poetry-core/releases/41192682/assets{?name,label}",
"html_url": "https://github.com/python-poetry/poetry-core/releases/tag/1.0.3",
"id": 41192682,
"author": {
"login": "sdispater",
"id": 555648,
"node_id": "MDQ6VXNlcjU1NTY0OA==",
"avatar_url": "https://avatars.githubusercontent.com/u/555648?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sdispater",
"html_url": "https://github.com/sdispater",
"followers_url": "https://api.github.com/users/sdispater/followers",
"following_url": "https://api.github.com/users/sdispater/following{/other_user}",
"gists_url": "https://api.github.com/users/sdispater/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sdispater/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sdispater/subscriptions",
"organizations_url": "https://api.github.com/users/sdispater/orgs",
"repos_url": "https://api.github.com/users/sdispater/repos",
"events_url": "https://api.github.com/users/sdispater/events{/privacy}",
"received_events_url": "https://api.github.com/users/sdispater/received_events",
"type": "User",
"site_admin": false
},
"node_id": "MDc6UmVsZWFzZTQxMTkyNjgy",
"tag_name": "1.0.3",
"target_commitish": "01c0472d9cef3e1a4958364122dd10358a9bd719",
"name": "1.0.3",
"draft": false,
"prerelease": false,
"created_at": "2021-04-09T15:33:40Z",
"published_at": "2021-04-09T15:44:43Z",
"assets": [
],
"tarball_url": "https://api.github.com/repos/python-poetry/poetry-core/tarball/1.0.3",
"zipball_url": "https://api.github.com/repos/python-poetry/poetry-core/zipball/1.0.3",
"body": "### Fixed\r\n\r\n- Fixed an error when handling single-digit Python markers ([#156](https://github.com/python-poetry/poetry-core/pull/156)).\r\n- Fixed dependency markers not being properly copied when changing the constraint ([#163](https://github.com/python-poetry/poetry-core/pull/163))."
}
https://api.github.com/repos/python-poetry/poetry-core/releases/latest
rc versions should be also detected in the last version: https://github.com/Mic92/nix-update/releases/tag/0.4.0
It would also be nice to be able to always use the latest commit. For nightly builds.
Maybe given by branch - not master or Main - in brach like develop, next or something else - configurable by package
fetch https://github.com/esphome/esphome/releases.atom
Update 2022.10.2 -> 2022.11.0b2 in /home/hexa/git/nixos/master/pkgs/tools/misc/esphome/default.nix
Still happening on 0.7.0. https://github.com/NixOS/nixpkgs/pull/200382
@mweinelt might be hard to detect prerelease automatically in this case, perhaps --version-regex
would help here?
Latest commit can be fetched by using --version=branch
, which was added later.
Could --version=branch
be inferred when version
matches ^unstable-\d{4}-\d{2}-\d{2}$
?
Could
--version=branch
be inferred whenversion
matches^unstable-\d{4}-\d{2}-\d{2}$
?
The new unstable format needs support now as well 0-unstable-year-month-day
for versions without a release.
@mweinelt the complaint about pre-releases not being skipped is now fixed by using the github api, per https://github.com/Mic92/nix-update/pull/221
@lf- @mweinelt I came over a StackOverflow answer that recommends Lastversion when searching about the GitHub release.atom
and pre-release. Maybe we could implement such functionality in a similar manner.
BTW, I made a PR that packages lastversion
and use it to implement the passthru.updateScript
of losslesscut-bin
(the binary package of LosslessCut).
I think this issue was originally intended to ask for support for updating to unstable versions from a branch which has been implemented.
Should we continue the discussion on nix-update attempting to update to pre-release versions in a new issue?
It would be nice if I could give nix-update a commit rev to update the package to.