Skip to content

Commit

Permalink
Modernize packaging setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed Aug 14, 2022
1 parent d3888c9 commit 8f9d88e
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U setuptools pip
python -m pip install -e .[tests]
python -m pip install -e .[test]
- name: Tests
run: "python -m pytest"
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ python:
- method: pip
path: .
extra_requirements:
- docs
- doc
52 changes: 51 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,57 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "Red-Lavalink"
description = "Lavalink client library for Red-DiscordBot"
license = { file = "LICENSE" }
readme = "README.rst"
authors = [
{ name = "Cog Creators" },
{ name = "tekulvw" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"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 :: Multimedia :: Sound/Audio :: Players",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.8.1"
dependencies = [
"aiohttp>=3.6.0",
"discord.py>=1.5.1",
"Red-Commons>=1.0.0,<2",
]
dynamic = ["version"]

[project.optional-dependencies]
test = [
"pytest>=7",
"pytest-asyncio>=0.19",
]
doc = [
"sphinx",
"sphinxcontrib-trio",
"sphinx_rtd_theme",
]

[project.urls]
"Homepage" = "https://github.com/Cog-Creators/Red-Lavalink"
"Discord Server" = "https://discord.gg/red"
"Documentation" = "https://red-lavalink.readthedocs.io"
"Donate on Patreon" = "https://www.patreon.com/Red_Devs"
"Issue Tracker" = "https://github.com/Cog-Creators/Red-Lavalink/issues"
"Source Code" = "https://github.com/Cog-Creators/Red-Lavalink"

[tool.black]
line-length = 99
required-version = '22.6.0'
Expand Down
37 changes: 0 additions & 37 deletions setup.cfg

This file was deleted.

0 comments on commit 8f9d88e

Please sign in to comment.