-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
112 lines (95 loc) · 2.49 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
106
107
108
109
110
111
112
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "repairwheel"
dynamic = ["version"]
description = "Repair any wheel, anywhere"
readme = "README.md"
requires-python = ">= 3.8"
license.file = "LICENSE"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
urls.homepage = "https://github.com/jvolkman/repairwheel"
dependencies = [
"delvewheel >= 1.3.6",
"macholib >= 1.16",
"packaging >= 20.9",
"pyelftools >= 0.24",
"pefile >= 2023.2.7", # for delvewheel
]
[project.scripts]
repairwheel = "repairwheel.repair:main"
[tool.black]
line-length = 127
target-version = ["py312", "py311", "py310", "py39", "py38"]
extend-exclude = '''
src/repairwheel/_vendor
'''
[tool.ruff]
line-length = 127
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C9", # mccabe
"E", # pycodestyle
"F", # pyflakes
"PGH", # pygrep-hooks
"RUF", # ruff
"UP", # pyupgrade
"W", # pycodestyle
"W", # pycodestyle
"YTT", # flake8-2020
]
ignore = [
"C901", # Function is too complex
"RUF012", # https://github.com/astral-sh/ruff/issues/5243
]
src = ["src"]
target-version = "py38"
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
lines-between-types = 1
lines-after-imports = 2
known-first-party = ["build"]
[tool.hatch]
[tool.hatch.version]
path="src/repairwheel/__init__.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/.*",
]
[tool.hatch.build.targets.wheel]
packages = ["src/repairwheel"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.envs.test]
dependencies = [
"pytest",
]
[tool.hatch.envs.test.scripts]
test = "pytest -v tests/ --ignore tests/gen_check/"
generate = "pytest -v tests/gen_check/test_generate.py"
check = "pytest -v tests/gen_check/test_check.py"
[tool.vendoring]
destination = "src/repairwheel/_vendor/"
requirements = "src/repairwheel/_vendor/vendor.txt"
namespace = "repairwheel._vendor"
protected-files = ["__init__.py", "vendor.txt"]
patches-dir = "tools/vendoring/patches"
[tool.vendoring.transformations]
drop = [
"bin/",
"delocate/tests/",
]