Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.11 #11407

Merged
merged 32 commits into from
Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
58063f0
Add Python 3.11 to CI
altendky May 3, 2022
9341035
3.11 in the install scripts
altendky May 3, 2022
e86a2a2
${{ format('{0}.0-alpha - {0}.X', matrix.python) }}
altendky May 12, 2022
2469c2b
Merge branch 'main' into python_3.11
altendky May 12, 2022
294b394
Merge branch 'main' into python_3.11
altendky Jun 9, 2022
b036dec
Merge branch 'main' into python_3.11
altendky Sep 21, 2022
553990a
Merge branch 'main' into python_3.11
altendky Oct 4, 2022
314b1a7
Merge branch 'main' into python_3.11
altendky Oct 6, 2022
6e60505
bump chiavdf and chiabip158 for releases with 3.11 wheels
altendky Oct 6, 2022
8d8e4c2
also bump blspy and clvm-tools-rs
altendky Oct 9, 2022
0297b1f
Merge branch 'main' into python_3.11
altendky Oct 9, 2022
962c00f
drop the extra .X for the python setup version
altendky Oct 9, 2022
d55908f
chia_rs==0.1.13
altendky Oct 19, 2022
2e0d3c2
Merge branch 'main' into python_3.11
altendky Oct 19, 2022
65f3f18
Update install.sh
altendky Oct 19, 2022
1d9fd17
Merge branch 'main' into python_3.11
altendky Oct 19, 2022
e3df9d1
pyinstaller==5.5
altendky Oct 19, 2022
0829b78
less mutable defaults
altendky Oct 19, 2022
0edcca3
memory_profiler
altendky Oct 20, 2022
95873c4
assert sqlite3.threadsafety >= 1
altendky Oct 20, 2022
fb77a5c
Merge branch 'main' into python_3.11
altendky Nov 6, 2022
855b5d1
create tasks for stopping services
altendky Nov 6, 2022
49b6947
Merge branch 'main' into python_3.11
altendky Nov 11, 2022
e0d9127
psutil==5.9.4
altendky Nov 11, 2022
0131566
drop memory_profiler transitive dep since it now supports 3.11
altendky Nov 15, 2022
9072128
Merge branch 'main' into python_3.11
altendky Nov 15, 2022
262c6ab
drop redundant pre-release python getting incantation
altendky Nov 15, 2022
5712cb0
Merge branch 'main' into python_3.11
altendky Nov 19, 2022
d3d1cd7
watchdog==2.2.0
altendky Dec 21, 2022
a6dec5e
Merge branch 'main' into python_3.11
altendky Dec 24, 2022
05c5e93
black for py311
altendky Dec 24, 2022
7e92ea1
Merge branch 'main' into python_3.11
altendky Jan 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check_wheel_availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
matrix: arm
- name: Intel
matrix: intel
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
exclude:
- os:
matrix: macos
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test-single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ jobs:
matrix: '3.10'
exclude_from:
limited: True
- name: '3.11'
file_name: '3.11'
action: '3.11'
apt: '3.11'
install_sh: '3.11'
matrix: '3.11'
exclude_from:
limited: True
exclude:
- os:
matrix: macos
Expand Down
2 changes: 1 addition & 1 deletion Install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if ($null -eq (Get-Command py -ErrorAction SilentlyContinue))
Exit 1
}

$supportedPythonVersions = "3.10", "3.9", "3.8", "3.7"
$supportedPythonVersions = "3.11", "3.10", "3.9", "3.8", "3.7"
if ("$env:INSTALL_PYTHON_VERSION" -ne "")
{
$pythonVersion = $env:INSTALL_PYTHON_VERSION
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ OPENSSL_VERSION_INT=
find_python() {
set +e
unset BEST_VERSION
for V in 310 3.10 39 3.9 38 3.8 37 3.7 3; do
for V in 311 3.11 310 3.10 39 3.9 38 3.8 37 3.7 3; do
if command -v python$V >/dev/null; then
if [ "$BEST_VERSION" = "" ]; then
BEST_VERSION=$V
Expand Down Expand Up @@ -284,8 +284,8 @@ if ! command -v "$INSTALL_PYTHON_PATH" >/dev/null; then
exit 1
fi

if [ "$PYTHON_MAJOR_VER" -ne "3" ] || [ "$PYTHON_MINOR_VER" -lt "7" ] || [ "$PYTHON_MINOR_VER" -ge "11" ]; then
echo "Chia requires Python version >= 3.7 and < 3.11.0" >&2
if [ "$PYTHON_MAJOR_VER" -ne "3" ] || [ "$PYTHON_MINOR_VER" -lt "7" ] || [ "$PYTHON_MINOR_VER" -ge "12" ]; then
echo "Chia requires Python version >= 3.7 and < 3.12.0" >&2
echo "Current Python version = $INSTALL_PYTHON_VERSION" >&2
# If Arch, direct to Arch Wiki
if type pacman >/dev/null 2>&1 && [ -f "/etc/arch-release" ]; then
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local_scheme = "no-local-version"

[tool.black]
line-length = 120
target-version = ['py37', 'py38', 'py39', 'py310']
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
include = '''
^/(
[^/]*.py
Expand Down