NYPL-Simplified / server_core

Shared data model and utilities for Library Simplified server applications
7 stars 11 forks source link

Explicitly set version numbers for all Python dependencies #1199

Closed leonardr closed 4 years ago

leonardr commented 4 years ago

This branch is the core portion of https://jira.nypl.org/browse/SIMPLY-3100. All Python dependencies are set to the current latest releases that support Python 2. This will eliminate random breakage in the future caused by dependency releases, especially releases that drop Python 2 support.

I came up with this list by creating a fresh virtual environment and using pip freeze.

virtualenv env
source env/bin/activate
pip install --use-feature=2020-resolver -r requirements.txt # This is he old requirements.txt
pip freeze > requirements.txt # This is the new one

Then I edited the new requirements.txt to preserve comments found in the old one.

In both this branch and the circulation branch I also had to remove this line inserted by pip freeze:

pkg-resources==0.0.0

This looks like a bug in Ubuntu.

leonardr commented 4 years ago

Python package names in PyPI are case-insensitive. but they have a preferred capitalization which pip freeze prints out.