Skip to content

Commit

Permalink
chore: update dependencies and target versions in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Sep 24, 2024
1 parent 3d56903 commit bb3da6f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM rust:latest

USER root

RUN apt-get update && \
apt-get install -y python3-full

WORKDIR /app
COPY . .

RUN python3 -m venv /.venv
RUN /.venv/bin/python -m pip install pdm maturin
RUN /.venv/bin/python -m pdm sync
RUN /.venv/bin/python -m pdm install -dG dev

CMD ["pdm", "run", "iamai", "version"]
8 changes: 8 additions & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.10

WORKDIR /app
COPY . /examples

RUN pip install iamai

CMD ["pdm", "run", "main.py"]
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ classifiers = [
]
requires-python = ">=3.9"
dependencies = [
"tomli>=2.0.0,<3.0.0;python_version<'3.11'",
"tomli>=2.0.0",
"pydantic>=2.0.3,<3.0.0",
"aiohttp>=3.9.1",
"loguru>=0.7.0,<0.8.0",
Expand Down Expand Up @@ -79,7 +79,7 @@ Changelog = "https://iamai.is-a.dev/en/latest/changelog.html#"
iamai = "iamai.__main__:main"

[tool.black]
target-version = ["py38", "py39", "py310", "py311"]
target-version = ["py39", "py310", "py311", "py312"]

[tool.pdm.dev-dependencies]
dev = [
Expand Down Expand Up @@ -167,8 +167,8 @@ exclude = [
line-length = 88
indent-width = 4

# Assume Python 3.8
target-version = "py38"
# Assume Python 3.10
target-version = "py310"

[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
Expand Down

0 comments on commit bb3da6f

Please sign in to comment.