File: setup.py

package info (click to toggle)
raritan-json-rpc-sdk 4.0.20%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 57,236 kB
  • sloc: cs: 223,121; perl: 117,786; python: 26,872; javascript: 6,544; makefile: 27
file content (58 lines) | stat: -rw-r--r-- 2,112 bytes parent folder | download
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
56
57
58
import codecs
import os

from setuptools import setup, find_packages

long_desc = """
Xerus™ Python client library for JSON-RPC interface

This Python library includes the JSON-RPC interface for interacting with
the PDU models PX2, PX3, PX4 BCM, EMX and Transfer Switches 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          = f"{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__"],
          f"License :: OSI Approved :: {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",
          "Programming Language :: Python :: 3.9",
          "Programming Language :: Python :: 3.10",
          "Topic :: Utilities",
      ],
      keywords    = "Xerus™ BCM EMX PX2 PX3 PX4 JSON-RPC",
      url         = about["__url__"],
      packages    = find_packages("pdu-python-api"),
      platforms   = "any",
      package_dir = {"": "pdu-python-api"},
      install_requires = [
          "uritools",
          "zeroconf",
      ])