diff --git a/.gitignore b/.gitignore index 1d4e738..616adfb 100644 --- a/.gitignore +++ b/.gitignore @@ -104,6 +104,7 @@ celerybeat.pid # Environments .env .venv +.dccache env/ venv/ ENV/ diff --git a/generate-reqs-no-index.sh b/generate-reqs-no-index.sh index e099037..5da8fe8 100755 --- a/generate-reqs-no-index.sh +++ b/generate-reqs-no-index.sh @@ -1,4 +1,7 @@ #!/bin/bash -pipenv lock -r > requirements.txt +if ! (pipenv requirements > requirements.txt); then + echo 'Trying legacy "pipenv lock -r" function.' + pipenv lock -r > requirements.txt +fi sed -i '' -e '/^-i/d' requirements.txt diff --git a/generate-reqs.sh b/generate-reqs.sh index 7610f0f..8aa0983 100755 --- a/generate-reqs.sh +++ b/generate-reqs.sh @@ -1,3 +1,6 @@ #!/bin/bash -pipenv lock -r > requirements.txt +if ! (pipenv requirements > requirements.txt); then + echo 'Trying legacy "pipenv lock -r" function.' + pipenv lock -r > requirements.txt +fi