Skip to content

Commit 5caf1ff

Browse files
authored
feat: support for py3.14 (#174)
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
1 parent 0a4fe1a commit 5caf1ff

File tree

7 files changed

+1486
-930
lines changed

7 files changed

+1486
-930
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-24.04
1010
strategy:
1111
matrix:
12-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
12+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Install uv and set the python version

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# list of github vm: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
4141
fail-fast: false
4242
matrix:
43-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
43+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
4444

4545
os:
4646
- name: "ubuntu-24.04"

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include CMakeLists.txt
2-
include build.py
2+
include local_build.py
33
include *.md
44
include uv.lock
55
include LICENSE
File renamed without changes.

pyproject.toml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ classifiers = [
1212
"Intended Audience :: Developers",
1313
"Intended Audience :: Science/Research",
1414
"Programming Language :: C++",
15-
"Programming Language :: Python :: 3"
15+
"Programming Language :: Python :: 3",
16+
"Programming Language :: Python :: 3.9",
17+
"Programming Language :: Python :: 3.10",
18+
"Programming Language :: Python :: 3.11",
19+
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
21+
"Programming Language :: Python :: 3.14",
1622
]
1723
readme = "README.md"
1824
authors = [
@@ -25,7 +31,7 @@ authors = [
2531
requires-python = ">=3.9"
2632
dependencies = [
2733
"tabulate>=0.9.0,<1.0.0",
28-
"pillow>=10.0.0,<12.0.0",
34+
"pillow>=10.0.0,<13.0.0",
2935
"pydantic>=2.0.0",
3036
"docling-core>=2.44.1",
3137
"pywin32>=305; sys_platform == 'win32'",
@@ -38,7 +44,8 @@ Repository = "https://github.com/docling-project/docling-parse"
3844
requires = [
3945
"setuptools>=77.0.3",
4046
"pybind11>=2.13.6",
41-
"cibuildwheel>=2.19.2,<3.0.0",
47+
"cibuildwheel>=2.19.2,<3.0.0; python_version < '3.11'",
48+
"cibuildwheel>=2.19.2,<4.0.0; python_version >= '3.11'",
4249
"wheel>=0.43.0,<1.0.0",
4350
"delocate>=0.11.0,<1.0.0",
4451
"cmake>=3.27.0,<4.0.0"
@@ -49,14 +56,15 @@ build-backend = "setuptools.build_meta"
4956
build = [
5057
"setuptools>=77.0.3",
5158
"pybind11>=2.13.6",
52-
"cibuildwheel>=2.19.2,<3.0.0",
59+
"cibuildwheel>=2.19.2,<3.0.0; python_version < '3.11'",
60+
"cibuildwheel>=2.19.2,<4.0.0; python_version >= '3.11'",
5361
"wheel>=0.43.0,<1.0.0",
5462
"delocate>=0.11.0,<1.0.0",
5563
"cmake>=3.27.0,<4.0.0"
5664
]
5765
dev = [
5866
"pytest>=7.4.2,<8.0.0",
59-
"black[jupyter]>=24.4.2,<25.0.0",
67+
"black[jupyter]>=24.4.2,<26.0.0",
6068
"python-semantic-release>=7.32.2,<8.0.0",
6169
"pre-commit>=3.7.1,<4.0.0",
6270
"isort>=5.10.1,<6.0.0",
@@ -101,7 +109,7 @@ include = ["docling_parse*"]
101109

102110
[tool.black]
103111
line-length = 88
104-
target-version = ["py39", "py310", "py311", "py312", "py313"]
112+
target-version = ["py39", "py310", "py311", "py312", "py313", "py314"]
105113
include = '\.pyi?$'
106114
preview = true
107115

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class CustomBuildPy(_build_py):
77
def run(self):
8-
subprocess.check_call([sys.executable, "build.py"])
8+
subprocess.check_call([sys.executable, "local_build.py"])
99
super().run()
1010

1111
class BinaryDistribution(Distribution):

uv.lock

Lines changed: 1468 additions & 920 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)