-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Release][0.3.4] Updating pip package and creating some scripts to re…
…lease (#3) * Updating pip package to 0.3.4 * Adding bittensor reference for scripts/utils.sh
- Loading branch information
Showing
4 changed files
with
49 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Code based in: https://github.com/opentensor/bittensor/blob/master/scripts/release/release_pip.sh | ||
# | ||
|
||
#### | ||
# Utils | ||
#### | ||
source ${BASH_SOURCE%/*}/utils.sh | ||
### | ||
|
||
# 1. Cleaning up | ||
echo_info "Removing dirs: dist/ and build/" | ||
rm -rf dist/ | ||
rm -rf build/ | ||
|
||
# 2. Creating python wheel | ||
echo_info "Generating python wheel" | ||
python3 setup.py sdist bdist_wheel | ||
|
||
# 3. Upload wheel to pypi | ||
echo_info "Uploading python wheel" | ||
python3 -m twine upload dist/* |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Code based in: https://github.com/opentensor/bittensor/blob/master/scripts/release/utils.sh | ||
# | ||
|
||
RED='\033[0;31m' | ||
GREEN='\033[0;32m' | ||
YELLOW='\033[0;33m' | ||
NC='\033[0m' # No Color | ||
|
||
function echo_error { | ||
echo -e "${RED}[ERROR]${NC} $1" | ||
} | ||
|
||
function echo_warning { | ||
echo -e "${YELLOW}[WARNING]${NC} $1" | ||
} | ||
|
||
function echo_info { | ||
echo -e "${GREEN}[INFO]${NC} $1" | ||
} |
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ def read_requirements(path): | |
|
||
setup( | ||
name="google-drive", | ||
version="0.3.3", | ||
version="0.3.4", | ||
author="Eduardo Garcia", | ||
author_email="[email protected]", | ||
maintainer="Eduardo García", | ||
|