dep clean up

This commit is contained in:
Brian Rosner 2024-05-19 17:43:12 -06:00
parent 8a026eda3f
commit 5175631799
3 changed files with 40 additions and 4 deletions

View File

@ -40,7 +40,7 @@ COPY poetry.lock pyproject.toml ./
RUN --mount=type=cache,target=/root/.cache \
python -m venv $VENV_PATH && \
poetry install --no-root --without=dev
poetry install --no-root --only=main
COPY . .
RUN --mount=type=cache,target=/root/.cache \
@ -75,7 +75,7 @@ COPY --from=builder-base $APP_HOME $APP_HOME
WORKDIR $APP_HOME
RUN --mount=type=cache,target=/root/.cache \
poetry install --with=dev
poetry install --with=tests
## prod image

34
poetry.lock generated
View File

@ -322,6 +322,20 @@ docs = ["Sphinx (>=5.0)", "furo (==2022.6.21)", "sphinx-autobuild (>=2021.3.14)"
pool = ["psycopg-pool"]
test = ["anyio (>=3.6.2,<4.0)", "mypy (>=1.4.1)", "pproxy (>=2.7)", "pytest (>=6.2.5)", "pytest-cov (>=3.0)", "pytest-randomly (>=3.5)"]
[[package]]
name = "pydeps"
version = "1.12.20"
description = "Display module dependencies"
optional = false
python-versions = "*"
files = [
{file = "pydeps-1.12.20-py3-none-any.whl", hash = "sha256:7278a8912bdada26b773d3550f0cc8fd76bed172d23dc1472c457d6292b67fd7"},
{file = "pydeps-1.12.20.tar.gz", hash = "sha256:4f6a833a7998bfa24e339c55535882905c22960efc14902c361f74b2952aff19"},
]
[package.dependencies]
stdlib-list = "*"
[[package]]
name = "pytest"
version = "8.2.0"
@ -429,6 +443,24 @@ postgresql-psycopgbinary = ["psycopg[binary] (>=3.0.7)"]
pymysql = ["pymysql"]
sqlcipher = ["sqlcipher3_binary"]
[[package]]
name = "stdlib-list"
version = "0.10.0"
description = "A list of Python Standard Libraries (2.7 through 3.12)."
optional = false
python-versions = ">=3.7"
files = [
{file = "stdlib_list-0.10.0-py3-none-any.whl", hash = "sha256:b3a911bc441d03e0332dd1a9e7d0870ba3bb0a542a74d7524f54fb431256e214"},
{file = "stdlib_list-0.10.0.tar.gz", hash = "sha256:6519c50d645513ed287657bfe856d527f277331540691ddeaf77b25459964a14"},
]
[package.extras]
dev = ["build", "stdlib-list[doc,lint,test]"]
doc = ["furo", "sphinx"]
lint = ["black", "mypy", "ruff"]
support = ["sphobjinv"]
test = ["coverage[toml]", "pytest", "pytest-cov"]
[[package]]
name = "typing-extensions"
version = "4.11.0"
@ -471,4 +503,4 @@ watchdog = ["watchdog (>=2.3)"]
[metadata]
lock-version = "2.0"
python-versions = "^3.12"
content-hash = "88252449baa742f6b50d5865fc6e2bda58462c090c9112ae8692662365266874"
content-hash = "705cefda858edae490bf28f53c963c66bc5f71a9ea12556f1f6a3f3f0eb11543"

View File

@ -20,9 +20,13 @@ psycopg = "^3.1.19"
[tool.poetry.scripts]
teufa = "teufa.cli:cli"
[tool.poetry.group.dev.dependencies]
[tool.poetry.group.tests.dependencies]
pytest = "^8.2.0"
[tool.poetry.group.dev.dependencies]
pydeps = "^1.12.20"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"