Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pip compile script to work around pip tools python version limitation #3868

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

bufke
Copy link
Contributor

@bufke bufke commented Jun 14, 2022

Description

Work around pip tools limitation where packages that depend on a certain Python version are not carried over into the requirements txt file when the command is run from a system with certain Python versions. The desire is for the txt file to act as a universal lock file for dependencies. This change appends necessary packages that only should be installed on Python < 3.9.

Implementation

The script unconditionally adds backports-zoneinfo under the assumption it's only run from Python 3.10+. We support 3.8, but I would expect developers to be using the Dockerfile defined version 3.10.

Related issues

Fixes ##3867

@bufke bufke requested a review from jnm June 14, 2022 18:27
@bufke bufke changed the title Add pip compilie script to work around pip tools python version limitation Add pip compile script to work around pip tools python version limitation Jun 14, 2022
@noliveleger
Copy link
Contributor

Awesome! What about KoBoCAT?

@bufke
Copy link
Contributor Author

bufke commented Jun 15, 2022

Awesome! What about KoBoCAT?

kobotoolbox/kobocat#832

noliveleger pushed a commit to kobotoolbox/kobocat that referenced this pull request Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants