Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (55 loc) · 2.01 KB
/
Copy pathsetup.py
File metadata and controls
58 lines (55 loc) · 2.01 KB
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
#!/usr/bin/env python
"""
Copyright (c) 2025, SunSpec Alliance
All Rights Reserved
"""
from setuptools import setup
setup(
name='pysunspec2',
version='1.3.7',
description='Python SunSpec Tools',
license="Apache Software License, Version 2.0",
author='SunSpec Alliance',
author_email='support@sunspec.org',
url='https://sunspec.org/',
packages=['sunspec2', 'sunspec2.modbus', 'sunspec2.file', 'sunspec2.tests'],
package_data={
# tls_data is a nested tree (ca/, server/<tls ver>/, client/<tls ver>/,
# foreign_pki/); include every level so installed distributions ship
# the full Secure SunSpec Modbus test PKI.
'sunspec2.tests': [
'test_data/*',
'tls_data/*',
'tls_data/*/*',
'tls_data/*/*/*',
],
'sunspec2': ['models/json/*'],
},
scripts=['scripts/suns.py'],
python_requires='>=3.5',
# pyserial is imported unconditionally by sunspec2/modbus/modbus.py, which
# is imported by sunspec2/modbus/client.py -- so it is required for any use
# of the Modbus client (TCP or RTU), not optional. It is kept in
# extras_require['serial'] below too for backwards compatibility.
install_requires=['pyserial>=3.5'],
extras_require={
'serial': ['pyserial'],
'excel': ['openpyxl'],
'test': ['pytest'],
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: Apache Software License",
"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",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
)