Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (93 loc) · 3.04 KB
/
Copy pathpyproject.toml
File metadata and controls
101 lines (93 loc) · 3.04 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
[build-system]
requires = ["maturin>=1.2,<1.14"]
build-backend = "maturin"
[project]
name = "rtls"
description = "A drop-in replacement for Python's ssl module, backed by rustls"
readme = "README.md"
requires-python = ">=3.7"
license = { file = "LICENSE" }
authors = [
{name = "Ahmed R. TAHRI", email="tahri.ahmed@proton.me"},
]
maintainers = [
{name = "Ahmed R. TAHRI", email="tahri.ahmed@proton.me"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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 :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Internet :: WWW/HTTP",
"Programming Language :: Python :: Free Threading :: 4 - Resilient",
"Environment :: WebAssembly",
"Environment :: WebAssembly :: WASI",
]
dynamic = [
'version'
]
dependencies = [
"wassima>=1,<3",
]
[tool.maturin]
include = [
{ path = "NOTICE", format = "sdist" },
{ path = "tests/**/*", format = "sdist" },
{ path = "src/rtls/py.typed", format = "wheel" },
{ path = "src/rtls/_wasi/_rustls.abi3.so", format = ["sdist", "wheel"] },
]
exclude = [
{ path = "**/__pycache__/**", format = "sdist" },
]
features = ["pyo3/extension-module", "pyo3/abi3-py37", "pyo3/generate-import-lib"]
module-name = "rtls._rustls"
python-source = "src"
manifest-path = "rust/Cargo.toml"
[tool.maturin.sbom]
# Generate a CycloneDX SBOM for the Rust dependency tree.
# Defaults to true when the sbom feature is enabled.
rust = true
# Generate a CycloneDX SBOM for external shared libraries grafted during
# auditwheel repair. Defaults to true when repair copies libraries.
auditwheel = true
[project.urls]
homepage = "https://github.com/jawah/rtls"
[tool.pytest.ini_options]
xfail_strict = true
log_level = "DEBUG"
filterwarnings = [
"error",
'''ignore:Exception ignored in:pytest.PytestUnraisableExceptionWarning''',
'''ignore:Exception in thread:pytest.PytestUnhandledThreadExceptionWarning''',
'''ignore:Unverified HTTPS request is being made to host:urllib3.exceptions.InsecureRequestWarning''',
'''ignore:Exception ignored while finalizing socket:pytest.PytestUnraisableExceptionWarning''',
]
[tool.mypy]
disallow_untyped_calls = true
disallow_untyped_decorators = true
ignore_missing_imports = true
strict_optional = false
warn_redundant_casts = true
warn_unused_ignores = true
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"W", # pycodestyle
"I", # isort
"U", # pyupgrade
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]