Skip to content

Commit 49d4323

Browse files
committed
Convert project to poetry
1 parent d3887b5 commit 49d4323

File tree

16 files changed

+2203
-382
lines changed

16 files changed

+2203
-382
lines changed

MANIFEST.in

Lines changed: 0 additions & 33 deletions
This file was deleted.

poetry.lock

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

pyproject.toml

Lines changed: 82 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,40 @@
1-
[build-system]
2-
requires = ["setuptools>=64", "wheel"]
3-
build-backend = "setuptools.build_meta"
1+
[tool.poetry]
2+
name = "red-discordbot"
43

5-
[project]
6-
name = "Red-DiscordBot"
7-
description = "A highly customisable Discord bot"
4+
# This is bumped automatically by release workflow (`.github/workflows/scripts/bump_version.py`)
5+
version = "3.5.13.dev8+d3887b5"
6+
description = "A highly customizable Discord bot"
7+
authors = ["Cog Creators"]
88
readme = "README.md"
9-
authors = [{ name = "Cog Creators" }]
9+
license = "GPL-3.0-only"
1010
classifiers = [
11-
"Development Status :: 5 - Production/Stable",
12-
"Framework :: AsyncIO",
13-
"Intended Audience :: Developers",
14-
"Intended Audience :: End Users/Desktop",
15-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
16-
"Natural Language :: English",
17-
"Operating System :: MacOS :: MacOS X",
18-
"Operating System :: Microsoft :: Windows",
19-
"Operating System :: POSIX :: Linux",
20-
"Programming Language :: Python :: 3 :: Only",
21-
"Programming Language :: Python :: 3.8",
22-
"Programming Language :: Python :: 3.9",
23-
"Programming Language :: Python :: 3.10",
24-
"Programming Language :: Python :: 3.11",
25-
"Topic :: Communications :: Chat",
11+
"Development Status :: 5 - Production/Stable",
12+
"Framework :: AsyncIO",
13+
"Intended Audience :: Developers",
14+
"Intended Audience :: End Users/Desktop",
15+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
16+
"Natural Language :: English",
17+
"Operating System :: MacOS :: MacOS X",
18+
"Operating System :: Microsoft :: Windows",
19+
"Operating System :: POSIX :: Linux",
20+
"Programming Language :: Python :: 3 :: Only",
21+
"Programming Language :: Python :: 3.8",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Topic :: Communications :: Chat",
26+
]
27+
packages = [{ include = "redbot" }]
28+
include = [
29+
"LICENSE",
30+
"redbot/**/*.LICENSE",
31+
"redbot/**/locales/*.po",
32+
"redbot/**/data/*",
33+
"redbot/**/*.export",
34+
"redbot/py.typed",
2635
]
27-
dynamic = ["version", "requires-python", "dependencies", "optional-dependencies"]
2836

29-
[project.urls]
37+
[tool.poetry.urls]
3038
"Homepage" = "https://github.com/Cog-Creators/Red-DiscordBot"
3139
"Discord Server" = "https://discord.gg/red"
3240
"Documentation" = "https://docs.discord.red"
@@ -35,23 +43,58 @@ dynamic = ["version", "requires-python", "dependencies", "optional-dependencies"
3543
"Source Code" = "https://github.com/Cog-Creators/Red-DiscordBot"
3644
"Changelog" = "https://docs.discord.red/en/stable/changelog.html"
3745

38-
[project.scripts]
46+
[tool.poetry.dependencies]
47+
python = ">= 3.8.1, < 3.12"
48+
aiohttp = "^3.10.9"
49+
aiohttp-json-rpc = "^0.13.3"
50+
apsw = "^3.46.1.0"
51+
babel = "^2.16.0"
52+
brotli = "^1.1.0"
53+
click = "^8.1.7"
54+
discord-py = "^2.4.0"
55+
markdown = "^3.7"
56+
orjson = "^3.10.7"
57+
packaging = "^24.1"
58+
platformdirs = "^4.3.6"
59+
psutil = "^6.0.0"
60+
python-dateutil = "^2.9.0.post0"
61+
pyyaml = "^6.0.2"
62+
rapidfuzz = "^3.8"
63+
red-commons = "^1.0.0"
64+
red-lavalink = "^0.11.0"
65+
rich = "^13.9.2"
66+
schema = "^0.7.7"
67+
typing-extensions = "^4.12.2"
68+
yarl = "^1.13.1"
69+
uvloop = { version = "^0.20.0", markers = "sys_platform != 'win32' and platform_python_implementation == 'CPython'" }
70+
distro = { version = "^1.9.0", markers = "sys_platform == 'linux'" }
71+
asyncpg = { version = "^0.29.0", optional = true }
72+
73+
[tool.poetry.group.dev.dependencies]
74+
sphinx = "*"
75+
sphinx-prompt = "*"
76+
sphinx-rtd-theme = "^3.0.0"
77+
sphinxcontrib-trio = "^1.1.2"
78+
pytest = "^8.3.3"
79+
tox = "^4.21.2"
80+
pytest-asyncio = "^0.24.0"
81+
pytest-mock = "^3.14.0"
82+
black = "^23.12.1"
83+
84+
[tool.poetry.extras]
85+
postgres = ["asyncpg"]
86+
doc = ["sphinx", "sphinx-prompt", "sphinx-rtd-theme", "sphinxcontrib-trio"]
87+
88+
[tool.poetry.scripts]
3989
redbot = "redbot.__main__:main"
4090
redbot-setup = "redbot.setup:run_cli"
4191

42-
[project.entry-points.pytest11]
92+
[tool.poetry.plugins.pytest11]
4393
red-discordbot = "redbot.pytest"
4494

45-
[tool.black]
46-
line-length = 99
47-
required-version = '23'
48-
target-version = ['py38']
49-
include = '\.py$'
50-
force-exclude = '''
51-
/(
52-
redbot\/vendored
53-
)/
54-
'''
55-
56-
[tool.pytest.ini_options]
57-
asyncio_mode = 'auto'
95+
[tool.poetry-git-version-plugin]
96+
alpha_version_format = "{version}.dev{distance}+{commit_hash}"
97+
98+
[build-system]
99+
requires = ["poetry-core"]
100+
build-backend = "poetry.core.masonry.api"

requirements/base.in

Lines changed: 0 additions & 23 deletions
This file was deleted.

requirements/base.txt

Lines changed: 0 additions & 90 deletions
This file was deleted.

requirements/extra-doc.in

Lines changed: 0 additions & 6 deletions
This file was deleted.

requirements/extra-doc.txt

Lines changed: 0 additions & 62 deletions
This file was deleted.

requirements/extra-postgres.in

Lines changed: 0 additions & 3 deletions
This file was deleted.

requirements/extra-postgres.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

requirements/extra-style.in

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)