Re: pypi URL schema change

2016-05-03 Thread Roman Bogorodskiy
Roman Bogorodskiy wrote: > Hi, > > Recently pypi has changed its URL schema for distfiles. Specifically, > it was: > > /packages/{python version}/{name[0]}/{name}/{filename} > > and now it is: > > /packages/{hash[:2]}/{hash[2:4]}/{hash[4:]}/{filename} Where hash is > blake2b(file_conte

pypi URL schema change

2016-04-30 Thread Roman Bogorodskiy
Hi, Recently pypi has changed its URL schema for distfiles. Specifically, it was: /packages/{python version}/{name[0]}/{name}/{filename} and now it is: /packages/{hash[:2]}/{hash[2:4]}/{hash[4:]}/{filename} Where hash is blake2b(file_content, digest_size=32).hexdigest().lower() (copy/pas