1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
"""
The setup.py file for PyNUTClient
"""
# Based on https://medium.com/@VersuS_/automate-pypi-releases-with-github-actions-4c5a9cfe947d
# See also .github/workflows/PyNUTClient.yml for active packaging steps
from setuptools import setup, find_packages
import codecs
import os
here = os.path.abspath(os.path.dirname(__file__))
# README.txt appears from README.adoc during package or CI build
with codecs.open(os.path.join(here, "README.txt"), encoding="utf-8") as fh:
long_description = "\n" + fh.read()
setup(
name = "pynutclient", ### "PyNUTClient" lower-cased due to PEP-0625
version = '@NUT_SOURCE_GITREV_NUMERIC@',
author = "The Network UPS Tools project",
license = "GPL-3.0-or-later",
license_files = ('LICENSE-GPL3',),
author_email = "jimklimov+nut@gmail.com",
description = "Python client bindings for NUT",
url = "https://github.com/networkupstools/nut/tree/master/scripts/python/module",
long_description_content_type = "text/plain", # NOTE: No asciidoc so far, see https://packaging.python.org/en/latest/specifications/core-metadata/
long_description = long_description,
packages = find_packages(),
#py_modules = ['PyNUT'],
package_dir = {'PyNUT': 'PyNUTClient'},
#data_files = [('', ['tox.ini'])],
#scripts = ['PyNUTClient/test_nutclient.py', 'PyNUTClient/__init__.py'],
python_requires = '>=2.6',
keywords = ['pypi', 'cicd', 'python', 'nut', 'Network UPS Tools'],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Topic :: System :: Monitoring",
"Topic :: System :: Systems Administration",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows"
]
)
|