Skip to content

Commit d9345e6

Browse files
committed
Python version update
1 parent e3b37fe commit d9345e6

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM python:3.14@sha256:17bc9f1d032a760546802cc4e406401eb5fe99dbcb4602c91628e73672fa749c
1+
# Musí odpovídat wheelům pro torch/ultralytics (viz poetry.lock). 3.14 zatím často bez cp314 torch.
2+
FROM python:3.13-slim-bookworm
23

34
RUN pip install --no-cache-dir poetry
45
RUN useradd --uid 1000 --shell /bin/bash appuser

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Databots for herbarium repository. Use Databot name as argument to run it immedi
33

44
## local run
55
```shell
6-
poetry env use python3.14
6+
poetry env use python3.13
77
poetry install
88

99
poetry run python src/test.py database_connection_tester

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ poetry install
1212
Verzi Pythonu sjednoťte s projektem (viz `pyproject.toml`), např.:
1313

1414
```bash
15-
poetry env use python3.14
15+
poetry env use python3.13
1616
```
1717

1818
Údaje o DB a S3 upravte v `src/config.yaml`, případně přepište proměnnými prostředí ve tvaru `DB_*` a `S3_*` (viz [`src/config/config.py`](../src/config/config.py)).

poetry.lock

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

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ readme = "README.md"
1010
package-mode = false
1111

1212
[tool.poetry.dependencies]
13-
python = "^3.14"
13+
# 3.14: PyTorch/torch v locku zatím nemají cp314 wheels → Docker build padá. Držet 3.13, dokud upstream nepodporuje.
14+
python = "^3.13"
1415
psycopg2-binary = "^2"
1516
pyyaml = "^6"
1617
flask = "^3"

0 commit comments

Comments
 (0)