[build-system]
requires = [
  "setuptools>=68",
  "wheel"
]
build-backend = "setuptools.build_meta"

[project]
name = "package-manager"
version = "1.4.1"
description = "Kevin's package-manager tool (pkgmgr)"
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }

authors = [
  { name = "Kevin Veen-Birkenbach", email = "info@veen.world" }
]

# Base runtime dependencies
dependencies = [
  "PyYAML>=6.0"
]

[project.urls]
Homepage = "https://github.com/kevinveenbirkenbach/package-manager"
Source   = "https://github.com/kevinveenbirkenbach/package-manager"

[project.optional-dependencies]
dev = [
  "pytest",
  "mypy"
]

# CLI entrypoint: this is the "pkgmgr" command
[project.scripts]
pkgmgr = "pkgmgr.cli:main"

# -----------------------------
# setuptools configuration
# -----------------------------
# Source layout: all packages live under "src/"
[tool.setuptools]
package-dir = { "" = "src", "config" = "config" }

[tool.setuptools.packages.find]
where = ["src", "."]
include = ["pkgmgr*", "config*"]

[tool.setuptools.package-data]
"config" = ["defaults.yaml"]
