add pipenv rebuild script

pull/1012/head
Damon C 2019-05-27 07:13:46 +02:00
parent 3906d045d8
commit dd5fef5919
2 changed files with 25 additions and 0 deletions

View File

@ -7,6 +7,7 @@ RUN apt-get update -y && apt-get upgrade -y && apt-get install gcc libffi-dev wg
# make an install directory
RUN mkdir /install
WORKDIR /install
# copy only the exact files needed for install into the container
COPY ./nucypher/__about__.py /install/nucypher/

View File

@ -0,0 +1,24 @@
#!/usr/bin/env bash
read -p "Ok if we update your pip and setuptools? (type y or Y) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
pip install --upgrade pip
pip install --upgrade setuptools
fi
rm requirements.txt
rm dev-requirements.txt
touch requirements.txt
touch dev-requirements.txt
set -e
echo "rebuilding pipenv.lock... this will take awhile."
pipenv lock --clear
pipenv lock -r > requirements.txt
pipenv lock -r --dev > dev-requirements.txt