1
1
[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"
7
4
8
5
[project ]
9
6
name = " py-cord"
@@ -12,15 +9,14 @@ authors = [
12
9
]
13
10
description = " A Python wrapper for the Discord API"
14
11
readme = {content-type = " text/x-rst" , file = " README.rst" }
15
- requires-python = " >=3.9 "
12
+ requires-python = " >=3.10 "
16
13
license = {text = " MIT" }
17
14
classifiers = [
18
15
" Development Status :: 5 - Production/Stable" ,
19
16
" License :: OSI Approved :: MIT License" ,
20
17
" Intended Audience :: Developers" ,
21
18
" Natural Language :: English" ,
22
19
" Operating System :: OS Independent" ,
23
- " Programming Language :: Python :: 3.9" ,
24
20
" Programming Language :: Python :: 3.10" ,
25
21
" Programming Language :: Python :: 3.11" ,
26
22
" Programming Language :: Python :: 3.12" ,
@@ -31,7 +27,11 @@ classifiers = [
31
27
" Topic :: Utilities" ,
32
28
" Typing :: Typed" ,
33
29
]
34
- dynamic = [" version" , " dependencies" , " optional-dependencies" ]
30
+ dynamic = [" version" ]
31
+ dependencies = [
32
+ " aiohttp>=3.6.0,<4.0" ,
33
+ " typing-extensions>=4,<5" ,
34
+ ]
35
35
36
36
[project .urls ]
37
37
Homepage = " https://pycord.dev"
@@ -41,31 +41,31 @@ Documentation = "https://docs.pycord.dev"
41
41
Tracker = " https://github.com/Pycord-Development/pycord/issues"
42
42
Funding = " https://patreon.com/pycord"
43
43
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
+ # ]
58
58
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"}
62
62
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"}
67
67
68
- [tool .setuptools_scm ]
68
+ # [tool.setuptools_scm]
69
69
70
70
[tool .black ]
71
71
target-version = [' py39' , ' py310' , ' py311' , ' py312' , ' py313' ]
@@ -105,3 +105,28 @@ max-line-length = 120
105
105
106
106
[tool .pytest .ini_options ]
107
107
asyncio_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