diff --git a/pyproject.toml b/pyproject.toml index 19a859b..ed35fd5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,26 @@ +[build-system] +requires = ["setuptools", "setuptools-scm"] +build-backend = "setuptools.build_meta" + +[project] +name = "goat_monitor" +authors = [{ name = "Brendan Haines", email = "brendan.haines@gmail.com" }] +description = "Remote monitoring of anything" +readme = "README.md" +requires-python = ">=3.11" # might work with earlier versions, I haven't tried +# keywords = ["one", "two"] +license = { text = "MIT License" } +classifiers = ["Programming Language :: Python :: 3"] +dependencies = ["numpy", "toml", "click", "gotify"] +dynamic = ["version"] + +[project.urls] +homepage = "https://git.brendanhaines.com/brendanhaines/goat_monitor" + +[project.scripts] +goat_monitor = "goat_monitor.goat_monitor:main" + + [tool.black] line-length = 120 exclude = ''' diff --git a/setup.py b/setup.py deleted file mode 100644 index 82075f5..0000000 --- a/setup.py +++ /dev/null @@ -1,28 +0,0 @@ -from setuptools import setup - -with open("README.md", "r") as f: - long_description = f.read() - -setup( - name="goat_monitor", - version="0.0.0", - description="Remote monitoring of anything", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://git.brendanhaines.com/brendanhaines/goat_monitor", - author="Brendan Haines", - author_email="brendan.haines@gmail.com", - license="MIT", - packages=["goat_monitor"], - install_requires=[ - "numpy", - "toml", - "click", - "gotify", - ], - entry_points={ - "console_scripts": [ - "goat_monitor = goat_monitor.goat_monitor:main", - ], - }, -)