Files
china-dictatorship/push-mirrors

32 lines
808 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
2020-03-17 00:00:09 +00:00
# https://github.com/cirosantilli/china-dictatorship#mirrors
2020-03-17 00:00:06 +00:00
set -eux
2020-03-17 00:00:09 +00:00
2020-03-18 00:00:00 +00:00
make
2020-03-17 00:00:09 +00:00
# NPM package.
2020-03-18 00:00:00 +00:00
# Updates package.json version, which other systems read if possible.
2020-03-17 00:00:00 +00:00
./push-mirrors-bump-package-json-version
npm publish
git add package.json
2020-03-17 00:00:09 +00:00
2020-03-18 00:00:03 +00:00
# Python package.
2020-03-18 00:00:05 +00:00
./push-mirrors-bump-setup-py-version
2020-03-18 00:00:17 +00:00
# Initial one time setup.
#python3 -m pip install --user setuptools wheel twine
2020-03-18 00:00:05 +00:00
cp README.adoc README.html china_dictatorship
2020-03-18 00:00:03 +00:00
python setup.py sdist bdist_wheel
2020-03-18 00:00:05 +00:00
# Asks for username and password every time, unless you setup ~/.pypirc.
2020-03-18 00:00:03 +00:00
twine upload dist/*
rm -rf build dist *.egg-info
git add setup.py
2020-03-18 00:00:05 +00:00
# Bump package versions
git commit -m 'bump package version'
git push
2020-03-17 00:00:09 +00:00
2020-03-17 00:00:02 +00:00
git push git@gitlab.com:cirosantilli/china-dictatorship.git
git push git@bitbucket.org:cirosantilli/china-dictatorship.git