#51391 closed enhancement (fixed)
Update pypi helpers and make python packages to use it
Reported by: | xeron (Ivan Larionov) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | haspatch | Cc: | raimue (Rainer Müller) |
Port: |
Description
- Change
mirror_sites
tohttps://files.pythonhosted.org/packages/source/:nosubdir
- Change livecheck to use
https://pypi.python.org/pypi/${livecheck.name}/json
and adjustlivecheck.regex
accordingly - Modify python packages to use
pypi
formaster_sites
Attachments (1)
Change History (6)
Changed 8 years ago by xeron (Ivan Larionov)
Attachment: | pypi_long.patch added |
---|
comment:1 Changed 8 years ago by xeron (Ivan Larionov)
comment:2 Changed 8 years ago by raimue (Rainer Müller)
Reference to upstream issue report: https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package
comment:3 Changed 8 years ago by raimue (Rainer Müller)
Reference to mailing list discussion: https://lists.macosforge.org/pipermail/macports-dev/2016-April/032890.html
comment:4 Changed 8 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Regarding the attached patch:
mirrors_sites
already has the new and old URL as of r148868- The proposed livecheck does not work for all ports
- Committed in r148976.
About the livecheck:
It seems to be a problem that sometimes JSON is returned instead of XML (case-sensitive? for example abjad vs. Abjad). However, the proposed regex does not always work. For example, for the diffoscope port, the JSON does not contain any "version:" key, so the regex does not match.
Since the original issue of changed master_sites URLs has been resolved, I will close this ticket anyway.
comment:5 Changed 8 years ago by xeron (Ivan Larionov)
It works for diffoscoppe
and it has a version. See ticket #51463 for livecheck change. I'm still proposing this.
DEBUG: Fetching https://pypi.python.org/pypi/diffoscope/json DEBUG: The regex is ""version": "(.+)"" DEBUG: The regex matched ""version": "52"", extracted "52" diffoscope seems to have been updated (port version: 49, new version: 52)
Modifying
livecheck
because previously used XML page is not available for new versions of packages (redirects to JSON page).