File: setup.py

package info (click to toggle)
pysmarty2 0.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180 kB
  • sloc: python: 348; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 1,094 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
"""Setup for pysmarty2 package."""

import os
import setuptools

# Read README.md
with open("README.md", "r", encoding="utf-8") as fh:
    LONG_DESCRIPTION = fh.read()

# Ensure requirements.txt exists before reading it
if os.path.exists("requirements.txt"):
    with open("requirements.txt", "r", encoding="utf-8") as f:
        REQUIREMENTS = [line.strip() for line in f if line.strip()]
else:
    REQUIREMENTS = []


setuptools.setup(
    name="pysmarty2",
    version="0.10.3",
    author="Martins Sipenko, Theo Nicolaum",
    author_email="martins.sipenko@gmail.com",
    description="Python API for Salda Smarty Modbus TCP",
    long_description=LONG_DESCRIPTION,
    long_description_content_type="text/markdown",
    url="https://github.com/martinssipenko/pysmarty2",
    packages=setuptools.find_packages(),
    include_package_data=True,
    install_requires=list(val.strip() for val in open('requirements.txt')),
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
    ],
)