Skip to content

Commit

Permalink
[Release][0.3.4] Updating pip package and creating some scripts to re…
Browse files Browse the repository at this point in the history
…lease (#3)

* Updating pip package to 0.3.4

* Adding bittensor reference for scripts/utils.sh
  • Loading branch information
eduardogr authored Jan 22, 2023
1 parent 235e2ab commit 96a33bb
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
SHELL:=/bin/bash

install:
pip3 install .
Expand All @@ -18,5 +19,4 @@ clean:
rm -rf build .pytest_cache dist google_drive.egg-info

release:
python3 setup.py sdist bdist_wheel && \
twine upload dist/*
./scripts/release.sh
24 changes: 24 additions & 0 deletions scripts/release.sh
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/*
22 changes: 22 additions & 0 deletions scripts/utils.sh
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"
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 96a33bb

Please sign in to comment.