diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..146faf8f --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/Dockerfile.prod b/Dockerfile.prod new file mode 100644 index 00000000..04d96f24 --- /dev/null +++ b/Dockerfile.prod @@ -0,0 +1,8 @@ +FROM python:3.10 + +WORKDIR /app +COPY . /examples + +RUN pip install iamai + +CMD ["pdm", "run", "main.py"] \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 41803516..3450489c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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 = [ @@ -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.