Skip to content

Commit

Permalink
Merge pull request #1 from casey-williams-rh/scripts-update
Browse files Browse the repository at this point in the history
Updating scripts to handle new PIPENV commands
  • Loading branch information
casey-williams-rh authored Oct 28, 2022
2 parents 9f64f6c + 51efad1 commit 70469aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ celerybeat.pid
# Environments
.env
.venv
.dccache
env/
venv/
ENV/
Expand Down
5 changes: 4 additions & 1 deletion generate-reqs-no-index.sh
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion generate-reqs.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 70469aa

Please sign in to comment.