Skip to content

Commit 7a633bf

Browse files
feat: upgrade to poetry 2.0
1 parent fc2587e commit 7a633bf

4 files changed

Lines changed: 55 additions & 56 deletions

File tree

.github/workflows/lint_test_build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Install dependencies using poetry
7373
# if: steps.python_cache.outputs.cache-hit != 'true'
7474
run: |
75-
pip install poetry==1.7.1 poetry-plugin-export==1.6.0
75+
pip install poetry==2.1.4 poetry-plugin-export==1.9.0
7676
poetry install --no-interaction --no-ansi
7777
7878
# This step caches our pre-commit environment. To make sure we

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ WORKDIR /bot
1111
# as we have a git dep, install git
1212
RUN apt update && apt install git -y
1313

14-
RUN pip install -U pip wheel setuptools
15-
RUN pip install poetry==1.7.1 poetry-plugin-export==1.6.0
14+
RUN pip install poetry==2.1.4 poetry-plugin-export==1.9.0
1615

1716
# export requirements after copying req files
1817
COPY pyproject.toml poetry.lock ./

poetry.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,49 @@
1-
[tool.poetry]
1+
[build-system]
2+
requires = ["poetry-core>=2.0.0,<3"]
3+
build-backend = "poetry.core.masonry.api"
4+
5+
[project]
6+
authors = [{ name = "aru", email = "genericusername414@gmail.com" }]
7+
license = { text = "MIT" }
8+
requires-python = "~=3.10"
29
name = "monty"
310
version = "1.0.0"
411
description = "Helpful bot for python, github, and discord things."
5-
authors = ["aru <genericusername414@gmail.com>"]
6-
license = "MIT"
7-
8-
[tool.poetry.dependencies]
9-
python = "~=3.10"
10-
aiodns = "~=3.4"
11-
aiohttp = { version = "~=3.11.18", extras = ['speedups'] }
12-
yarl = "^1.17.2" # transitive dependency of aiohttp
13-
arrow = "~=1.3.0"
14-
attrs = "^24.2.0"
15-
base65536 = "^0.1.1"
16-
beautifulsoup4 = "^4.13.4"
17-
cachingutils = { git = "https://github.com/onerandomusername/cachingutils.git", rev='vcokltfre/feat/v2' }
18-
colorama = { version = "~=0.4.5", markers = "sys_platform == 'win32'" }
19-
coloredlogs = "~=15.0"
20-
disnake = { version = '~=2.9.3' }
21-
orjson = "^3.10.18"
22-
fakeredis = "^2.29.0"
23-
gql = "^3.5.2"
24-
lxml = "^5.4.0"
25-
markdownify = "==0.11.6"
26-
mistune = "^2.0.4"
27-
msgpack = "^1.1.0"
28-
redis = { version = "^5.2.0", extras = ['hiredis'] }
29-
Pillow = "^11.2"
30-
psutil = "^5.9.8"
31-
python-dateutil = "^2.9.0"
32-
rapidfuzz = "^3.13.0"
33-
sentry-sdk = "^2.28.0"
34-
statsd = "^3.3.0"
35-
# database dependencies
36-
alembic = "^1.15.2"
37-
asyncpg = "^0.30.0"
38-
SQLAlchemy = { version = "~=2.0.41", extras = ['asyncio'] }
39-
watchfiles = "^1.0.5"
40-
41-
[tool.poetry.extras]
42-
fakeredis = ['fakeredis']
43-
dev = ['fakeredis', 'watchfiles']
44-
45-
[tool.poetry.dev-dependencies]
12+
dependencies = [
13+
"aiodns~=3.4",
14+
"aiohttp[speedups]~=3.11.18",
15+
"yarl<2.0.0,>=1.17.2",
16+
"arrow~=1.3.0",
17+
"attrs<25.0.0,>=24.2.0",
18+
"base65536~=0.1.1",
19+
"beautifulsoup4<5.0.0,>=4.13.4",
20+
"cachingutils @ git+https://github.com/onerandomusername/cachingutils.git@vcokltfre/feat/v2",
21+
"colorama~=0.4.5; sys_platform == \"win32\"",
22+
"coloredlogs~=15.0",
23+
"disnake~=2.9.3",
24+
"orjson<4.0.0,>=3.10.18",
25+
"gql<4.0.0,>=3.5.2",
26+
"lxml<6.0.0,>=5.4.0",
27+
"markdownify==0.11.6",
28+
"mistune<3.0.0,>=2.0.4",
29+
"msgpack<2.0.0,>=1.1.0",
30+
"redis[hiredis]<6.0.0,>=5.2.0",
31+
"Pillow<12.0,>=11.2",
32+
"psutil<6.0.0,>=5.9.8",
33+
"python-dateutil<3.0.0,>=2.9.0",
34+
"rapidfuzz<4.0.0,>=3.13.0",
35+
"sentry-sdk<3.0.0,>=2.28.0",
36+
"statsd<4.0.0,>=3.3.0",
37+
"alembic<2.0.0,>=1.15.2",
38+
"asyncpg~=0.30.0",
39+
"SQLAlchemy[asyncio]~=2.0.41",
40+
]
41+
42+
[project.optional-dependencies]
43+
fakeredis = ["fakeredis<3.0.0,>=2.29.0"]
44+
dev = ["fakeredis<3.0.0,>=2.29.0", "watchfiles<2.0.0,>=1.0.5"]
45+
46+
[tool.poetry.group.dev.dependencies]
4647
black = "^24.10.0"
4748
ruff = "==0.7.4"
4849
isort = "^5.13.2"
@@ -52,9 +53,8 @@ python-dotenv = "^1.1.0"
5253
pyright = "==1.1.389"
5354
msgpack-types = "^0.5.0"
5455

55-
[build-system]
56-
requires = ["poetry-core>=1.0.0"]
57-
build-backend = "poetry.core.masonry.api"
56+
[tool.poetry.requires-plugins]
57+
poetry-plugin-export = ">=1.9,<2"
5858

5959
[tool.black]
6060
line-length = 120

0 commit comments

Comments
 (0)