Skip to content

Commit

Permalink
Working on Python 3.13: bcrypt lru-dict numpy pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Oct 22, 2024
1 parent b65ba40 commit c8d8f65
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 18 deletions.
5 changes: 4 additions & 1 deletion server/pypi/compiler-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def extend_if(valid, args):
i += 1

if args_removed:
print("Chaquopy: removed arguments: " + shlex.join(args_removed))
print(
"Chaquopy: removed arguments: " + shlex.join(args_removed),
file=sys.stderr) # Some build systems hide the compiler's stdout.

os.execv(args_out[0], args_out)


Expand Down
2 changes: 1 addition & 1 deletion server/pypi/packages/astropy/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set numpy_version = "1.19.5" %}
{% elif PY_VER in ["3.9", "3.10", "3.11"] %}
{% set numpy_version = "1.23.3" %}
{% elif PY_VER == "3.12" %}
{% elif PY_VER in ["3.12", "3.13"] %}
{% set numpy_version = "1.26.2" %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion server/pypi/packages/aubio/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set numpy_version = "1.19.5" %}
{% elif PY_VER in ["3.9", "3.10", "3.11"] %}
{% set numpy_version = "1.23.3" %}
{% elif PY_VER == "3.12" %}
{% elif PY_VER in ["3.12", "3.13"] %}
{% set numpy_version = "1.26.2" %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion server/pypi/packages/jpegio/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set numpy_version = "1.19.5" %}
{% elif PY_VER in ["3.9", "3.10", "3.11"] %}
{% set numpy_version = "1.23.3" %}
{% elif PY_VER == "3.12" %}
{% elif PY_VER in ["3.12", "3.13"] %}
{% set numpy_version = "1.26.2" %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion server/pypi/packages/matplotlib/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set numpy_version = "1.19.5" %}
{% elif PY_VER in ["3.9", "3.10", "3.11"] %}
{% set numpy_version = "1.23.3" %}
{% elif PY_VER == "3.12" %}
{% elif PY_VER in ["3.12", "3.13"] %}
{% set numpy_version = "1.26.2" %}
{% endif %}

Expand Down
4 changes: 2 additions & 2 deletions server/pypi/packages/pandas/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set numpy_version = "1.19.5" %}
{% elif PY_VER in ["3.9", "3.10", "3.11"] %}
{% set numpy_version = "1.23.3" %}
{% elif PY_VER == "3.12" %}
{% elif PY_VER in ["3.12", "3.13"] %}
{% set numpy_version = "1.26.2" %}
{% endif %}

Expand All @@ -19,7 +19,7 @@ source:
git_rev: v{{ version }}

build:
number: 0
number: 1

requirements:
host:
Expand Down
27 changes: 20 additions & 7 deletions server/pypi/packages/pandas/patches/chaquopy.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,34 @@
import numpy
from pkg_resources import parse_version
from setuptools import (
--- src-original/pyproject.toml 2023-12-06 12:10:08.000000000 +0000
+++ src/pyproject.toml 2023-12-06 12:33:14.841679887 +0000
@@ -2,8 +2,9 @@
--- aaa/pyproject.toml 2024-10-21 14:07:02.000000000 +0000
+++ src/pyproject.toml 2024-10-22 10:54:36.432787684 +0000
@@ -2,19 +2,28 @@
# Minimum requirements for the build system to execute.
# See https://github.com/scipy/scipy/pull/12940 for the AIX issue.
requires = [
- "meson-python==0.13.1",
- "meson==1.2.1",
+ # Chaquopy: disabled meson, since the setuptools build still works for now
+ # Chaquopy: replaced meson with setuptools, which still works for now.
+ # "meson-python==0.13.1",
+ # "meson==1.2.1",
+ "setuptools==69.0.2",
+
"wheel",
"Cython>=0.29.33,<3", # Note: sync with setup.py, environment.yml and asv.conf.json
- "Cython>=0.29.33,<3", # Note: sync with setup.py, environment.yml and asv.conf.json
+
+ # Chaquopy: increased Cython upper limit from 3 to 3.1, for Python 3.13 support.
+ "Cython>=0.29.33,<3.1", # Note: sync with setup.py, environment.yml and asv.conf.json
+
# Note: numpy 1.25 has a backwards compatible C API by default
@@ -14,7 +15,8 @@
# we don't want to force users to compile with 1.25 though
# (Ideally, in the future, though, oldest-supported-numpy can be dropped when our min numpy is 1.25.x)
- "oldest-supported-numpy>=2022.8.16; python_version<'3.12'",
- "numpy>=1.26.0,<2; python_version>='3.12'",
+ # Chaquopy: disabled numpy, since it's already listed in meta.yaml.
+ # "oldest-supported-numpy>=2022.8.16; python_version<'3.12'",
+ # "numpy>=1.26.0,<2; python_version>='3.12'",
+
"versioneer[toml]"
]

Expand All @@ -35,7 +48,7 @@

[project]
name = 'pandas'
@@ -137,7 +139,12 @@
@@ -137,7 +146,12 @@
# resulting files.
[tool.versioneer]
VCS = "git"
Expand Down
2 changes: 1 addition & 1 deletion server/pypi/packages/photutils/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set numpy_version = "1.19.5" %}
{% elif PY_VER in ["3.9", "3.10", "3.11"] %}
{% set numpy_version = "1.23.3" %}
{% elif PY_VER == "3.12" %}
{% elif PY_VER in ["3.12", "3.13"] %}
{% set numpy_version = "1.26.2" %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion server/pypi/packages/pyerfa/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set numpy_version = "1.19.5" %}
{% elif PY_VER in ["3.9", "3.10", "3.11"] %}
{% set numpy_version = "1.23.3" %}
{% elif PY_VER == "3.12" %}
{% elif PY_VER in ["3.12", "3.13"] %}
{% set numpy_version = "1.26.2" %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion server/pypi/packages/scikit-image/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% set numpy_version = "1.17.4" %}
{% elif PY_VER in ["3.9", "3.10", "3.11"] %}
{% set numpy_version = "1.23.3" %}
{% elif PY_VER == "3.12" %}
{% elif PY_VER in ["3.12", "3.13"] %}
{% set numpy_version = "1.26.2" %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion target/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ When building wheels for other packages:
* Try to build all the packages we currently have in the repository for the previous
Python version.
* For each package, in dependency order:
* Check whether there are any existing notes in issues or PRs.
* Check for notes in the meta.yaml file, in issues or in PRs.
* Update to the current stable version, unless this would take a lot of work which
isn't justified by user demand.
* Review patches and build scripts to see if there are any workarounds which are no
Expand Down

0 comments on commit c8d8f65

Please sign in to comment.