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 51 52 53 54 55
|
import codecs
import os
from setuptools import setup, find_packages
long_desc = '''
Raritan Python client library for JSON-RPC interface
This Python library includes the JSON-RPC inferface for interacting with
the PDU models PX2, PX3 BCM and EMX from Raritan and is usable with
Python3.
The interface gives you the possibility to request current live data from an
pdu and their sensors but also to set up various data like SMTP, NTP, system
and asset data.
'''
# https://packaging.python.org/single_source_version/
base_dir = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(base_dir, "pdu-python-api/raritan", "version.py"), "rb") as f:
exec(f.read(), about)
# currently not used
def read(fname):
return codecs.open(os.path.join(base_dir, fname), encoding="utf-8").read()
setup(
name = 'raritan-json-rpc',
version = '{}.{}'.format(about['__sdk_version__'], about['__sdk_subversion__']),
description = about['__description__'],
long_description = long_desc,
license = about['__license__'],
author = about['__author__'],
author_email = about['__email__'],
classifiers = [
about['__status__'],
'License :: OSI Approved :: {}'.format(about['__license__'],),
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Utilities',
],
keywords = 'Raritan BCM EMX PX2 PX3 JSON-RPC',
url = about['__url__'],
packages = find_packages('pdu-python-api'),
platforms = 'any',
package_dir = {'': 'pdu-python-api'},
install_requires = [
'uritools'
])
|