Skip to content

Commit

Permalink
feat: Switch to python3.10. Update poetry files, readme.md, contribut…
Browse files Browse the repository at this point in the history
…ing.md

Signed-off-by: Nikos Livathinos <[email protected]>
  • Loading branch information
nikos-livathinos committed Jul 18, 2024
1 parent d6b8f0d commit b9efd29
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 13 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ poetry install
If for whatever reason you need to work in a specific (older) version of Python, run:
```bash
poetry env use $(which python3.11)
poetry env use $(which python3.10)
```
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)`.
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)`.
#### Add a new dependency
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![PyPI version](https://img.shields.io/pypi/v/docling-ibm-models)](https://pypi.org/project/docling-ibm-models/)
![Python](https://img.shields.io/badge/python-3.11%20%7C%203.12-blue)
![Python](https://img.shields.io/badge/python-3.10%20|%203.11%20|%203.12-blue)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
Expand Down Expand Up @@ -36,7 +36,7 @@ RUN curl -sSL 'https://install.python-poetry.org' > install-poetry.py \
To install and run the package, simply set up a poetry environment

```
poetry env use $(which python3.11)
poetry env use $(which python3.10)
poetry shell
```

Expand Down
57 changes: 51 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ packages = [
]

[tool.poetry.dependencies]
python = "^3.11"
python = "^3.10"
torch = "2.2.2"
torchvision = "0.17.2"
onnxruntime = "^1.16.2"
Expand Down Expand Up @@ -57,13 +57,13 @@ build-backend = "poetry.core.masonry.api"

[tool.black]
line-length = 88
target-version = ["py311"]
target-version = ["py310"]
include = '\.pyi?$'

[tool.isort]
profile = "black"
line_length = 88
py_version=311
py_version=310

[tool.semantic_release]
# for default values check:
Expand Down

0 comments on commit b9efd29

Please sign in to comment.