Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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)


  • Change mirror_sites to
  • Change livecheck to use${}/json and adjust livecheck.regex accordingly
  • Modify python packages to use pypi for master_sites

Attachments (1)

pypi_long.patch (245.7 KB) - added by xeron (Ivan Larionov) 4 years ago.

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by xeron (Ivan Larionov)

Attachment: pypi_long.patch added

comment:1 Changed 4 years ago by xeron (Ivan Larionov)

Modifying livecheck because previously used XML page is not available for new versions of packages (redirects to JSON page).

comment:2 Changed 4 years ago by raimue (Rainer Müller)

comment:3 Changed 4 years ago by raimue (Rainer Müller)

comment:4 Changed 4 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Regarding the attached patch:

  1. mirrors_sites already has the new and old URL as of r148868
  2. The proposed livecheck does not work for all ports
  3. 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.

Last edited 4 years ago by raimue (Rainer Müller) (previous) (diff)

comment:5 Changed 4 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
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)
Note: See TracTickets for help on using tickets.