pypi2port broken

Mojca Miklavec mojca at macports.org
Fri Jul 22 03:24:06 PDT 2016


On 22 July 2016 at 11:39, Joshua Root wrote:
> On 2016-7-22 19:08 , Mojca Miklavec wrote:
>>
>> Hello,
>>
>> It seems that pypi2port has some problems (most likely after the
>> changes done at pypi infrastructure):
>>
>> xmlrpclib.ProtocolError: <ProtocolError for pypi.python.org/pypi: 403
>> Must access using HTTPS instead of HTTP>
>>
>> Is anyone willing to look at it?
>
>
> Looks like it might be pretty easy to fix; try changing pypi2port.py line 42
> to use https instead of http?

I did that already, but I seem to have given up too early ...

> pypi2port -f pypeg2
No release found

(I made a few more unsuccessful attempts with other python modules out
of my head.)

I didn't think of the fact that I used the wrong capitalisation.

The following works:

> pypi2port -f pyPEG2
Fetching distfiles...
40334
806
[------------------------------------------](40334 Kb of 40334 Kb) OK4 Kb)
Aborting due to inconsistency on checksums
./sources/python/py-pyPEG2/pyPEG2-2.15.2.tar.gz
84057d292808553290f0b78f42c64bbe d41d8cd98f00b204e9800998ecf8427e

... kind of. It's still pretty useless as it aborts.

Fixing *this particular* pypi2port conversion is no longer relevant (I
created the port manually anyway and already committed it), but:
- we should probably fix the sources and also update the portfile
- it might make sense to further diagnose the problem with
inconsistent checksums anyway

Mojca


More information about the macports-dev mailing list