-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
127 lines (113 loc) · 3.23 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[project]
name="btclib_libsecp256k1"
version="0.4.0"
description="Simple python bindings to libsecp256k1"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.7"
authors = [
{name = "Giacomo Caironi", email = "[email protected]"},
]
keywords=["bitcoin", "libsecp256k1"]
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"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",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Security :: Cryptography",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = ['cffi>=1.0.0']
[project.urls]
homepage = "https://btclib.org"
documentation = "https://btclib.readthedocs.io/"
repository = "https://github.com/btclib-org/btclib_libsecp256k1"
download = "https://github.com/btclib-org/btclib_libsecp256k1/releases"
changelog = "https://github.com/btclib-org/btclib_libsecp256k1/HISTORY.md"
issues = "https://github.com/btclib-org/btclib_libsecp256k1/issues"
pull_requests = "https://github.com/btclib-org/btclib_libsecp256k1/pulls"
[build-system]
requires = ["hatchling", "cffi>=1.0.0", 'setuptools; python_version>="3.12"']
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel.hooks.custom]
path = "scripts/hatch_build.py"
cffi_modules = ["scripts/cffi_build.py:ffi_ext"]
[tool.hatch.envs.dev]
detached = true
dependencies = [
"isort",
"black",
"pre-commit",
"nox",
"cibuildwheel"
]
[tool.hatch.envs.dev.scripts]
format = [
"isort .",
"black ."
]
pre_commit = [
"pre-commit run --all-files"
]
[tool.hatch.envs.test]
dependencies = [
"pytest",
"pytest-cov"
]
[tool.mypy]
strict = false
show_column_numbers = true
show_error_codes = true
exclude = [
"build",
]
[tool.isort]
profile = "black"
skip = ["secp256k1", ".nox"]
[tool.black]
force_exclude = "secp256k1"
[tool.pylint.format]
max-line-length = 130
[tool.pylint.master]
extension-pkg-whitelist="_btclib_libsecp256k1"
min-similarity-lines=6
disable = ["duplicate-code"] # R0801
[tool.flake8]
max-line-length = 130
exclude = [
".git",
"__pycache__",
"build",
"dist",
"*egg",
".nox",
"secp256k1",
]
select = ["C", "E", "F", "W", "B"]
# # E203 and W503 are not PEP 8 compliant
ignore = ["E203", "W503"]
# # emit a warning for high McCabe complexity
# # See https://en.wikipedia.org/wiki/Cyclomatic_complexity
max-complexity = 10
per-file-ignores = "__init__.py:F401"
[tool.pytest.ini_options]
python_files = "test*.py"
python_functions = "test*"
norecursedirs = ["secp256k1"]
[tool.cibuildwheel]
test-requires = ["pytest"]
test-command = "pytest {project}/tests/"
build-frontend = "build"
archs = "auto64"