Skip to content

Commit

Permalink
Merge pull request #477 from radarhere/python
Browse files Browse the repository at this point in the history
Added Python 3.11 beta
  • Loading branch information
matthew-brett committed Jun 25, 2022
2 parents ba77cbd + e939d3e commit 10d9a4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions osx_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ MACPYTHON_URL=https://www.python.org/ftp/python
MACPYTHON_PY_PREFIX=/Library/Frameworks/Python.framework/Versions
WORKING_SDIR=working

# As of 17 May 2022 - latest Python of each version with binary download
# As of 19 Jun 2022 - latest Python of each version with binary download
# available.
# See: https://www.python.org/downloads/macos/
LATEST_2p7=2.7.18
LATEST_3p5=3.5.4
LATEST_3p6=3.6.8
LATEST_3p7=3.7.9
LATEST_3p8=3.8.10
LATEST_3p9=3.9.12
LATEST_3p10=3.10.4
LATEST_3p9=3.9.13
LATEST_3p10=3.10.5
LATEST_3p11=3.11.0b3


function check_python {
Expand Down Expand Up @@ -78,6 +79,8 @@ function fill_pyver {
echo $LATEST_2p7
elif [ $ver == 3 ] || [ $ver == "3.10" ]; then
echo $LATEST_3p10
elif [ $ver == "3.11" ]; then
echo $LATEST_3p11
elif [ $ver == "3.9" ]; then
echo $LATEST_3p9
elif [ $ver == "3.8" ]; then
Expand Down
4 changes: 3 additions & 1 deletion tests/test_fill_pyver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
[ "$(fill_pyver 2.7)" == $LATEST_2p7 ] || ingest
[ "$(fill_pyver 2.7.8)" == "2.7.8" ] || ingest
[ "$(fill_pyver 3)" == $LATEST_3p10 ] || ingest
[ "$(fill_pyver 3.11)" == $LATEST_3p11 ] || ingest
[ "$(fill_pyver 3.11.0)" == "3.11.0" ] || ingest
[ "$(fill_pyver 3.10)" == $LATEST_3p10 ] || ingest
[ "$(fill_pyver 3.10.0)" == "3.10.0rc1" ] || ingest
[ "$(fill_pyver 3.10.0)" == "3.10.0" ] || ingest
[ "$(fill_pyver 3.9)" == $LATEST_3p9 ] || ingest
[ "$(fill_pyver 3.9.0)" == "3.9.0" ] || ingest
[ "$(fill_pyver 3.8)" == $LATEST_3p8 ] || ingest
Expand Down

0 comments on commit 10d9a4c

Please sign in to comment.