-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document how to release a new version
- Loading branch information
Showing
4 changed files
with
61 additions
and
0 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 |
---|---|---|
|
@@ -10,3 +10,6 @@ build/ | |
.cache | ||
.doit.db | ||
/env | ||
/node_modules | ||
/packages | ||
/package-lock.json |
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,45 @@ | ||
```bash | ||
version=1.0.0 | ||
git checkout -b release-$version | ||
nix-shell | ||
|
||
# bump the version | ||
vi pyproject.toml | ||
|
||
# configure poetry | ||
poetry config repositories.test https://test.pypi.org/legacy/ | ||
poetry config repositories.local http://127.0.0.1:8080/ | ||
|
||
# in a different shell; if testing the package locally | ||
mkdir -p packages | ||
pypi-server -p 8080 -i 127.0.0.1 -P . -a . --overwrite ./packages | ||
|
||
# publish to local / test pypi | ||
poetry build -v | ||
poetry publish -r local # user/pass can be anything | ||
# or | ||
poetry publish -r test | ||
|
||
# make a virtualenv and install prereqs | ||
rm -rf env | ||
python -m venv env | ||
. env/bin/activate | ||
npm install elm | ||
|
||
# final check | ||
pip install -i http://localhost:8080/ --extra-index-url https://pypi.org/simple elm-doc | ||
# or | ||
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple elm-doc | ||
rm -rf workspace/0.19.1/build/docs | ||
elm-doc workspace/0.19.1 -o workspace/0.19.1/build/docs --mount-at /docs --elm-path ./node_modules/.bin/elm | ||
spark workspace/0.19.1/build | ||
# open http://localhost:8080/docs and click around | ||
git push # make sure CI is green | ||
|
||
# publish to the real pypi | ||
poetry build -v | ||
poetry publish | ||
git tag $version | ||
|
||
# merge the branch to master and push the tag | ||
``` |
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