Skip to content
Myr

publish

This file

Path

scripts/publish

41 lines · 1.1 KiB

Last changed by

Remove wheels package from test-requirements.txt (#448)Josep Cugatbefore adoptiona1179e5

History of this file

Take it

The walk stopped after 200 commits: lines older than a960a2a point at it.

Release semaphore if connection is dropped (#230)Ordanis Sanchezbefore adoptiona960a2a

lines 1–17why, one step back
1#!/bin/sh -e
23export PACKAGE="httpx"4export VERSION=`cat ${PACKAGE}/__version__.py | grep __version__ | sed "s/__version__ = //" | sed "s/'//g"`5export 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 116fi17

Remove wheels package from test-requirements.txt (#448)Josep Cugatbefore adoptiona1179e5

lines 18–23why, one step back
18if ! ${PREFIX}pip show wheel &>/dev/null ; then
19 echo "Unable to find the 'wheel' command."20 echo "Install from PyPI, using '${PREFIX}pip install wheel'."21 exit 122fi23

Document the release process (#363)Florimond Mancabefore adoption1275246

lines 24–29why, one step back
24if ! command -v "${PREFIX}mkdocs" &>/dev/null ; then
25 echo "Unable to find the 'mkdocs' command."26 echo "Install from PyPI, using '${PREFIX}pip install mkdocs'."27 exit 128fi29

Release semaphore if connection is dropped (#230)Ordanis Sanchezbefore adoptiona960a2a

lines 30–32why, one step back
30find ${PACKAGE} -type f -name "*.py[co]" -delete
31find ${PACKAGE} -type d -name __pycache__ -delete32

Build and upload universal wheels to PyPI (#439)Josep Cugatbefore adoption9e1cc26

line 33why, one step back
33${PREFIX}python setup.py sdist bdist_wheel

Release semaphore if connection is dropped (#230)Ordanis Sanchezbefore adoptiona960a2a

line 34why, one step back
34${PREFIX}twine upload dist/*

Document the release process (#363)Florimond Mancabefore adoption1275246

line 35why, one step back
35${PREFIX}mkdocs gh-deploy

Release semaphore if connection is dropped (#230)Ordanis Sanchezbefore adoptiona960a2a

lines 36–41why, one step back
36
37echo "You probably want to also tag the version now:"38echo "git tag -a ${VERSION} -m 'version ${VERSION}'"39echo "git push --tags"4041scripts/clean