11[build-system ]
2- requires = [
3- " setuptools>=62.6,<=78.1.0" ,
4- " setuptools-scm>=6.2,<=8.2.1" ,
5- ]
6- build-backend = " setuptools.build_meta"
2+ requires = [" hatchling" , " hatch-vcs" ]
3+ build-backend = " hatchling.build"
74
85[project ]
96name = " py-cord"
@@ -12,15 +9,14 @@ authors = [
129]
1310description = " A Python wrapper for the Discord API"
1411readme = {content-type = " text/x-rst" , file = " README.rst" }
15- requires-python = " >=3.9 "
12+ requires-python = " >=3.10 "
1613license = {text = " MIT" }
1714classifiers = [
1815 " Development Status :: 5 - Production/Stable" ,
1916 " License :: OSI Approved :: MIT License" ,
2017 " Intended Audience :: Developers" ,
2118 " Natural Language :: English" ,
2219 " Operating System :: OS Independent" ,
23- " Programming Language :: Python :: 3.9" ,
2420 " Programming Language :: Python :: 3.10" ,
2521 " Programming Language :: Python :: 3.11" ,
2622 " Programming Language :: Python :: 3.12" ,
@@ -31,7 +27,11 @@ classifiers = [
3127 " Topic :: Utilities" ,
3228 " Typing :: Typed" ,
3329]
34- dynamic = [" version" , " dependencies" , " optional-dependencies" ]
30+ dynamic = [" version" ]
31+ dependencies = [
32+ " aiohttp>=3.6.0,<4.0" ,
33+ " typing-extensions>=4,<5" ,
34+ ]
3535
3636[project .urls ]
3737Homepage = " https://pycord.dev"
@@ -41,31 +41,31 @@ Documentation = "https://docs.pycord.dev"
4141Tracker = " https://github.com/Pycord-Development/pycord/issues"
4242Funding = " https://patreon.com/pycord"
4343
44- [tool .setuptools ]
45- packages = [
46- " discord" ,
47- " discord.types" ,
48- " discord.sinks" ,
49- " discord.ui" ,
50- " discord.webhook" ,
51- " discord.commands" ,
52- " discord.ext.commands" ,
53- " discord.ext.tasks" ,
54- " discord.ext.pages" ,
55- " discord.ext.bridge" ,
56- " discord.bin" ,
57- ]
44+ # [tool.setuptools]
45+ # packages = [
46+ # "discord",
47+ # "discord.types",
48+ # "discord.sinks",
49+ # "discord.ui",
50+ # "discord.webhook",
51+ # "discord.commands",
52+ # "discord.ext.commands",
53+ # "discord.ext.tasks",
54+ # "discord.ext.pages",
55+ # "discord.ext.bridge",
56+ # "discord.bin",
57+ # ]
5858
59- [tool .setuptools .dynamic ]
60- dependencies = {file = " requirements/_.txt" }
61- readme = {content-type = " text/x-rst" , file = " README.rst" }
59+ # [tool.setuptools.dynamic]
60+ # dependencies = {file = "requirements/_.txt"}
61+ # readme = {content-type = "text/x-rst", file = "README.rst"}
6262
63- [tool .setuptools .dynamic .optional-dependencies ]
64- docs = {file = " requirements/docs.txt" }
65- speed = {file = " requirements/speed.txt" }
66- voice = {file = " requirements/voice.txt" }
63+ # [tool.setuptools.dynamic.optional-dependencies]
64+ # docs = {file = "requirements/docs.txt"}
65+ # speed = {file = "requirements/speed.txt"}
66+ # voice = {file = "requirements/voice.txt"}
6767
68- [tool .setuptools_scm ]
68+ # [tool.setuptools_scm]
6969
7070[tool .black ]
7171target-version = [' py39' , ' py310' , ' py311' , ' py312' , ' py313' ]
@@ -105,3 +105,28 @@ max-line-length = 120
105105
106106[tool .pytest .ini_options ]
107107asyncio_mode = " auto"
108+
109+ [dependency-groups ]
110+ voice = [
111+ " pynacl>=1.3.0,<1.6" ,
112+ ]
113+ speed = [
114+ " aiohttp[speedups]>=3.11.18" ,
115+ " msgspec~=0.19.0" ,
116+ ]
117+ docs = [
118+ " furo==2024.8.6" ,
119+ " levenshtein==0.27.1" ,
120+ " myst-parser[linkify]==4.0.0" ,
121+ " sphinx==8.0.2" ,
122+ " sphinx-autodoc-typehints==2.2.3" ,
123+ " sphinx-copybutton==0.5.2" ,
124+ " sphinx-intl==2.3.1" ,
125+ " sphinxcontrib-trio==1.1.2" ,
126+ " sphinxcontrib-websupport==2.0.0" ,
127+ " sphinxext-opengraph==0.9.1" ,
128+ " typing-extensions==4.13.1" ,
129+ ]
130+ dev = [
131+ " ruff>=0.11.9" ,
132+ ]
0 commit comments