Skip to content

Commit

Permalink
Add utility script for resyncing pipenv
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Sep 4, 2024
1 parent 3c07516 commit 73ea810
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pydatalab/scripts/pipenv-resync.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# This script is a hack to keep a pipenv lock synced with our pip-compile files
# It injects dynamic optional dependencies into our pyproject.toml (currently incompatible
# with any non-dynamic dependencies in setuptools 74) and generates the lock file
#

TOP_DIR=$(git rev-parse --show-toplevel)
# Strip comments
sed -i '/^\s&*#/d' $TOP_DIR/pydatalab/requirements/*.txt
cd $TOP_DIR/pydatalab && pipenv install -r requirements/requirements-all.txt && pipenv install -r requirements/requirements-all-dev.txt --dev
# Reset Pipfile, which will now have all deps inlined
cd $TOP_DIR/pydatalab && git checkout requirements

0 comments on commit 73ea810

Please sign in to comment.