Skip to content

Commit b9efd29

Browse files
feat: Switch to python3.10. Update poetry files, readme.md, contributing.md
Signed-off-by: Nikos Livathinos <[email protected]>
1 parent d6b8f0d commit b9efd29

File tree

4 files changed

+58
-13
lines changed

4 files changed

+58
-13
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ poetry install
127127
If for whatever reason you need to work in a specific (older) version of Python, run:
128128
129129
```bash
130-
poetry env use $(which python3.11)
130+
poetry env use $(which python3.10)
131131
```
132132
133-
This creates a Virtual Environment with Python 3.11. For other versions, replace `$(which python3.11)` by the path to the interpreter (e.g., `/usr/bin/python3.11`) or use `$(which pythonX.Y)`.
133+
This creates a Virtual Environment with Python 3.10. For other versions, replace `$(which python3.10)` by the path to the interpreter (e.g., `/usr/bin/python3.11`) or use `$(which pythonX.Y)`.
134134
135135
136136
#### Add a new dependency

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![PyPI version](https://img.shields.io/pypi/v/docling-ibm-models)](https://pypi.org/project/docling-ibm-models/)
2-
![Python](https://img.shields.io/badge/python-3.11%20%7C%203.12-blue)
2+
![Python](https://img.shields.io/badge/python-3.10%20|%203.11%20|%203.12-blue)
33
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
44
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
55
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
@@ -36,7 +36,7 @@ RUN curl -sSL 'https://install.python-poetry.org' > install-poetry.py \
3636
To install and run the package, simply set up a poetry environment
3737

3838
```
39-
poetry env use $(which python3.11)
39+
poetry env use $(which python3.10)
4040
poetry shell
4141
```
4242

poetry.lock

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

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ packages = [
2121
]
2222

2323
[tool.poetry.dependencies]
24-
python = "^3.11"
24+
python = "^3.10"
2525
torch = "2.2.2"
2626
torchvision = "0.17.2"
2727
onnxruntime = "^1.16.2"
@@ -57,13 +57,13 @@ build-backend = "poetry.core.masonry.api"
5757

5858
[tool.black]
5959
line-length = 88
60-
target-version = ["py311"]
60+
target-version = ["py310"]
6161
include = '\.pyi?$'
6262

6363
[tool.isort]
6464
profile = "black"
6565
line_length = 88
66-
py_version=311
66+
py_version=310
6767

6868
[tool.semantic_release]
6969
# for default values check:

0 commit comments

Comments
 (0)