Skip to content

Commit

Permalink
misc: update wheel building and release scripts (#9570)
Browse files Browse the repository at this point in the history
* 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 <>
  • Loading branch information
hauntsaninja committed Jan 7, 2021
1 parent 6e8c0cd commit 1f5115b
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 270 deletions.
56 changes: 0 additions & 56 deletions misc/download-mypyc-wheels.py

This file was deleted.

42 changes: 0 additions & 42 deletions misc/test_installed_version.sh

This file was deleted.

12 changes: 5 additions & 7 deletions misc/trigger_wheel_build.sh
Expand Up @@ -5,20 +5,18 @@

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

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

COMMIT=$(git rev-parse HEAD)
cd build/mypy
git fetch
git checkout $COMMIT
git submodule update
pip install -r test-requirements.txt
pip install -r mypy-requirements.txt
V=$(python3 -m mypy --version)
V=$(echo "$V" | cut -d" " -f2)
cd ..

git clone https://${WHEELS_PUSH_TOKEN}@github.com/mypyc/mypy_mypyc-wheels.git build
cd build
echo $COMMIT > mypy_commit
git commit -am "Build wheels for mypy $V"
git tag v$V
# Push a tag, but no need to push the change to master
Expand Down

0 comments on commit 1f5115b

Please sign in to comment.