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 2124b7c
Show file tree
Hide file tree
Showing 17 changed files with 2,209 additions and 377 deletions.
12 changes: 5 additions & 7 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ build:
os: "ubuntu-22.04"
tools:
python: "3.8"

python:
install:
- method: pip
path: .
extra_requirements:
- doc
jobs:
post_create_environment:
- python -m pip install poetry
post_install:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install
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.

110 changes: 84 additions & 26 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.dev9+g43c411e"
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:/Cog-Creators/Red-DiscordBot"
"Discord Server" = "https://discord.gg/red"
"Documentation" = "https://docs.discord.red"
Expand All @@ -35,13 +43,62 @@ dynamic = ["version", "requires-python", "dependencies", "optional-dependencies"
"Source Code" = "https:/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.21.2"
pytest-mock = "^3.14.0"
black = "^23.12.1"
asyncpg = "^0.29.0"

[tool.poetry.extras]
postgres = ["asyncpg"]

[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.poetry-git-version-plugin]
alpha_version_format = "{version}.dev{distance}+g{commit_hash}"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.black]
line-length = 99
required-version = '23'
Expand All @@ -53,5 +110,6 @@ force-exclude = '''
)/
'''


[tool.pytest.ini_options]
asyncio_mode = 'auto'
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.

Loading

0 comments on commit 2124b7c

Please sign in to comment.