File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- echo " publish gtoolkit_bridge PyPI"
3+ echo " running publish gtoolkit_bridge PyPI script "
44
55# requirements:
66# - python3 (apt install python)
77# - curl (apt install curl)
88# - jq (apt install jq)
99# - flit (pip install flit)
1010
11- source_version=` cd PyPI/src && python3 -c ' from gtoolkit_bridge import __version__; print(__version__)' `
11+ # this script must be run inside the PyPI directory
12+
13+ source_version=` cd src && python3 -c ' from gtoolkit_bridge import __version__; print(__version__)' `
1214published_version=` curl -s https://pypi.org/pypi/gtoolkit_bridge/json | jq -r .info.version`
1315
1416if [ $source_version = $published_version ]
1517then
1618 echo " no action" $source_version " =" $published_version
1719else
18- echo " publish " $published_version " >" $source_version
20+ echo " publishing " $published_version " >" $source_version
1921 # FLIT_PASSWORD must already be set to token pypi-...
20- # FLIT_USERNAME=__token__ python3 -m flit publish
22+ FLIT_USERNAME=__token__ python3 -m flit publish
23+ echo " publish done"
2124fi
You can’t perform that action at this time.
0 commit comments