Skip to content

Commit 7b674cf

Browse files
committed
DO NOT MERGE: Test Python 3.14
1 parent beb3cfd commit 7b674cf

File tree

8 files changed

+15
-11
lines changed

8 files changed

+15
-11
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
cache-dependency-glob: uv.lock
1717
- uses: actions/setup-python@v5
1818
with:
19-
python-version: 3.x
19+
python-version: 3.14
2020
allow-prereleases: true
2121
- run: uv sync --group=test
2222
- name: Run tests

.github/workflows/directory_writer.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
fetch-depth: 0
1212
- uses: actions/setup-python@v5
1313
with:
14-
python-version: 3.x
14+
python-version: 3.14
15+
allow-prereleases: true
1516
- name: Write DIRECTORY.md
1617
run: |
1718
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md

.github/workflows/project_euler.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
- uses: astral-sh/setup-uv@v6
1919
- uses: actions/setup-python@v5
2020
with:
21-
python-version: 3.x
21+
python-version: 3.14
22+
allow-prereleases: true
2223
- run: uv sync --group=euler-validate --group=test
2324
- run: uv run pytest --doctest-modules --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
2425
validate-solutions:
@@ -28,7 +29,8 @@ jobs:
2829
- uses: astral-sh/setup-uv@v6
2930
- uses: actions/setup-python@v5
3031
with:
31-
python-version: 3.x
32+
python-version: 3.14
33+
allow-prereleases: true
3234
- run: uv sync --group=euler-validate --group=test
3335
- run: uv run pytest scripts/validate_solutions.py
3436
env:

.github/workflows/sphinx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: astral-sh/setup-uv@v6
3030
- uses: actions/setup-python@v5
3131
with:
32-
python-version: 3.13
32+
python-version: 3.14
3333
allow-prereleases: true
3434
- run: uv sync --group=docs
3535
- uses: actions/configure-pages@v5

ciphers/gronsfeld_cipher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def gronsfeld(text: str, key: str) -> str:
2020
>>> gronsfeld('yes, ¥€$ - _!@#%?', '')
2121
Traceback (most recent call last):
2222
...
23-
ZeroDivisionError: integer modulo by zero
23+
ZeroDivisionError: division by zero
2424
"""
2525
ascii_len = len(ascii_uppercase)
2626
key_len = len(key)

machine_learning/xgboost_classifier.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ def xgboost(features: np.ndarray, target: np.ndarray) -> XGBClassifier:
4242

4343
def main() -> None:
4444
"""
45-
>>> main()
46-
4745
Url for the algorithm:
4846
https://xgboost.readthedocs.io/en/stable/
4947
Iris type dataset is used to demonstrate algorithm.

maths/largest_of_very_large_numbers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def res(x, y):
1515
>>> res(-1, 5)
1616
Traceback (most recent call last):
1717
...
18-
ValueError: math domain error
18+
ValueError: expected a positive input
1919
"""
2020
if 0 not in (x, y):
2121
# We use the relation x^y = y*log10(x), where 10 is the base.

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ classifiers = [
1010
]
1111
dependencies = [
1212
"beautifulsoup4>=4.12.3",
13+
"cython>=3.1", # For lxml on Python 3.14 pre-release
1314
"fake-useragent>=1.5.1",
1415
"httpx>=0.28.1",
1516
"imageio>=2.36.1",
1617
"keras>=3.7",
17-
"lxml>=5.3",
18+
# "lxml>=5.4",
19+
"lxml @ git+https://github.com/lxml/lxml",
1820
"matplotlib>=3.9.3",
1921
"numpy>=2.1.3",
2022
"opencv-python>=4.10.0.84",
2123
"pandas>=2.2.3",
22-
"pillow>=11",
24+
# "pillow>=11",
25+
"pillow @ git+https://github.com/python-pillow/pillow",
2326
"rich>=13.9.4",
2427
"scikit-learn>=1.5.2",
2528
"sphinx-pyproject>=0.3",

0 commit comments

Comments
 (0)