Two naive scripts for updating the copies in CPython and mypy.

This commit is contained in:
Guido van Rossum 2016-10-21 18:52:18 -07:00
parent f9b02008db
commit d2cb8b84d7
2 changed files with 37 additions and 0 deletions

14
update-mypy.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh -xe
case $# in
0) echo "Please supply a commit message as argument(s)"; exit 2;;
esac
HERE=$PWD
cd ~/src/mypy
git co master
git pull
cp $HERE/src/typing.py lib-typing/3.2/typing.py
cp $HERE/python2/typing.py lib-typing/2.7/typing.py
git ci lib-typing -m "$@"

23
update-stdlib.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh -xe
case $# in
0) echo "Please supply a commit message as argument(s)"; exit 2;;
esac
HERE=$PWD
cd ~/src/cpython35
hg pull -u
cp $HERE/src/typing.py Lib/typing.py
cp $HERE/src/test_typing.py Lib/test/test_typing.py
hg ci -m "$@"
cd ~/src/cpython36
hg pull -u ../cpython35
hg merge 3.5
hg ci -m "$@ (3.5->3.6)"
cd ~/src/cpython37
hg pull -u ../cpython36
hg merge 3.6
hg ci -m "$@ (3.6->3.7)"