refactor to hatch

This commit is contained in:
Waylon Walker 2023-01-03 20:33:45 -06:00
parent 37583a4c5f
commit 00a57bc786
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
33 changed files with 312 additions and 18 deletions

69
pyproject.toml Normal file
View file

@ -0,0 +1,69 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "creeper-adventure"
description = 'a top down 2d adventure game'
readme = "README.md"
requires-python = ">=3.7"
license = "MIT"
keywords = []
authors = [
{ name = "Waylon S. Walker", email = "waylon@waylonwalker.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"click",
"pygame",
"more_itertools",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://github.com/unknown/creeper-adventure#readme"
Issues = "https://github.com/unknown/creeper-adventure/issues"
Source = "https://github.com/unknown/creeper-adventure"
[project.scripts]
creeper-adventure = "creeper_adventure.cli:creeper_adventure"
joytest = "creeper_adventure.joytest:main"
[tool.hatch.version]
path = "creeper_adventure/__about__.py"
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-cov",
]
[tool.hatch.envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=creeper_adventure --cov=tests {args}"
no-cov = "cov --no-cov {args}"
[[tool.hatch.envs.test.matrix]]
python = ["37", "38", "39", "310", "311"]
[tool.coverage.run]
branch = true
parallel = true
omit = [
"creeper_adventure/__about__.py",
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]