This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compile all requirements.in files in current directory | |
# Usage: pipcompile [--quiet|-q] [--verbose|-v] | |
pipcompile() { | |
local quiet=false | |
# Parse arguments | |
while [[ "$#" -gt 0 ]]; do | |
case $1 in | |
--quiet|-q) quiet=true ;; | |
--verbose|-v) quiet=false ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A function to update the python version in a pyenv virtualenv | |
# Usage: pyenv_update <version> | |
# Example: pyenv_update 3.9.7 | |
# Note: This will remove the virtualenv and recreate it. | |
pyenv_update() { | |
PYENV_FILE=.python-version | |
PYENV_FREEZE_FILE=.requirements-lock.txt | |
# Check if version argument is provided | |
if [ -z "$1" ]; then |