Skip to content

Commit

Permalink
Switch dependency specs to PEP 508
Browse files Browse the repository at this point in the history
  • Loading branch information
TheReverend403 committed Jan 16, 2025
1 parent 65eb15f commit cbf6ec5
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 90 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cache: "poetry"

- name: Install Python dependencies
run: poetry install
run: poetry install --extras dev

- name: Lint
uses: pre-commit/[email protected]
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN --mount=type=cache,target=/root/.cache \
curl -sSL https://install.python-poetry.org | python3 -

COPY poetry.lock pyproject.toml LICENSE README.md ./
COPY poetry.lock pyproject.toml ./
RUN --mount=type=cache,target=/root/.cache \
poetry install --only main,docker
poetry install --extras docker


## Production image
Expand Down
126 changes: 72 additions & 54 deletions poetry.lock

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

61 changes: 28 additions & 33 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,40 @@ name = "cappuccino"
description = "Just another IRC bot."
authors = [{ name = "Lee Watson", email = "<[email protected]>" }]
version = "1.16.0"
readme = "README.md"
license = { file = "LICENSE" }
license = "GPL-3.0-only"
requires-python = ">=3.13"
dynamic = ["dependencies"]
dependencies = [
"irc3 (>=1.1.0,<2.0.0)",
"markovify (>=0.9.0,<1.0.0)",
"pylast (>=5.0.0,<6.0.0)",
"ujson (>=5.1.0,<6.0.0)",
"requests (>=2.27.0,<3.0.0)",
"sentry-sdk (>=2.8.0,<3.0.0)",
"urllib3 (>=2.2.2,<3.0.0)",
"beautifulsoup4 (>=4.10.0,<5.0.0)",
"bottle (>=0.13.0,<=1.0.0)",
"sqlalchemy[postgresql] (>=1.4.0,<2.0.0)",
"alembic (>=1.7.0,<2.0.0)",
"humanize (>=4.0.0,<5.0.0)",
"html5lib (>=1.1,<2.0)",
"ircstyle (>=0.1.1)",
"pyyaml (>=6.0.0,<7.0.0)",
"influxdb-client (>=1.26.0,<2.0.0)",
]

[project.optional-dependencies]
dev = [
"pre-commit (>=4.0.0,<5.0.0)",
"pre-commit-hooks (>=5.0.0,<6.0.0)",
"ruff (>=0.9.0,<1.0.0)",
"shellcheck-py (>=0.10.0.1)",
]
docker = ["Jinja2 (>=3.1.3,<4.0.0)"]

[tool.poetry]
package-mode = false
requires-poetry = ">=2.0"

[tool.poetry.dependencies]
irc3 = "^1.1.0"
markovify = "^0.9.0"
pylast = "^5.0.0"
ujson = "^5.1.0"
requests = "^2.27.0"
sentry-sdk = "^2.8.0"
urllib3 = "^2.2.2"
beautifulsoup4 = "^4.10.0"
bottle = "^0.13.0"
sqlalchemy = { version = "^1.4.0", extras = ["postgresql"] }
alembic = "^1.7.0"
humanize = "^4.0.0"
html5lib = "^1.1"
ircstyle = "^0.1.1"
pyyaml = "^6.0.0"
influxdb-client = "^1.26.0"

[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.0"
ruff = "^0.9.0"
pre-commit-hooks = "^5.0.0"
shellcheck-py = "^0.10.0.1"

[tool.poetry.group.docker]
optional = true

[tool.poetry.group.docker.dependencies]
Jinja2 = "^3.1.3"

[tool.ruff]
force-exclude = true

Expand Down

0 comments on commit cbf6ec5

Please sign in to comment.