Jonathan Ringer
47c82c04ae
update-python-libraries: use sri-hash
2022-01-26 15:10:22 -08:00
Jonathan Ringer
b316efff4b
update-python-libraries: skip replacing 'rev' when set to variable
...
It's common for fetchFromGitHub to have `rev = version;`, in which
it will inherit the version. So no replacement is required.
2022-01-13 18:55:44 -08:00
Jonathan Ringer
ce0a907730
update-python-libraries: support pyproject and flit formats
...
Generally, this is determined by the fetcher. The
notable exception would be the "wheel" format.
2022-01-13 18:55:44 -08:00
Jonathan Ringer
a230ca83f2
python/update-python-libraries: Allow usage of hash
2021-12-05 22:34:16 -08:00
Jonathan Ringer
8746627039
python/update-python-libraries: enable updates when file contains many pnames
2021-12-05 22:34:16 -08:00
Jonathan Ringer
48d0ca0c05
update-python-libraries: handle github branches and tags with same name
2021-06-22 13:42:46 +02:00
Jonathan Ringer
9c9418151d
update-python-libraries: allow for top-level attrs to be updated with github fetcher
2020-10-15 12:10:08 -07:00
Jonathan Ringer
2a9c3ec083
update-python-libraries: make script updateScript friendly
2020-10-11 12:03:18 -07:00
Jonathan Ringer
4eaf246f24
update-python-libraries: add github fetcher
2020-10-06 00:55:43 -07:00
Jonathan Ringer
279438e7f8
python: add use-pkgs-prefix option to update script
2020-03-27 01:47:30 -07:00
Frederik Rietdijk
182571cdc3
update-python-libraries: ignore pyproject
2019-11-22 08:37:03 +01:00
Jonathan Ringer
deb201b311
update-python-libraries: update usage comments
2019-11-03 12:03:27 -08:00
Frederik Rietdijk
aedf4fc8fc
Revert "update-python-libraries: use version key for latest release ( #68857 )"
...
This broke support for --target.
This reverts commit e8c29fa77c
.
2019-10-18 09:53:55 +02:00
Frederik Rietdijk
7181aca6d9
update-python-libraries: handle other format
2019-10-18 09:53:55 +02:00
Mario Rodas
e8c29fa77c
update-python-libraries: use version key for latest release ( #68857 )
...
From warehouse API reference [1]:
GET /pypi/<project_name>/json
Returns metadata (info) about an individual project at the latest
version […]
[1] https://warehouse.pypa.io/api-reference/json/#project
2019-09-16 17:34:15 -05:00
Frederik Rietdijk
74d0b82f29
buildPython*: add updateScript to passthru
...
All Python packages now have an updateScript. The script calls
`update-python-libraries` and passes it the position of the derivation
expression obtained using `meta.position`. This works fine in case a Nix
expression represents only a single derivation. If there are more in it,
`update-python-libraries` will fail.
2018-12-07 15:48:54 +01:00