Skip to content

Support minimumReleaseAge with Python packages on Artifactory #20070

Description

@intgr

What would you like Renovate to be able to do?

I'm self-hosting Renovate and I notice that minimumReleaseAge does not apply to Python packages.

I also have a local mirror of PyPI via Artifactory, using Poetry with custom tool.poetry.source configuration.

It's not explicitly documented which datasources support this and which don't. The public PyPI instance seems to know release dates of packages. Is this something that's just not implemented yet, or could this be an issue due to my PyPI mirror?

The stabilityDays documentation only mentions:

Some datasources do not provide a release timestamp (in which case this feature is not compatible), and other datasources may provide a release timestamp but it's not supported by Renovate (in which case a feature request needs to be implemented).

(Not relevant)

If you have any ideas on how this should be implemented, please tell us here.

The public PyPI instance seems to return release dates in its JSON API, although not in a very convenient format: https://pypi.org/pypi/django/4.1.5/json

{
    "info": {
        ...
    },
    "urls": [
        {
            "filename": "Django-4.1.5-py3-none-any.whl",
            "upload_time": "2023-01-02T07:34:45",
            "upload_time_iso_8601": "2023-01-02T07:34:45.541744Z",
            ...
        },
        {
            "filename": "Django-4.1.5.tar.gz",
            "upload_time": "2023-01-02T07:34:49",
            "upload_time_iso_8601": "2023-01-02T07:34:49.562776Z",
            ...
        }
    ]
}

Is this a feature you are interested in implementing yourself?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:requirementsFull requirements are not yet known, so implementation should not be started

    Type

    No type

    Priority

    None yet

    Datasource

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions