Skip to content

What metadata/installability checks should Warehouse check uploads for? #194

@msabramo

Description

@msabramo

Recently, a project that I worked on pushed a new version to PyPI and it turned out to be completely broken, because the setup.py was referencing a README.rst file that was not present in the sdist.

It would be awesome if PyPI could so checking of packages that are uploaded.

To start with, it could create a virtualenv and try pip installing the package and make sure that exits with status 0. Perhaps it could also try easy_install to make sure that works too.

There are more elaborate things that could be done like run tests if they are included (many packages don't bundle their tests though) or try to validate the RST, but I think just pip installing is a very good first start, as it detects packages that are completely broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestneeds discussiona product management/policy issue maintainers and users should discusstestingTest infrastructure and individual tests

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions