-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (124 loc) · 4.19 KB
/
pyproject.toml
File metadata and controls
142 lines (124 loc) · 4.19 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
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2025 py7zz contributors
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["py7zz"]
# Include all files in py7zz package (including bin/ directory)
# Binary files will be downloaded during CI build process only
# Binary files are downloaded during CI and should be included automatically via packages = ["py7zz"]
# However, since they're in .gitignore, we use artifacts to include them when they exist
# Note: Each platform wheel will only contain the relevant binary files for that platform
artifacts = [
"py7zz/bin/*",
"py7zz/7zz_version.txt",
]
# Include license and legal files
[tool.hatch.build.targets.wheel.force-include]
"LICENSE" = "LICENSE"
"THIRD_PARTY_NOTICES.md" = "THIRD_PARTY_NOTICES.md"
"LICENSES/LicenseRef-7zip.txt" = "LICENSES/LicenseRef-7zip.txt"
[project]
name = "py7zz"
dynamic = ["version"]
description = "Python wrapper for 7zz CLI tool providing cross-platform compression with multiple archive formats"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.8"
authors = [
{name = "py7zz contributors"},
]
keywords = ["7zip", "compression", "archive", "7z"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Archiving :: Compression",
]
dependencies = [
"packaging>=25.0",
"requests>=2.32.4",
"rich>=14.0.0",
"typer>=0.16.0",
]
[project.optional-dependencies]
dev = []
[project.scripts]
py7zz = "py7zz.cli:main"
[project.urls]
Homepage = "https://github.com/rxchi1d/py7zz"
Issues = "https://github.com/rxchi1d/py7zz/issues"
Repository = "https://github.com/rxchi1d/py7zz"
[tool.ruff]
line-length = 88 # Industry standard (Black's default)
target-version = "py38"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "C4", "SIM"] # Added comprehensions and simplify rules
ignore = ["E501"] # Let formatter handle line length
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "I001"] # Allow unused imports and import sorting in __init__.py
"tests/*.py" = ["B011", "SIM117"] # Allow assert statements and nested with statements in tests
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.9"
show_error_codes = true # Show error codes for easier debugging
warn_return_any = true
warn_unused_configs = true
# Strict configuration for production-ready code
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = false # Disable unreachable code warnings for Python 3.8 compatibility
strict_equality = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
# More tolerant for development phase
addopts = "-v --tb=short --strict-markers --continue-on-collection-errors"
# Allow tests to be more flexible about warnings
filterwarnings = [
"ignore::UserWarning",
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[dependency-groups]
dev = [
"build>=1.2.2.post1",
"cyclonedx-bom>=5.5.0",
"mypy>=1.14.1",
"pip-licenses>=4.5.1",
"pre-commit>=3.5.0",
"pytest>=8.3.5",
"pytest-asyncio>=0.24.0",
"pytest-cov>=5.0.0",
"ruff>=0.12.3",
"twine>=6.1.0",
"types-requests>=2.32.0.20241016",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
git_describe_command = "git describe --tags --match='v*'"
local_scheme = "no-local-version"