-
-
Notifications
You must be signed in to change notification settings - Fork 493
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (135 loc) · 3.61 KB
/
pyproject.toml
File metadata and controls
152 lines (135 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[build-system]
requires = [
"setuptools>=77.0.3,<=80.9.0",
"setuptools-scm>=9.2,<=9.2.2",
]
build-backend = "setuptools.build_meta"
[project]
name = "py-cord"
authors = [
{ name = "Pycord Development" }
]
description = "A Python wrapper for the Discord API"
readme = { content-type = "text/x-rst", file = "README.rst" }
requires-python = ">=3.10, <3.15"
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Typing :: Typed",
]
dynamic = ["version", "dependencies", "optional-dependencies"]
[project.urls]
Homepage = "https://pycord.dev"
Changelog = "https://docs.pycord.dev/en/master/changelog.html"
Source = "https://github.com/Pycord-Development/pycord"
Documentation = "https://docs.pycord.dev"
Tracker = "https://github.com/Pycord-Development/pycord/issues"
Funding = "https://patreon.com/pycord"
[tool.setuptools]
packages = [
"discord",
"discord.types",
"discord.sinks",
"discord.ui",
"discord.webhook",
"discord.commands",
"discord.ext.commands",
"discord.ext.tasks",
"discord.ext.pages",
"discord.ext.bridge",
"discord.bin",
"discord.voice",
]
[tool.setuptools.dynamic]
dependencies = { file = "requirements/_.txt" }
readme = { content-type = "text/x-rst", file = "README.rst" }
[tool.setuptools.dynamic.optional-dependencies]
docs = { file = "requirements/docs.txt" }
speed = { file = "requirements/speed.txt" }
voice = { file = "requirements/voice.txt" }
[dependency-groups]
dev = [
"pylint~=4.0.5",
"mypy~=1.20.0",
"coverage~=7.10",
"pre-commit==4.5.1",
"codespell==2.4.2",
"bandit==1.9.4",
"flake8==7.3.0",
"tox>=4.27.0",
"tox-gh>=1.5.0"
]
test = [
"pytest~=9.0.1",
"pytest-asyncio~=1.3.0",
]
[tool.setuptools_scm]
[tool.black]
target-version = ['py310', 'py311', 'py312', 'py313', 'py314']
[tool.isort]
profile = "black"
[tool.mypy]
namespace_packages = true
install_types = true
strict = true
show_error_codes = true
#allow_untyped_decorators = true
#allow_untyped_calls = true
ignore_errors = true
[tool.pylint.main]
extension-pkg-whitelist = [
"pydantic",
"ujson"
]
py-version = 3.10
[tool.pylint.messages_control]
enable = [
"bad-indentation",
"line-too-long"
]
disable = [
"protected-access",
"fixme"
]
[tool.pylint.format]
indent-string = ' '
max-line-length = 120
[tool.pytest]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.tox]
requires = ["tox>=4"]
env_list = ["3.14", "3.13", "3.12", "3.11", "3.10", "3.14-novoice"]
[tool.tox.env_run_base]
description = "run unit tests"
commands = [["pytest", { replace = "posargs", default = ["tests"], extend = true }]]
dependency_groups = ["test"]
extras = ["voice"]
[tool.tox.env."3.14-novoice"]
description = "run import and warning tests without the voice extra"
commands = [[
"pytest",
{ replace = "posargs", default = ["tests/voice/test_dependency_behavior.py"], extend = true }
]]
dependency_groups = ["test"]
extras = []
# GitHub actions
[tool.tox.gh.python]
"3.14" = ["3.14", "3.14-novoice"]
"3.13" = ["3.13"]
"3.12" = ["3.12"]
"3.11" = ["3.11"]
"3.10" = ["3.10"]