Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent inconsistency between release and release_files tables.
The work in PR pypi#1448 was meant to replicate the information of the `requires_python` of the `release` table to the `release_files` table for efficiency when generating the list of available packages for pip. While the work on pypi#1448 seem sufficient for warehouse itself, it need to consider that legacy-pypi also access the same database, and legacy-pypi violate some constraint. In particular when using `setup.py register` followed by `twine upload`, the file upload insert files into `release_files` after inserting into `releases`. Thus the value in releases is not propagated, leading to an inconsistency and a listing in pip missing information about python-version compatibility. While I doubt there are any packages released between the merge of pypi#1448 and a fix, this update the tables, and bind an already existing trigger to update the information during insertion in `release_files`
- Loading branch information