8484 echo "now: $(date -u +"%Y-%m-%dT%H:%M:%S.%3N")"
8585
8686 python -m pip install --upgrade pip
87- pip install build twine setuptools setuptools-scm
87+ pip install build setuptools setuptools-scm
8888
89- - name : Build package
89+ - name : Build package (eventually, this will be 'WIPACrepo/wipac-dev-py-build-action')
9090 if : steps.version.outputs.version != ''
9191 run : |
9292 set -euo pipefail
@@ -108,12 +108,12 @@ jobs:
108108 exit 1
109109 fi
110110
111- echo "setuptools-scm is configured properly."
111+ # build (tell SCM to use our version instead of detecting it)
112+ SETUPTOOLS_SCM_PRETEND_VERSION=${{ steps.version.outputs.version }} \
113+ SETUPTOOLS_SCM_DEBUG=1 \
114+ python -m build
112115
113- # tell SCM to use our version instead of detecting it
114- SETUPTOOLS_SCM_PRETEND_VERSION=${{ steps.version.outputs.version }} python -m build
115-
116- - name : Create GitHub Release via API
116+ - name : Create GitHub Release via API (may be replaced by a GHA package)
117117 if : steps.version.outputs.version != ''
118118 env :
119119 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -122,8 +122,6 @@ jobs:
122122 set -euo pipefail
123123 echo "now: $(date -u +"%Y-%m-%dT%H:%M:%S.%3N")"
124124
125- exit 1 # TODO: REMOVE
126-
127125 API_URL="https://api.github.com/repos/${{ github.repository }}/releases"
128126 TAG="v${VERSION}"
129127 PAYLOAD=$(jq -n \
@@ -136,12 +134,13 @@ jobs:
136134 -H "Content-Type: application/json" \
137135 -d "$PAYLOAD" "$API_URL"
138136
139- - name : Upload to PyPI
137+ - name : Upload to PyPI (so simple, no GHA package needed)
140138 if : steps.version.outputs.version != ''
141139 env :
142140 TWINE_USERNAME : __token__
143141 TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
144142 run : |
145143 set -euo pipefail
146144 echo "now: $(date -u +"%Y-%m-%dT%H:%M:%S.%3N")"
145+ pip install twine
147146 twine upload dist/*
0 commit comments