Skip to content

Commit

Permalink
Convert project to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
tekulvw committed Oct 8, 2024
1 parent d3887b5 commit 2124aa2
Show file tree
Hide file tree
Showing 16 changed files with 2,200 additions and 382 deletions.
33 changes: 0 additions & 33 deletions MANIFEST.in

This file was deleted.

2,114 changes: 2,114 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

121 changes: 82 additions & 39 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[tool.poetry]
name = "red-discordbot"

[project]
name = "Red-DiscordBot"
description = "A highly customisable Discord bot"
# This is bumped automatically by release workflow (`.github/workflows/scripts/bump_version.py`)
version = "3.5.13.dev8+d3887b5"
description = "A highly customizable Discord bot"
authors = ["Cog Creators"]
readme = "README.md"
authors = [{ name = "Cog Creators" }]
license = "GPL-3.0-only"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Communications :: Chat",
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Communications :: Chat",
]
packages = [{ include = "redbot" }]
include = [
"LICENSE",
"redbot/**/*.LICENSE",
"redbot/**/locales/*.po",
"redbot/**/data/*",
"redbot/**/*.export",
"redbot/py.typed",
]
dynamic = ["version", "requires-python", "dependencies", "optional-dependencies"]

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

[project.scripts]
[tool.poetry.dependencies]
python = ">= 3.8.1, < 3.12"
aiohttp = "^3.10.9"
aiohttp-json-rpc = "^0.13.3"
apsw = "^3.46.1.0"
babel = "^2.16.0"
brotli = "^1.1.0"
click = "^8.1.7"
discord-py = "^2.4.0"
markdown = "^3.7"
orjson = "^3.10.7"
packaging = "^24.1"
platformdirs = "^4.3.6"
psutil = "^6.0.0"
python-dateutil = "^2.9.0.post0"
pyyaml = "^6.0.2"
rapidfuzz = "^3.8"
red-commons = "^1.0.0"
red-lavalink = "^0.11.0"
rich = "^13.9.2"
schema = "^0.7.7"
typing-extensions = "^4.12.2"
yarl = "^1.13.1"
uvloop = { version = "^0.20.0", markers = "sys_platform != 'win32' and platform_python_implementation == 'CPython'" }
distro = { version = "^1.9.0", markers = "sys_platform == 'linux'" }
asyncpg = { version = "^0.29.0", optional = true }

[tool.poetry.group.dev.dependencies]
sphinx = "*"
sphinx-prompt = "*"
sphinx-rtd-theme = "^3.0.0"
sphinxcontrib-trio = "^1.1.2"
pytest = "^8.3.3"
tox = "^4.21.2"
pytest-asyncio = "^0.24.0"
pytest-mock = "^3.14.0"
black = "^23.12.1"

[tool.poetry.extras]
postgres = ["asyncpg"]
doc = ["sphinx", "sphinx-prompt", "sphinx-rtd-theme", "sphinxcontrib-trio"]

[tool.poetry.scripts]
redbot = "redbot.__main__:main"
redbot-setup = "redbot.setup:run_cli"

[project.entry-points.pytest11]
[tool.poetry.plugins.pytest11]
red-discordbot = "redbot.pytest"

[tool.black]
line-length = 99
required-version = '23'
target-version = ['py38']
include = '\.py$'
force-exclude = '''
/(
redbot\/vendored
)/
'''

[tool.pytest.ini_options]
asyncio_mode = 'auto'
[tool.poetry-git-version-plugin]
alpha_version_format = "{version}.dev{distance}+{commit_hash}"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
23 changes: 0 additions & 23 deletions requirements/base.in

This file was deleted.

90 changes: 0 additions & 90 deletions requirements/base.txt

This file was deleted.

6 changes: 0 additions & 6 deletions requirements/extra-doc.in

This file was deleted.

62 changes: 0 additions & 62 deletions requirements/extra-doc.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements/extra-postgres.in

This file was deleted.

6 changes: 0 additions & 6 deletions requirements/extra-postgres.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements/extra-style.in

This file was deleted.

8 changes: 0 additions & 8 deletions requirements/extra-style.txt

This file was deleted.

6 changes: 0 additions & 6 deletions requirements/extra-test.in

This file was deleted.

Loading

0 comments on commit 2124aa2

Please sign in to comment.