publish
This file
Path
scripts/publish
35 lines · 930 bytes
Last changed by
Document the release process (#363)Florimond Mancabefore adoption1275246
History of this fileTake it
The walk stopped after 200 commits: lines older than bb70377 point at it.
query_params -> paramsTom Christiebefore adoptionbb70377
lines 1–2why, one step back1#!/bin/sh -e2Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 3why, one step back3export PACKAGE="httpx"Minor tweaks in line with requests behavior (#110)Tom Christiebefore adoptionfe1f9ed
line 4why, one step back4export VERSION=`cat ${PACKAGE}/__version__.py | grep __version__ | sed "s/__version__ = //" | sed "s/'//g"`query_params -> paramsTom Christiebefore adoptionbb70377
lines 5–17why, one step back5export PREFIX=""6if [ -d 'venv' ] ; then7 export PREFIX="venv/bin/"8fi910scripts/clean1112if ! command -v "${PREFIX}twine" &>/dev/null ; then13 echo "Unable to find the 'twine' command."14 echo "Install from PyPI, using '${PREFIX}pip install twine'."15 exit 116fi17Document the release process (#363)Florimond Mancabefore adoption1275246
lines 18–23why, one step back18if ! command -v "${PREFIX}mkdocs" &>/dev/null ; then19 echo "Unable to find the 'mkdocs' command."20 echo "Install from PyPI, using '${PREFIX}pip install mkdocs'."21 exit 122fi23query_params -> paramsTom Christiebefore adoptionbb70377
lines 24–28why, one step back24find ${PACKAGE} -type f -name "*.py[co]" -delete25find ${PACKAGE} -type d -name __pycache__ -delete2627${PREFIX}python setup.py sdist28${PREFIX}twine upload dist/*Document the release process (#363)Florimond Mancabefore adoption1275246
line 29why, one step back29${PREFIX}mkdocs gh-deployquery_params -> paramsTom Christiebefore adoptionbb70377
lines 30–35why, one step back3031echo "You probably want to also tag the version now:"32echo "git tag -a ${VERSION} -m 'version ${VERSION}'"33echo "git push --tags"3435scripts/clean