me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/tests
Xinglu Chen 7b75f90c5b
import: pypi: Honor the 'upstream-name' package property.
Previously, when a PyPI package had a “-” followed by one or more digits in
its name, e.g., “AV-98”, the importer would interpret “98” as the version of
the package and thus mistake the “AV-98” package for the “av” package on PyPI.

  $ ./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

Setting the ‘upstream-name’ property to “AV-98” would solve the problem.

  $ ./pre-inst-env guix refresh av-98
  /home/yoctocell/src/guix/gnu/packages/web-browsers.scm:914:13: 1.0.1 is already the latest version of av-98

* guix/import/pypi.scm (guix-package->pypi-name): Honor ‘upstream-name’
property.
(make-pypi-sexp): Set ‘upstream-name’ property when appropriate.
* tests/pypi.scm (test-json): Rename to ...
(test-json-1): ... this.
(test-json-2): New variable
("guix-package->pypi-name, honor 'upstream-name'"): New test.
("pypi->guix-package, package name contains \"-\" followed by digits"):
Likewise.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-09-30 23:44:49 +02:00
..
services
accounts.scm
base16.scm
base32.scm
base64.scm
boot-parameters.scm
bournish.scm
build-utils.scm
builders.scm
cache.scm
challenge.scm
channels.scm channels: 'channel-news-entry-commit' correctly resolves annotated tags. 2021-09-18 19:37:45 +02:00
civodul.key
combinators.scm
containers.scm
cpan.scm
cpio.scm
cran.scm
crate.scm
cve-sample.json
cve.scm
debug-link.scm
derivations.scm
discovery.scm
dsa.key
ed25519.key
ed25519.sec
ed25519bis.key
ed25519bis.sec
egg.scm
elpa.scm
file-systems.scm
gem.scm
gexp.scm
git-authenticate.scm
git.scm import: Add 'generic-git' updater. 2021-09-18 19:37:45 +02:00
glob.scm
gnu-maintenance.scm
go.scm tests: go: Fix typo. 2021-09-28 22:00:47 +02:00
grafts.scm
graph.scm graph: Add '--max-depth'. 2021-09-21 15:15:52 +02:00
gremlin.scm
guix-archive.sh
guix-authenticate.sh
guix-build-branch.sh
guix-build.sh
guix-daemon.sh
guix-describe.sh
guix-download.sh
guix-environment-container.sh
guix-environment.sh
guix-gc.sh
guix-git-authenticate.sh
guix-graph.sh
guix-hash.sh
guix-lint.sh
guix-pack-localstatedir.sh
guix-pack-relocatable.sh
guix-pack.sh
guix-package-aliases.sh
guix-package-net.sh
guix-package.sh
guix-repl.sh
guix-system.sh
hackage.scm import: cabal: Treat identifier names correctly. 2021-09-15 14:28:38 +02:00
import-git.scm import: Add 'generic-git' updater. 2021-09-18 19:37:45 +02:00
import-utils.scm
inferior.scm
ipfs.scm
lint.scm test: lint: Fix ‘haskell-stackage’ test. 2021-09-28 22:00:48 +02:00
minetest.scm import: minetest: Fix typos. 2021-09-28 22:00:47 +02:00
modules.scm
monads.scm
nar.scm
networking.scm
offload.scm
opam.scm tests: Allow opam test to run without networking. 2021-09-18 19:37:44 +02:00
openpgp.scm
pack.scm
packages.scm
pki.scm
print.scm
processes.scm
profiles.scm
publish.scm
pypi.scm import: pypi: Honor the 'upstream-name' package property. 2021-09-30 23:44:49 +02:00
records.scm
rsa.key
scripts.scm
search-paths.scm
services.scm
sets.scm
signing-key.pub
signing-key.sec
size.scm
status.scm
store-database.scm
store-deduplication.scm
store-roots.scm
store.scm store: 'map/accumulate-builds' processes the whole list in case of cutoff. 2021-09-15 16:52:13 +02:00
substitute.scm
swh.scm
syscalls.scm
system.scm
test.drv
texlive.scm
transformations.scm
ui.scm
union.scm
upstream.scm
utils.scm
uuid.scm
workers.scm