[MacPorts] #51391: Update pypi helpers and make python packages to use it
#51391: Update pypi helpers and make python packages to use it ---------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: haspatch | Port: ---------------------------+-------------------------------- * Change `mirror_sites` to `https://files.pythonhosted.org/packages/source/:nosubdir` * Change livecheck to use `https://pypi.python.org/pypi/${livecheck.name}/json` and adjust `livecheck.regex` accordingly * Modify python packages to use `pypi` for `master_sites` -- Ticket URL: <https://trac.macports.org/ticket/51391> MacPorts <https://www.macports.org/> Ports system for OS X
#51391: Update pypi helpers and make python packages to use it ----------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: | ----------------------------+-------------------------------- Comment (by xeron.oskom@…): Modifying `livecheck` because previously used XML page is not available for new versions of packages (redirects to JSON page). -- Ticket URL: <https://trac.macports.org/ticket/51391#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51391: Update pypi helpers and make python packages to use it ----------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: | ----------------------------+-------------------------------- Comment (by raimue@…): Reference to upstream issue report: https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed- package -- Ticket URL: <https://trac.macports.org/ticket/51391#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51391: Update pypi helpers and make python packages to use it ----------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: | ----------------------------+-------------------------------- Comment (by raimue@…): Reference to mailing list discussion: https://lists.macosforge.org/pipermail/macports-dev/2016-April/032890.html -- Ticket URL: <https://trac.macports.org/ticket/51391#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51391: Update pypi helpers and make python packages to use it ----------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: haspatch Port: | ----------------------------+-------------------------------- Changes (by raimue@…): * status: new => closed * resolution: => fixed Comment: Regarding the attached patch: 1. `mirrors_sites` already has the new and old URL as of r148868 1. The proposed livecheck does not seem for all ports 1. Committed in r148976. About the livecheck: It seems to be a problem that sometimes JSON is returned instead of XML (case-sensitive? for example [https://pypi.python.org/pypi?:action=doap&name=abjad abjad] vs. [https://pypi.python.org/pypi?:action=doap&name=Abjad Abjad]). However, the proposed regex does not always work. For example, for the [https://pypi.python.org/pypi/diffoscope/json 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. -- Ticket URL: <https://trac.macports.org/ticket/51391#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#51391: Update pypi helpers and make python packages to use it ----------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: haspatch Port: | ----------------------------+-------------------------------- Comment (by xeron.oskom@…): 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) }}} -- Ticket URL: <https://trac.macports.org/ticket/51391#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts