Skip to content

Commit

Permalink
Added build scripts
Browse files Browse the repository at this point in the history
- build.sh will package on Linux systems
- win-build.cmd will package on Windows systems with 7zip installed and in the path
- install.sh will unpack and install python packages on Linux systems
  • Loading branch information
GhostofGoes committed Feb 25, 2017
1 parent 5f73eb6 commit d6b6ad3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ logins.json
vsphere.yaml
server*.json

# Packaging
pip-packages/
*.zip


# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
mkdir pip-packages
pip3 download -r requirements.txt -d ./pip-packages
find . -path '*/.*' -prune -o -type f -print | zip ~/package.zip -@
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
pip3 install -r requirements.txt --no-index -f ./pip-packages
find . -name *.py -exec chmod +x {} +
3 changes: 3 additions & 0 deletions win-build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mkdir pip-packages
pip3 download -r requirements.txt -d ./pip-packages
7z a -tzip package.zip -r ./ -xr!*.git* -xr!*.idea -xr!*pycache* -xr!*.zip -xr!diagrams -bb1

0 comments on commit d6b6ad3

Please sign in to comment.