Skip to content

Commit 3e6b714

Browse files
authored
Migrate from setuptools to hatch (#1)
1 parent 8fbfa18 commit 3e6b714

File tree

2 files changed

+46
-39
lines changed

2 files changed

+46
-39
lines changed

pyproject.toml

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
11
[build-system]
2-
requires = ["setuptools>=61.0", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "pyuptimekuma"
7+
dynamic = ["version"]
8+
description = "Simple Python wrapper for Uptime Kuma"
9+
readme = "README.md"
10+
license = "MIT"
11+
requires-python = ">=3.8.0"
12+
authors = [
13+
{ name = "Jayakorn Karikan", email = "jayakornk@gmail.com" },
14+
]
15+
keywords = [
16+
"pyuptimekuma",
17+
"setuptools",
18+
]
19+
classifiers = [
20+
"License :: OSI Approved :: MIT License",
21+
"Operating System :: OS Independent",
22+
"Programming Language :: Python :: 3",
23+
]
24+
dependencies = [
25+
"aiodns>=3.0.0",
26+
"aiohttp>=3.8.1,<4.0",
27+
"cchardet>=2.1.7",
28+
"prometheus-client>=0.14.1",
29+
]
30+
31+
[project.optional-dependencies]
32+
dev = [
33+
"black==22.3.0",
34+
"isort==5.10.1",
35+
]
36+
37+
[project.urls]
38+
Homepage = "https://github.com/jayakornk/pyuptimekuma"
39+
40+
[tool.hatch.version]
41+
path = "pyuptimekuma/__init__.py"
42+
43+
[tool.hatch.build.targets.sdist]
44+
include = [
45+
"/pyuptimekuma",
46+
]
47+

setup.cfg

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)