stevearc / pypicloud

S3-backed pypi server implementation
MIT License
506 stars 141 forks source link

Include upload_time in metadata for releases #144

Open ikonst opened 6 years ago

ikonst commented 6 years ago

Metadata returned from pypi includes the upload_time property.

Example from https://pypi.python.org/pypi/requests/json/:

{
    ...
    "releases": {
        "1.0.4": [
            {
                ...
                "upload_time": "2012-12-23T07:45:10", 
                ...
                "url": "https://pypi.python.org/packages/5d/e8/f27e0868b9a49946b3f800722e02b19efebde22ae534276df3e5f6cca41d/requests-1.0.4.tar.gz", 
            }
        ],

The upload_time flag is required by piprot.

stevearc commented 6 years ago

This will be tricky for packages that pypicloud fetches from upstream. Right now we download and store the package file, but don't receive any metadata about it.