all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#50854] [PATCH 0/2] Make the PyPI importer honor the ‘upstream-name’ package property
@ 2021-09-27 20:09 Xinglu Chen
  2021-09-27 20:11 ` [bug#50854] [PATCH 1/2] import: pypi: Honor the 'upstream-name' " Xinglu Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Xinglu Chen @ 2021-09-27 20:09 UTC (permalink / raw)
  To: 50854

[-- Attachment #1: Type: text/plain, Size: 1345 bytes --]

If a PyPI package contains a “-” followed by one or more digits, e.g.,
“AV-98”, the PyPI importer/updater will think that the digits after the
“-” is the version of the package, and instead of trying to update
“AV-98” it will try to update “AV”.

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix refresh av-98
following redirection to `https://pypi.org/pypi/av/json'...
/home/yoctocell/src/guix/gnu/packages/web-browsers.scm:914:13: av-98 would be upgraded from 1.0.1 to 8.0.3
--8<---------------cut here---------------end--------------->8---

The first patch makes the PyPI importer honor the ‘upstream-name’
property; it will also generate a package with an ‘upstream-name’
property if the package name contains a “-” followed by one or more
digits.

The second patch sets the ‘upstream-name’ property for the ‘av-98’
package.

Xinglu Chen (2):
  import: pypi: Honor the 'upstream-name' package property.
  gnu: av-98: Set 'upstream-name' property.

 gnu/packages/web-browsers.scm |   2 +
 guix/import/pypi.scm          |  20 +++++--
 tests/pypi.scm                | 106 +++++++++++++++++++++++++++++++---
 3 files changed, 115 insertions(+), 13 deletions(-)


base-commit: 6ae4644984608b7eff7ab54d3a5787c661d85b2e
-- 
2.33.0




[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-30 21:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-27 20:09 [bug#50854] [PATCH 0/2] Make the PyPI importer honor the ‘upstream-name’ package property Xinglu Chen
2021-09-27 20:11 ` [bug#50854] [PATCH 1/2] import: pypi: Honor the 'upstream-name' " Xinglu Chen
2021-09-27 20:11 ` [bug#50854] [PATCH 2/2] gnu: av-98: Set 'upstream-name' property Xinglu Chen
2021-09-30 21:24 ` bug#50854: [PATCH 0/2] Make the PyPI importer honor the ‘upstream-name’ package property Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.