karanage/client/python/karanage_tools/setup.py

67 lines
1.7 KiB
Python
Raw Normal View History

2023-01-04 01:00:34 +01:00
#!/usr/bin/python3
# -*- coding: utf-8 -*-
##
## @author Edouard DUPIN
##
## @copyright 2012, Edouard DUPIN, all right reserved
##
## @license APACHE v2.0 (see license file)
##
from setuptools import setup
import os
def readme():
with open("README.md") as f:
return f.read()
def read_version_file():
if not os.path.isfile("version.txt"):
return ""
file = open("version.txt", "r")
data_file = file.read()
file.close()
if len(data_file) > 4 and data_file[-4:] == "-dev":
data_file = data_file[:-4]
return data_file
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
setup(
2023-02-21 23:13:20 +01:00
name="karanage_tools",
version=read_version_file(),
description="Karanage generic tools",
long_description=readme(),
url="https://gitea.atria-soft.org/kangaroo-and-rabbit/karanage",
author="Edouard DUPIN",
author_email="yui.heero@gmail.com",
license="MPL-2",
2023-02-21 23:13:20 +01:00
packages=["karanage_tools"],
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python",
"Operating System :: POSIX",
"Topic :: Software Development :: Libraries",
],
install_requires=["karanage==" + read_version_file()],
long_description_content_type="text/markdown",
keywords="system cpu status",
scripts=[
"bin/karanage-system",
"bin/karanage-tools-state-get",
"bin/karanage-tools-state-history-get",
],
include_package_data=True,
zip_safe=False,
)
# To developp: sudo ./setup.py install
# sudo ./setup.py develop
2023-02-23 18:20:53 +01:00
# To register:
# https://packaging.python.org/en/latest/tutorials/packaging-projects/
# python3 -m build
# python3 -m twine upload dist/*