fix: add proper package filtering to pyproject.toml
Prevent unrelated packages from being bundled in the distribution by adding include=['config_auditor*'] and exclude=['tests*', 'fixtures*']
This commit is contained in:
60
app/pyproject.toml
Normal file
60
app/pyproject.toml
Normal file
@@ -0,0 +1,60 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=61.0", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "config_auditor"
|
||||
version = "1.0.0"
|
||||
description = "A CLI tool that scans project configuration files and detects issues"
|
||||
readme = "README.md"
|
||||
license = {text = "MIT"}
|
||||
requires-python = ">=3.9"
|
||||
authors = [
|
||||
{name = "Config Auditor Team", email = "dev@example.com"}
|
||||
]
|
||||
keywords = ["config", "cli", "audit", "scanner"]
|
||||
classifiers = [
|
||||
"Development Status :: 3 - Alpha",
|
||||
"Environment :: Console",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
]
|
||||
dependencies = [
|
||||
"click>=8.0.0",
|
||||
"PyYAML>=6.0",
|
||||
"toml>=0.10.0",
|
||||
"requests>=2.31.0",
|
||||
"semver>=3.0.0",
|
||||
"packaging>=23.0",
|
||||
"ollama>=0.1.41",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
config-auditor = "config_auditor.cli:main"
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest>=7.0.0",
|
||||
"pytest-cov>=4.0.0",
|
||||
"pytest-mock>=3.10.0",
|
||||
"ruff>=0.1.0",
|
||||
"mypy>=1.0.0",
|
||||
"types-requests>=2.25.0",
|
||||
]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["."]
|
||||
include = ["config_auditor*"]
|
||||
exclude = ["tests*", "fixtures*"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
python_files = ["test_*.py"]
|
||||
python_classes = ["Test*"]
|
||||
python_functions = ["test_*"]
|
||||
addopts = "-v --cov=config_auditor --cov-report=term-missing"
|
||||
Reference in New Issue
Block a user