-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
105 lines (89 loc) · 2.42 KB
/
pyproject.toml
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
[build-system]
requires = [
"flit-core>=3.10,<4",
'meson-python>=0.14.0 ; implementation_name == "cpython"',
'meson[ninja]>=1.2.1 ; implementation_name == "cpython"',
]
# conditional build c++ extension
build-backend = "bencode2_build:build_api"
backend-path = ["build_backend"]
[project]
name = "bencode2"
version = "0.3.21"
description = "A fast and correct bencode serialize/deserialize library"
license = { text = "MIT" }
requires-python = ">=3.9,<4.0"
authors = [
{ name = "trim21", email = "trim21me@gmail.com" },
]
readme = 'readme.md'
keywords = [
"bencode",
"bittorrent",
"bit-torrent",
"serialize",
"deserialize",
'p2p',
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
'typing_extensions',
]
[project.urls]
Homepage = "https://github.com/trim21/bencode-py"
Repository = "https://github.com/trim21/bencode-py"
Issues = "https://github.com/trim21/bencode-py/issues"
[tool.meson-python.args]
setup = ['--errorlogs']
dist = ['--verbose']
compile = ['--verbose']
install = [
'--verbose',
# exclude .lib file in windows
# https://github.com/mesonbuild/meson-python/issues/552#issuecomment-1863039032
'--tags=runtime,python-runtime',
]
[tool.pytest.ini_options]
norecursedirs = ['vendor', '.venv', 'build', 'subprojects']
[tool.cibuildwheel]
skip = 'pp* cp39-* *musl*'
enable = ['cpython-freethreading']
environment = { 'UV_LINK_MODE' = 'copy' }
[tool.cibuildwheel.linux]
# before-all = "uv tool install sccache"
# environment-pass = ['SCCACHE_GHA_ENABLED', 'ACTIONS_CACHE_URL', 'ACTIONS_RUNTIME_TOKEN']
# environment = { "PATH" = "$PATH:/root/.local/bin" }
[tool.black]
extend-exclude = 'vendor'
target-version = ['py39']
line-length = 88
[tool.ruff]
target-version = 'py39'
line-length = 88
extend-exclude = ['vendor']
src = ['src', 'tests']
[tool.ruff.lint]
extend-select = ['UP', 'I', 'E', "W", 'FA', 'ANN']
ignore = ['ANN401', 'E721', 'E501']
[tool.ruff.lint.per-file-ignores]
"tests/**" = ['ANN']
"setup.py" = ['ANN']
[tool.coverage.run]
source = [
"src",
]
[tool.mypy]
exclude = ['tests', 'vendor']
python_version = "3.9"
strict = true
disallow_untyped_defs = true
ignore_missing_imports = true
warn_return_any = false
warn_unused_configs = true
show_error_codes = true