-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fall detect pypi publishing (#32)
* feat: add temp file Signed-off-by: bhavikapanara <[email protected]> * feat: fall detect Signed-off-by: bhavikapanara <[email protected]> * add setup files Signed-off-by: bhavikapanara <[email protected]>
- Loading branch information
1 parent
3e7658c
commit 87f1751
Showing
7 changed files
with
84 additions
and
17 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
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 |
---|---|---|
|
@@ -8,7 +8,6 @@ __pycache__/ | |
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
|
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,23 @@ | ||
#!/bin/bash | ||
|
||
# verbose mode | ||
set -x | ||
|
||
RELEASE_VERSION=$1 | ||
a=( ${RELEASE_VERSION//./ } ) | ||
MAJOR=${a[0]} | ||
MINOR=${a[1]} | ||
PATCH=${a[2]} | ||
echo "RELEASE_VERSION=$RELEASE_VERSION" | ||
echo "MAJOR=$MAJOR" | ||
echo "MINOR=$MAJOR.$MINOR" | ||
echo "PATCH=$PATCH" | ||
|
||
# update version info in the ambianic python package setup.cfg | ||
cp README.md src/ | ||
cd src | ||
python3 setup.py setopt --command metadata --option version --set-value $RELEASE_VERSION | ||
|
||
# verify if version is updated in setup.cfg | ||
echo "verify if version is updated in setup.cfg" | ||
cat setup.cfg |
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,46 @@ | ||
#!/bin/bash | ||
# exit bash script on error | ||
# set -e | ||
|
||
# verbose mode | ||
set -x | ||
|
||
pwd | ||
|
||
node --version | ||
npm --version | ||
|
||
# install nvm | ||
sudo apt-get update | ||
sudo apt-get install build-essential checkinstall libssl-dev | ||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash | ||
export NVM_DIR="/home/travis/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | ||
|
||
command -v nvm | ||
nvm ls | ||
|
||
# nvm install node --reinstall-packages-from=$(nvm current) | ||
nvm install lts/* --reinstall-packages-from=node | ||
nvm ls | ||
nvm uninstall v8 | ||
nvm ls | ||
|
||
# npm cache clean -f | ||
# npm install n | ||
# n stable | ||
node --version | ||
|
||
npm install npm@latest | ||
# npm install -U node | ||
# npm install lts/* | ||
npm install --save-dev @semantic-release/commit-analyzer | ||
npm install --save-dev @semantic-release/git | ||
npm install --save-dev semantic-release | ||
npm install --save-dev semantic-release-docker | ||
npm install --save-dev @semantic-release/release-notes-generator | ||
npm install --save-dev @semantic-release/github | ||
npm install --save-dev @semantic-release/changelog | ||
npm install --save-dev @semantic-release/exec | ||
node --version | ||
npx semantic-release |
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