2022-07-07 22:17:47 +02:00
|
|
|
from setuptools import setup
|
|
|
|
from codecs import open
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
# "setup.py publish" shortcut.
|
|
|
|
if sys.argv[-1] == "publish":
|
|
|
|
os.system("rm dist/*")
|
|
|
|
os.system("python setup.py sdist")
|
2022-08-03 22:49:10 +02:00
|
|
|
os.system("twine upload dist/*")
|
2022-07-07 22:17:47 +02:00
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
info = {}
|
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
with open(os.path.join(here, "uptime_kuma_api", "__version__.py"), "r", "utf-8") as f:
|
|
|
|
exec(f.read(), info)
|
2022-07-02 16:00:54 +02:00
|
|
|
|
2022-08-03 23:29:11 +02:00
|
|
|
with open("README.md", "r", "utf-8") as f:
|
|
|
|
readme = f.read()
|
|
|
|
|
2022-07-02 16:00:54 +02:00
|
|
|
setup(
|
2022-07-07 22:17:47 +02:00
|
|
|
name=info["__title__"],
|
|
|
|
version=info["__version__"],
|
|
|
|
description="A python wrapper for the Uptime Kuma WebSocket API",
|
2022-08-03 23:29:11 +02:00
|
|
|
long_description=readme,
|
|
|
|
long_description_content_type="text/markdown",
|
2022-07-07 22:17:47 +02:00
|
|
|
url="https://github.com/lucasheld/uptime-kuma-api",
|
|
|
|
author=info["__author__"],
|
|
|
|
author_email="lucasheld@hotmail.de",
|
2022-08-02 21:33:03 +02:00
|
|
|
license=info["__license__"],
|
2022-07-07 22:17:47 +02:00
|
|
|
packages=["uptime_kuma_api"],
|
|
|
|
python_requires=">=3.6, <4",
|
2022-09-07 13:03:10 +02:00
|
|
|
install_requires=[
|
|
|
|
"python-socketio[client]>=5.0.0",
|
|
|
|
"packaging"
|
|
|
|
],
|
2022-07-07 22:17:47 +02:00
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 1 - Planning",
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
"Intended Audience :: Developers",
|
2022-08-02 21:33:03 +02:00
|
|
|
"License :: OSI Approved :: MIT License",
|
2022-07-07 22:17:47 +02:00
|
|
|
"Natural Language :: English",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
"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 :: 3 :: Only",
|
|
|
|
"Topic :: Internet :: WWW/HTTP",
|
|
|
|
"Topic :: Software Development :: Libraries"
|
|
|
|
]
|
2022-07-02 16:00:54 +02:00
|
|
|
)
|