Skip to content

Commit 9fa5575

Browse files
committed
Administrivia
1 parent e1a519f commit 9fa5575

5 files changed

Lines changed: 131 additions & 22 deletions

File tree

admin-tools/make-dist-3.0-3.2.sh

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,25 @@ fi
2727
echo $__version__
2828

2929
for pyversion in $PYVERSIONS; do
30-
echo --- $pyversion ---
31-
if [[ ${pyversion:0:4} == "pypy" ]] ; then
32-
echo "$pyversion - PyPy does not get special packaging"
33-
continue
34-
fi
30+
case ${pyversion:0:4} in
31+
"graa" )
32+
echo "$pyversion - Graal does not get special packaging"
33+
continue
34+
;;
35+
"jyth" )
36+
echo "$pyversion - Jython does not get special packaging"
37+
continue
38+
;;
39+
"pypy" )
40+
echo "$pyversion - PyPy does not get special packaging"
41+
continue
42+
;;
43+
"pyst" )
44+
echo "$pyversion - Pyston does not get special packaging"
45+
continue
46+
;;
47+
esac
48+
echo "*** Packaging ${PACKAGE_NAME} for version ${__version__} on Python ${pyversion} ***"
3549
if ! pyenv local $pyversion ; then
3650
exit $?
3751
fi

admin-tools/make-dist-3.11.sh

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,25 @@ fi
2929
echo $__version__
3030

3131
for pyversion in $PYVERSIONS; do
32-
echo --- $pyversion ---
33-
if [[ ${pyversion:0:4} == "pypy" ]] ; then
34-
echo "$pyversion - PyPy does not get special packaging"
35-
continue
36-
fi
32+
case ${pyversion:0:4} in
33+
"graa" )
34+
echo "$pyversion - Graal does not get special packaging"
35+
continue
36+
;;
37+
"jyth" )
38+
echo "$pyversion - Jython does not get special packaging"
39+
continue
40+
;;
41+
"pypy" )
42+
echo "$pyversion - PyPy does not get special packaging"
43+
continue
44+
;;
45+
"pyst" )
46+
echo "$pyversion - Pyston does not get special packaging"
47+
continue
48+
;;
49+
esac
50+
echo "*** Packaging ${PACKAGE_NAME} for version ${__version__} on Python ${pyversion} ***"
3751
if ! pyenv local $pyversion ; then
3852
exit $?
3953
fi

admin-tools/make-dist-3.3-3.5.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,25 @@ fi
2929
echo $__version__
3030

3131
for pyversion in $PYVERSIONS; do
32-
echo --- $pyversion ---
32+
case ${pyversion:0:4} in
33+
"graa" )
34+
echo "$pyversion - Graal does not get special packaging"
35+
continue
36+
;;
37+
"jyth" )
38+
echo "$pyversion - Jython does not get special packaging"
39+
continue
40+
;;
41+
"pypy" )
42+
echo "$pyversion - PyPy does not get special packaging"
43+
continue
44+
;;
45+
"pyst" )
46+
echo "$pyversion - Pyston does not get special packaging"
47+
continue
48+
;;
49+
esac
50+
echo "*** Packaging ${PACKAGE_NAME} for version ${__version__} on Python ${pyversion} ***"
3351
if [[ ${pyversion:0:4} == "pypy" ]] ; then
3452
echo "$pyversion - PyPy does not get special packaging"
3553
continue

admin-tools/make-dist-3.6-3.10.sh

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,24 @@ fi
3131
echo $__version__
3232

3333
for pyversion in $PYVERSIONS; do
34-
echo --- $pyversion ---
35-
if [[ ${pyversion:0:4} == "pypy" ]] ; then
36-
echo "$pyversion - PyPy does not get special packaging"
37-
continue
38-
fi
34+
case ${pyversion:0:4} in
35+
"graa" )
36+
echo "$pyversion - Graal does not get special packaging"
37+
continue
38+
;;
39+
"jyth" )
40+
echo "$pyversion - Jython does not get special packaging"
41+
continue
42+
;;
43+
"pypy" )
44+
echo "$pyversion - PyPy does not get special packaging"
45+
continue
46+
;;
47+
"pyst" )
48+
echo "$pyversion - Pyston does not get special packaging"
49+
continue
50+
;;
51+
esac
3952
if ! pyenv local $pyversion ; then
4053
exit $?
4154
fi

admin-tools/make-dist-newest.sh

Lines changed: 56 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/bash
2-
PACKAGE=trepan3k
2+
PACKAGE_MODULE="trepan"
3+
4+
# The name that PyPi sees this as.
5+
# It is set in setup.py's name.
6+
PACKAGE_NAME="trepan3k"
7+
8+
# Both the name an module name agree
9+
PACKAGE=$PACKAGE_NAME
310

411
# FIXME put some of the below in a common routine
512
function finish {
@@ -20,11 +27,54 @@ if ! source ./setup-master.sh ; then
2027
fi
2128

2229
cd ..
23-
source trepan/version.py
24-
echo $__version__
25-
pyenv local 3.13
30+
source $PACKAGE_MODULE/version.py
31+
if [[ ! $__version__ ]] ; then
32+
echo "Something is wrong: __version__ should have been set."
33+
exit 1
34+
fi
35+
36+
for pyversion in $PYVERSIONS; do
37+
case ${pyversion:0:4} in
38+
"graa" )
39+
echo "$pyversion - Graal does not get special packaging"
40+
continue
41+
;;
42+
"jyth" )
43+
echo "$pyversion - Jython does not get special packaging"
44+
continue
45+
;;
46+
"pypy" )
47+
echo "$pyversion - PyPy does not get special packaging"
48+
continue
49+
;;
50+
"pyst" )
51+
echo "$pyversion - Pyston does not get special packaging"
52+
continue
53+
;;
54+
esac
55+
echo "*** Packaging ${PACKAGE_NAME} for version ${__version__} on Python ${pyversion} ***"
56+
if ! pyenv local $pyversion ; then
57+
exit $?
58+
fi
59+
# pip bdist_egg create too-general wheels. So
60+
# we narrow that by moving the generated wheel.
61+
62+
# Pick out first two number of version, e.g. 3.5.1 -> 35
63+
first_two=$(echo $pyversion | cut -d'.' -f 1-2 | sed -e 's/\.//')
64+
rm -fr build
65+
pip wheel --wheel-dir=dist .
66+
mv -v dist/${PACKAGE_NAME}-$__version__-{py2.py3,py$first_two}-none-any.whl
67+
done
2668

27-
rm -fr build
28-
pip wheel --wheel-dir=dist .
2969
python -m build --sdist
70+
tarball=dist/${PACKAGE_NAME}-${__version__}.tar.gz
71+
if [[ -f $tarball ]]; then
72+
twine check $tarball
73+
fi
74+
75+
if [[ ! -d dist/uploaded/${__version__} ]] ; then
76+
mkdir -v dist/uploaded/${__version__}
77+
fi
78+
79+
twine check dist/${PACKAGE}-${__version__}-py3*.whl
3080
finish

0 commit comments

Comments
 (0)