[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "packagelister"
authors = [{name="Matt Manes"}]
description = "Determine what 3rd-party packages a project imports."
version = "1.6.0"
requires-python = ">=3.10"
dependencies = ["printbuddies", "pytest", "pathier"]
readme = "README.md"
keywords = [
	"package",
	"import",
	"module"
    ]
classifiers = [
    "Programming Language :: Python :: 3",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
    ]

[project.urls]
"Homepage" = "https://github.com/matt-manes/packagelister"
"Documentation" = "https://github.com/matt-manes/packagelister/tree/main/docs"
"Source code" = "https://github.com/matt-manes/packagelister/tree/main/src/packagelister"

[project.scripts]
packagelister = "packagelister.packagelister_cli:main"
whouses = "packagelister.whouses:main"

[tool.pytest.ini_options]
addopts = [
    "--import-mode=importlib",
    ]
pythonpath = "src"

[tool.hatch.build.targets.sdist]
exclude = [
    ".coverage",
    ".pytest_cache",
    ".vscode",
    "tests"
    ]