switch to pyproject.toml for dynamic versioning
Some checks failed
Python package / lint (push) Failing after 7s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 8s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Sign the Python 🐍 distribution 📦 with Sigstore and upload them to GitHub Release (push) Has been skipped
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to TestPyPI (push) Failing after 2s

This commit is contained in:
Brendan Haines 2024-09-14 17:05:18 -06:00
parent 0dd4e39fda
commit f750ec9040
2 changed files with 23 additions and 28 deletions

View File

@ -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] [tool.black]
line-length = 120 line-length = 120
exclude = ''' exclude = '''

View File

@ -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",
],
},
)