Skip to content

Commit ebb99f6

Browse files
committed
[GR-64995] Update few patches
PullRequest: graalpython/3796
2 parents 7bc82dd + 53cc57c commit ebb99f6

11 files changed

+184
-204
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
new file mode 100644
3+
index 0000000..2a76435
4+
--- /dev/null
5+
+++ b/pyproject.toml
6+
@@ -0,0 +1,3 @@
7+
+[build-system]
8+
+requires = ["setuptools >= 40.6.0", "wheel", "Cython==3.0.11"]
9+
+build-backend = "setuptools.build_meta:__legacy__"
10+
diff --git a/setupinfo.py b/setupinfo.py
11+
index 5feb13b..6ea719a 100644
12+
--- a/setupinfo.py
13+
+++ b/setupinfo.py
14+
@@ -539,7 +539,7 @@ OPTION_WITH_UNICODE_STRINGS = has_option('with-unicode-strings')
15+
OPTION_WITHOUT_ASSERT = has_option('without-assert')
16+
OPTION_WITHOUT_THREADING = has_option('without-threading')
17+
OPTION_WITHOUT_CYTHON = has_option('without-cython')
18+
-OPTION_WITH_CYTHON = has_option('with-cython')
19+
+OPTION_WITH_CYTHON = True # GraalVM change
20+
OPTION_WITH_CYTHON_GDB = has_option('cython-gdb')
21+
OPTION_WITH_REFNANNY = has_option('with-refnanny')
22+
OPTION_WITH_COVERAGE = has_option('with-coverage')
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
index 85c9214..90c6da8 100644
3+
--- a/pyproject.toml
4+
+++ b/pyproject.toml
5+
@@ -1,5 +1,6 @@
6+
[build-system]
7+
requires = ["Cython>=3.0.7", "setuptools", "wheel"]
8+
+build-backend = "setuptools.build_meta:__legacy__"
9+
10+
[tool.cibuildwheel]
11+
build-verbosity = 2
12+
diff --git a/setupinfo.py b/setupinfo.py
13+
index d111128..5ad5a23 100644
14+
--- a/setupinfo.py
15+
+++ b/setupinfo.py
16+
@@ -536,7 +536,7 @@ OPTION_WITH_UNICODE_STRINGS = has_option('with-unicode-strings')
17+
OPTION_WITHOUT_ASSERT = has_option('without-assert')
18+
OPTION_WITHOUT_THREADING = has_option('without-threading')
19+
OPTION_WITHOUT_CYTHON = has_option('without-cython')
20+
-OPTION_WITH_CYTHON = has_option('with-cython')
21+
+OPTION_WITH_CYTHON = True
22+
OPTION_WITH_CYTHON_GDB = has_option('cython-gdb')
23+
OPTION_WITH_REFNANNY = has_option('with-refnanny')
24+
OPTION_WITH_COVERAGE = has_option('with-coverage')
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
index e7f6bb6..230f261 100644
3+
--- a/pyproject.toml
4+
+++ b/pyproject.toml
5+
@@ -1,5 +1,6 @@
6+
[build-system]
7+
requires = ["Cython>=3.0.9", "setuptools", "wheel"]
8+
+build-backend = "setuptools.build_meta:__legacy__"
9+
10+
[tool.cibuildwheel]
11+
build-verbosity = 2
12+
diff --git a/setupinfo.py b/setupinfo.py
13+
index 43e283f..d415905 100644
14+
--- a/setupinfo.py
15+
+++ b/setupinfo.py
16+
@@ -564,7 +564,7 @@ OPTION_WITH_UNICODE_STRINGS = has_option('with-unicode-strings')
17+
OPTION_WITHOUT_ASSERT = has_option('without-assert')
18+
OPTION_WITHOUT_THREADING = has_option('without-threading')
19+
OPTION_WITHOUT_CYTHON = has_option('without-cython')
20+
-OPTION_WITH_CYTHON = has_option('with-cython')
21+
+OPTION_WITH_CYTHON = True
22+
OPTION_WITH_CYTHON_GDB = has_option('cython-gdb')
23+
OPTION_WITH_REFNANNY = has_option('with-refnanny')
24+
OPTION_WITH_COVERAGE = has_option('with-coverage')
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
index 1720657..b3cd9ab 100644
3+
--- a/pyproject.toml
4+
+++ b/pyproject.toml
5+
@@ -1,5 +1,6 @@
6+
[build-system]
7+
requires = ["Cython>=3.0.10", "setuptools", "wheel"]
8+
+build-backend = "setuptools.build_meta:__legacy__"
9+
10+
[tool.cibuildwheel]
11+
build-verbosity = 2
12+
diff --git a/setupinfo.py b/setupinfo.py
13+
index 97e3399..9079171 100644
14+
--- a/setupinfo.py
15+
+++ b/setupinfo.py
16+
@@ -563,7 +563,7 @@ OPTION_WITH_UNICODE_STRINGS = has_option('with-unicode-strings')
17+
OPTION_WITHOUT_ASSERT = has_option('without-assert')
18+
OPTION_WITHOUT_THREADING = has_option('without-threading')
19+
OPTION_WITHOUT_CYTHON = has_option('without-cython')
20+
-OPTION_WITH_CYTHON = has_option('with-cython')
21+
+OPTION_WITH_CYTHON = True
22+
OPTION_WITH_CYTHON_GDB = has_option('cython-gdb')
23+
OPTION_WITH_REFNANNY = has_option('with-refnanny')
24+
OPTION_WITH_COVERAGE = has_option('with-coverage')
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
index f2edb28..259ed3c 100644
3+
--- a/pyproject.toml
4+
+++ b/pyproject.toml
5+
@@ -1,5 +1,6 @@
6+
[build-system]
7+
requires = ["Cython>=3.0.11, < 3.1.0", "setuptools", "wheel"]
8+
+build-backend = "setuptools.build_meta:__legacy__"
9+
10+
[tool.cibuildwheel]
11+
build-verbosity = 1
12+
diff --git a/setupinfo.py b/setupinfo.py
13+
index 2aa3dca..e715c86 100644
14+
--- a/setupinfo.py
15+
+++ b/setupinfo.py
16+
@@ -557,7 +557,7 @@ OPTION_WITH_UNICODE_STRINGS = has_option('with-unicode-strings')
17+
OPTION_WITHOUT_ASSERT = has_option('without-assert')
18+
OPTION_WITHOUT_THREADING = has_option('without-threading')
19+
OPTION_WITHOUT_CYTHON = has_option('without-cython')
20+
-OPTION_WITH_CYTHON = has_option('with-cython')
21+
+OPTION_WITH_CYTHON = True
22+
OPTION_WITH_CYTHON_GDB = has_option('cython-gdb')
23+
OPTION_WITH_REFNANNY = has_option('with-refnanny')
24+
OPTION_WITH_COVERAGE = has_option('with-coverage')

graalpython/lib-graalpython/patches/metadata.toml

Lines changed: 47 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ version = '== 2.2.1'
4848
patch = 'cloudpickle-2.2.1.patch'
4949
license = 'BSD-3-Clause'
5050

51-
[[cppy.rules]]
52-
version = '==1.2.1'
53-
5451
[[cramjam.rules]]
5552
version = '== 2.7.0'
5653
patch = 'cramjam-2.7.0.patch'
@@ -236,13 +233,38 @@ patch = 'llvmlite.patch'
236233
license = 'BSD-2-Clause'
237234

238235
[[lxml.rules]]
239-
version = '== 5.3.0'
236+
version = '>= 5.3.2, <= 5.4.0'
237+
patch = 'lxml-5.4.0.patch'
238+
license = 'BSD-3-Clause'
239+
240+
[[lxml.rules]]
241+
version = '>= 5.3.0, < 5.3.2'
240242
patch = 'lxml-5.3.0.patch'
241243
license = 'BSD-3-Clause'
242244

243245
[[lxml.rules]]
244-
version = '== 4.9.1'
245-
patch = 'lxml-4.9.1.patch'
246+
version = '== 5.2.*'
247+
patch = 'lxml-5.2.patch'
248+
license = 'BSD-3-Clause'
249+
250+
[[lxml.rules]]
251+
version = '== 5.1.1'
252+
patch = 'lxml-5.1.1.patch'
253+
license = 'BSD-3-Clause'
254+
255+
[[lxml.rules]]
256+
version = '== 5.1.0'
257+
patch = 'lxml-5.1.0.patch'
258+
license = 'BSD-3-Clause'
259+
260+
[[lxml.rules]]
261+
version = '== 5.0.*'
262+
patch = 'lxml-5.0.patch'
263+
license = 'BSD-3-Clause'
264+
265+
[[lxml.rules]]
266+
version = '>= 4.9, < 5'
267+
patch = 'lxml-4.9.patch'
246268
license = 'BSD-3-Clause'
247269

248270
# Patch already upstreamed, keeping it around for older versions
@@ -260,10 +282,6 @@ install-priority = 0
260282
patch = 'meson-python.patch'
261283
license = 'MIT'
262284

263-
[[ml_dtypes.rules]]
264-
# 0.4.0 requires numpy==2.0rc1
265-
version = "< 0.4.0"
266-
267285
[[mlx.rules]]
268286
patch = 'mlx.patch'
269287
license = 'MIT'
@@ -301,13 +319,6 @@ patch = 'numpy-2.0.0.patch'
301319
license = 'BSD-3-Clause'
302320
dist-type = 'sdist'
303321

304-
[[numpy.rules]]
305-
version = '== 2.2.3'
306-
patch = 'numpy-2.2.3.patch'
307-
license = 'BSD-3-Clause'
308-
dist-type = 'sdist'
309-
install-priority = 0
310-
311322
[[numpy.rules]]
312323
version = '== 1.26.4'
313324
patch = 'numpy-1.26.4.patch'
@@ -402,7 +413,6 @@ version = '== 3.0.0'
402413
patch = 'pendulum-3.0.0.patch'
403414
license = 'MIT'
404415

405-
406416
[[pip.rules]]
407417
version = '== 23.2.1'
408418
patch = 'pip-23.2.1.patch'
@@ -482,32 +492,33 @@ version = '>= 2.10.1, < 2.11.0'
482492
patch = 'pybind11-2.10.1.patch'
483493
license = 'BSD-3-Clause'
484494

485-
[[pydantic.rules]]
486-
# Pin to match our pinned pydantic-core
487-
version = '== 2.10.3'
488-
489495
[[pydantic-core.rules]]
490496
version = '== 2.10.1'
497+
install-priority = 0
491498
patch = 'pydantic-core-2.10.1.patch'
492499
license = 'MIT'
493500

494501
[[pydantic-core.rules]]
495502
version = '== 2.23.4'
503+
install-priority = 0
496504
patch = 'pydantic-core-2.23.4.patch'
497505
license = 'MIT'
498506

499507
[[pydantic-core.rules]]
500508
version = '== 2.27.1'
509+
install-priority = 0
501510
patch = 'pydantic-core-2.27.1.patch'
502511
license = 'MIT'
503512

504513
[[pydantic-core.rules]]
505514
version = '== 2.27.2'
515+
install-priority = 0
506516
patch = 'pydantic-core-2.27.1.patch'
507517
license = 'MIT'
508518

509519
[[pydantic-core.rules]]
510520
version = '== 2.26.0'
521+
install-priority = 0
511522
patch = 'pydantic-core-2.26.0.patch'
512523
license = 'MIT'
513524

@@ -539,26 +550,18 @@ patch = "pymupdf.patch"
539550
# of the AGPL'd codebase
540551
license = 'UPL'
541552

542-
[[pyOpenSSL.rules]]
543-
# Pin this version to avoid pulling newer cryptography than we have patch for
544-
version = "== 23.2.0"
545-
546-
[[pyparsing.rules]]
547-
version = '== 3.0.8'
548-
549553
[[pyperf.rules]]
550554
version = '== 2.3.0'
555+
install-priority = 0
551556
patch = 'pyperf-2.3.0.patch'
552557
license = 'MIT'
553558

554559
[[pyperf.rules]]
555560
version = '== 2.3.1'
561+
install-priority = 0
556562
patch = 'pyperf-2.3.1.patch'
557563
license = 'MIT'
558564

559-
[[pyperf.rules]]
560-
version = '== 2.5.0'
561-
562565
[[pyperformance.rules]]
563566
version = '== 1.0.5'
564567
patch = 'pyperformance-1.0.5.patch'
@@ -591,8 +594,8 @@ patch = 'pythran-0.16.patch'
591594
license = 'BSD-3-Clause'
592595

593596
[[pyzmq.rules]]
594-
# 26+ needs Cython 3
595597
version = '< 26'
598+
install-priority = 0
596599
# The patch just makes it re-cythonize to pick up our cython changes
597600
patch = 'pyzmq.patch'
598601
license = 'BSD-3-Clause'
@@ -634,10 +637,6 @@ license = 'Apache-2.0'
634637
version = '2.9.1'
635638
url = 'https://github.com/ray-project/ray/archive/refs/tags/ray-2.9.1.tar.gz'
636639

637-
[[readme-renderer.rules]]
638-
# Newer version depends nh3 which is built with maturin, which is currently broken
639-
version = '< 42'
640-
641640
[[rpds_py.rules]]
642641
# Patch not needed anymore in recent version since pyo3 changes have been upstreamed
643642
install-priority = 0
@@ -675,11 +674,9 @@ patch = 'scikit-learn-1.1.3.patch'
675674
license = 'BSD-3-Clause'
676675
dist-type = 'sdist'
677676

678-
[[scipy.rules]]
679-
version = '== 1.13.1'
680-
681677
[[scipy.rules]]
682678
version = '== 1.10.1'
679+
install-priority = 0
683680
patch = 'scipy-1.10.1.patch'
684681
license = 'BSD-3-Clause'
685682
dist-type = 'sdist'
@@ -689,10 +686,6 @@ version = '>= 1.2.2'
689686
patch = 'setproctitle-1.2.2.patch'
690687
license = 'BSD-3-Clause'
691688

692-
[[statsmodels.rules]]
693-
# Pin older versions for now, the new ones require numpy-2rc1 and cython 3
694-
version = '<= 0.14.1'
695-
696689
[[tensorflow.rules]]
697690
version = '== 2.15.0'
698691
patch = 'tensorflow-2.15.0.patch'
@@ -731,21 +724,19 @@ url = 'https://github.com/tensorflow/io/archive/refs/tags/v0.34.0.tar.gz'
731724

732725
[[tiktoken.rules]]
733726
version = '== 0.7.0'
727+
install-priority = 0
734728
patch = 'tiktoken-0.7.0.patch'
735729
license = 'MIT'
736730

737-
[[tokenizers.rules]]
738-
version = '>= 0.19'
739-
patch = 'tokenizers-0.19-plus.patch'
740-
license = 'Apache-2.0'
741-
742731
[[tokenizers.rules]]
743732
version = '== 0.13.3'
733+
install-priority = 0
744734
patch = 'tokenizers-0.13.3.patch'
745735
license = 'Apache-2.0'
746736

747737
[[tokenizers.rules]]
748738
version = '== 0.15.0'
739+
install-priority = 0
749740
patch = 'tokenizers-0.15.0.patch'
750741
license = 'Apache-2.0'
751742

@@ -797,13 +788,6 @@ license = 'BSD-3-Clause'
797788
version = '0.17.1'
798789
url = 'https://github.com/pytorch/vision/archive/refs/tags/v0.17.1.tar.gz'
799790

800-
[[tox.rules]]
801-
version = '== 3.*'
802-
803-
[[transformers.rules]]
804-
# transformers tends to depend on a specific version of tokenizers. Pin it to avoid pulling unpatched tokenizers
805-
version = '== 4.33.3'
806-
807791
[[trio.rules]]
808792
patch = 'trio.patch'
809793
license = 'Apache-2.0 OR MIT'
@@ -890,6 +874,13 @@ license = 'MIT'
890874
subdir = 'src'
891875
install-priority = 0
892876

877+
[[xmlschema.rules]]
878+
version = '>= 4.0.0, <= 4.0.1'
879+
# Submitted upstream, optimistically assuming it'll get merged before the next release
880+
install-priority = 0
881+
patch = 'xmlschema.patch'
882+
license = 'MIT'
883+
893884
[[zstandard.rules]]
894885
patch = 'zstandard.patch'
895886
license = 'BSD-3-Clause'

0 commit comments

Comments
 (0)