Skip to content

Commit

Permalink
Bash Script for project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil25803 committed May 18, 2024
1 parent 18e7821 commit 07e7da9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,4 @@ dmypy.json

#PyCharm
.idea/
site/
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.PHONY: project-setup
project-setup:
- ./project_setup.sh
24 changes: 24 additions & 0 deletions project_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

set -e

pip install --upgrade setuptools wheel


pip_version=$(pip --version | awk '{print $2}')
required_version="24.0"

version_greater_equal() {
printf '%s\n%s' "$1" "$2" | sort -C -V
}

if ! version_greater_equal "$pip_version" "$required_version"; then
echo "Upgrading pip from version $pip_version to $required_version"
pip install --upgrade pip
else
echo "pip is already at version $pip_version, no need to upgrade."
fi

pip install -r requirements.txt

pip install .
Binary file modified requirements.txt
Binary file not shown.

0 comments on commit 07e7da9

Please sign in to comment.