-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from wildfoundry/py3-update
Py3 update
- Loading branch information
Showing
13 changed files
with
317 additions
and
256 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
#!/bin/bash | ||
|
||
read -p "Build dataplicity agent from PyPi? " -n 1 -r | ||
read -p "Build dataplicity agent v$(python dataplicity/_version.py) from PyPi? " -n 1 -r | ||
echo | ||
if [[ ! "$REPLY" =~ ^[Yy]$ ]] | ||
then | ||
exit 1 | ||
fi | ||
|
||
mkdir -p bin | ||
rm bin/dataplicity | ||
virtualenv -qq .build -p Python2.7 | ||
rm -f bin/dataplicity | ||
rm -rf .build | ||
virtualenv -qq .build -p python3 | ||
source .build/bin/activate | ||
pip -q install pex==1.2.13 | ||
pip -q install pex==2.1.1 subprocess32 | ||
echo building ./bin/dataplicity | ||
pex dataplicity==0.4.34 --pre -r requirements.txt -o bin/dataplicity -m dataplicity.app:main | ||
pex dataplicity==$(python dataplicity/_version.py) --pre --python-shebang="#!/usr/bin/env python" --python=$(which python2) --python=$(which python3) -r requirements.txt -o bin/dataplicity -m dataplicity.app:main | ||
deactivate | ||
echo built dataplicity agent v`./bin/dataplicity version` | ||
echo built dataplicity agent v$(./bin/dataplicity version) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
__version__ = "0.4.34" | ||
__version__ = "0.4.35" | ||
|
||
if __name__ == "__main__": | ||
# The build script uses this to extract the current version | ||
print(__version__) |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.