Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fix #1324 pipenv requirements script #1327

Closed
wants to merge 2 commits into from

Conversation

jcox-dev
Copy link
Contributor

@jcox-dev jcox-dev commented Oct 31, 2017

What is the context of this PR?

The dev dependencies should not be included in the requirements.txt when the app is deployed.

pipenv lock -r also includes dev dependencies. This script is a work-around to only include (hashed) production dependencies in requirements.txt (to be used on Jenkins for EB build).

NB: Jenkins build for "Deploy Survey Runner to Elastic Beanstalk" will need its config updated to run this new script in place of the pipenv lock -r... line.

Inspired by https://github.com/kennethreitz/pipenv/issues/245#issuecomment-283694215

Fixes: #1324

Jamie Cox added 2 commits October 31, 2017 10:34
'pipenv lock -r' outputs a list of dependencies suitable for piping to requirements.txt file but it tends to include all (including dev) dependencies. This is expected behaviour and unlikely to change in Pipenv project but we can work around this by using the Pipenv API to generate our own requirements.txt file (with hashes).

Fixes: #1324
@jcox-dev jcox-dev requested a review from jonnyshaw89 October 31, 2017 11:05
@jcox-dev
Copy link
Contributor Author

Latest version of Pipenv doesn't have this issue thanks to https://github.com/kennethreitz/pipenv/pull/972

@jcox-dev
Copy link
Contributor Author

Closing as this is fixed in latest version of Pipenv.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant