Skip to content

Commit 2c84d7e

Browse files
hauntsaninjaIvan Levkivskyi
authored and
Ivan Levkivskyi
committed
misc: update wheel building and release scripts (#9570)
* new upload pypi script CI now builds the pure Python wheel and sdist. Use the Github API to pull down all assets associated with the CI build. Because this script now does very little, it's a lot simpler. Since it's no longer building things, I assume we can be less picky about what Python we use. The version check now runs against the sdist, which is nice. * update trigger wheel build for new wheel building * remove more scripts download-mypyc-wheels is now subsumed by upload-pypi, which uses the Github API instead of hardcoding filenames. test_installed_version is part of mypyc_mypy-wheels and some of what it does is taken care of by cibuildwheel * fix repo :-) Co-authored-by: hauntsaninja <>
1 parent a7d4c67 commit 2c84d7e

4 files changed

+118
-270
lines changed

misc/download-mypyc-wheels.py

-56
This file was deleted.

misc/test_installed_version.sh

-42
This file was deleted.

misc/trigger_wheel_build.sh

+5-7
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,18 @@
55

66
# $WHEELS_PUSH_TOKEN is stored in travis and is an API token for the
77
# mypy-build-bot account.
8-
git clone --recurse-submodules https://${WHEELS_PUSH_TOKEN}@github.com/mypyc/mypy_mypyc-wheels.git build
98

109
git config --global user.email "nobody"
1110
git config --global user.name "mypy wheels autopush"
1211

1312
COMMIT=$(git rev-parse HEAD)
14-
cd build/mypy
15-
git fetch
16-
git checkout $COMMIT
17-
git submodule update
18-
pip install -r test-requirements.txt
13+
pip install -r mypy-requirements.txt
1914
V=$(python3 -m mypy --version)
2015
V=$(echo "$V" | cut -d" " -f2)
21-
cd ..
16+
17+
git clone https://${WHEELS_PUSH_TOKEN}@github.com/mypyc/mypy_mypyc-wheels.git build
18+
cd build
19+
echo $COMMIT > mypy_commit
2220
git commit -am "Build wheels for mypy $V"
2321
git tag v$V
2422
# Push a tag, but no need to push the change to master

0 commit comments

Comments
 (0)