build: move to hatch for packaging

This commit is contained in:
Alexis Métaireau 2024-04-05 15:17:00 +02:00 committed by Luc Didry
parent 02892bec17
commit 01b5cf06de
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C
2 changed files with 24 additions and 10 deletions

3
.gitignore vendored
View file

@ -5,4 +5,5 @@ venv
.env
public
*.swp
config.yaml
config.yaml
dist

View file

@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "argos-monitoring"
version = "0.1.0"
dynamic = ["version"]
description = "Distributed supervision tool for HTTP."
authors = [
{ name = "Alexis Métaireau", email = "alexis@notmyidea.org" },
@ -12,10 +12,12 @@ authors = [
]
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3.11",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Intended Audience :: System Administrators",
]
dependencies = [
@ -49,7 +51,7 @@ dev = [
"respx>=0.20,<1",
"ruff==0.1.5,<1",
"sphinx-autobuild",
"build>=1.2.1"
"hatch==1.9.4",
]
docs = [
"cogapp",
@ -66,9 +68,20 @@ repository = "https://framagit.org/framasoft/framaspace/argos"
"Funding" = "https://framasoft.org/en/#support"
"Tracker" = "https://framagit.org/framasoft/framaspace/argos/-/issues"
[tool.setuptools]
[tool.hatch.build.targets.sdist]
include = [
"/argos",
"/docs",
"/tests",
]
[tool.hatch.build.targets.wheel]
packages = ["argos"]
[tool.hatch.version]
path = "argos/__init__.py"
[project.scripts]
argos = "argos.commands:cli"