* bug#35673: pypi importer returns the wheel hash when it fails to find a proper source.
@ 2019-05-10 18:41 Jack Hill
2022-03-08 10:19 ` zimoun
0 siblings, 1 reply; 2+ messages in thread
From: Jack Hill @ 2019-05-10 18:41 UTC (permalink / raw)
To: 35673
As discussed on guix-devel[0] the pypi importer should probably not fill
in the hash with that of the wheel if a proper source archive is not found
on pypi.
[0] https://lists.gnu.org/archive/html/guix-devel/2019-05/msg00209.html
Best,
Jack
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#35673: pypi importer returns the wheel hash when it fails to find a proper source.
2019-05-10 18:41 bug#35673: pypi importer returns the wheel hash when it fails to find a proper source Jack Hill
@ 2022-03-08 10:19 ` zimoun
0 siblings, 0 replies; 2+ messages in thread
From: zimoun @ 2022-03-08 10:19 UTC (permalink / raw)
To: Jack Hill; +Cc: 35673
Hi,
On ven., 10 mai 2019 at 14:41, Jack Hill <jackhill@jackhill.us> wrote:
> As discussed on guix-devel[0] the pypi importer should probably not fill in
> the hash with that of the wheel if a proper source archive is not found on
> pypi.
>
> [0] https://lists.gnu.org/archive/html/guix-devel/2019-05/msg00209.html
Now the importer displays some warnings and hint, for instance:
--8<---------------cut here---------------start------------->8---
$ guix import pypi PyPortfolioOpt
following redirection to `https://pypi.org/pypi/pyportfolioopt/json'...
Starting download of /tmp/guix-file.6rSGsS
From https://files.pythonhosted.org/packages/97/c2/c7569f2773f3e942367e90dcca15a235af3d3330ac8abfcbfbe67a8ba8dd/PyPortfolioOpt-1.5.1.tar.gz...
…t-1.5.1.tar.gz 56KiB 8.2MiB/s 00:00 [##################] 100.0%
Starting download of /tmp/guix-file.MFmUSK
From https://files.pythonhosted.org/packages/90/98/3906835b783ba39cfc613c7b0c0fde9c758c729ff3406d45f1c2a1116961/PyPortfolioOpt-1.5.1-py3-none-any.whl...
….1-py3-none-any.whl 60KiB 45.2MiB/s 00:00 [##################] 100.0%
guix import: warning: Failed to extract file: PyPortfolioOpt-1.5.1.dist-info/METADATA from wheel.
guix import: warning: Cannot guess requirements from source archive: no requires.txt file found.
guix import: warning: project name pyportfolioopt does not appear verbatim in the PyPI URI
hint: The PyPI URI is:
`https://files.pythonhosted.org/packages/97/c2/c7569f2773f3e942367e90dcca15
a235af3d3330ac8abfcbfbe67a8ba8dd/PyPortfolioOpt-1.5.1.tar.gz'. You should
review the pypi-uri declaration in the generated package. You may need to
replace "pyportfolioopt" with a substring of the PyPI URI that identifies
the package.
(package
(name "python-pyportfolioopt")
(version "1.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyportfolioopt" version))
(sha256
(base32 "162d6jyvba0xk2blssbp52rrjqpjv011h988k150p1fg7x7nzbs9"))))
(build-system python-build-system)
(home-page "https://github.com/robertmartin8/PyPortfolioOpt")
(synopsis "Financial portfolio optimization in python")
(description "Financial portfolio optimization in python")
(license license:expat))
--8<---------------cut here---------------end--------------->8---
If it is not enough, could you provide an example?
Cheers,
simon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-08 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-10 18:41 bug#35673: pypi importer returns the wheel hash when it fails to find a proper source Jack Hill
2022-03-08 10:19 ` zimoun
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).