Skip to content

Commit d2cb8b8

Browse files
committed
Two naive scripts for updating the copies in CPython and mypy.
1 parent f9b0200 commit d2cb8b8

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

update-mypy.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh -xe
2+
3+
case $# in
4+
0) echo "Please supply a commit message as argument(s)"; exit 2;;
5+
esac
6+
7+
HERE=$PWD
8+
9+
cd ~/src/mypy
10+
git co master
11+
git pull
12+
cp $HERE/src/typing.py lib-typing/3.2/typing.py
13+
cp $HERE/python2/typing.py lib-typing/2.7/typing.py
14+
git ci lib-typing -m "$@"

update-stdlib.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh -xe
2+
3+
case $# in
4+
0) echo "Please supply a commit message as argument(s)"; exit 2;;
5+
esac
6+
7+
HERE=$PWD
8+
9+
cd ~/src/cpython35
10+
hg pull -u
11+
cp $HERE/src/typing.py Lib/typing.py
12+
cp $HERE/src/test_typing.py Lib/test/test_typing.py
13+
hg ci -m "$@"
14+
15+
cd ~/src/cpython36
16+
hg pull -u ../cpython35
17+
hg merge 3.5
18+
hg ci -m "$@ (3.5->3.6)"
19+
20+
cd ~/src/cpython37
21+
hg pull -u ../cpython36
22+
hg merge 3.6
23+
hg ci -m "$@ (3.6->3.7)"

0 commit comments

Comments
 (0)