-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·57 lines (49 loc) · 1.43 KB
/
setup.py
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
#!/usr/bin/env python3
#
# BSM Python library and command line tool
#
# Copyright (C) 2020 chargeIT mobility GmbH
#
# SPDX-License-Identifier: Apache-2.0
from setuptools import setup, find_packages
# We have a dependency to pySunSpec which is not distributed via pypi.org.
# Dependency links for having a dependency to a Git repo are deprecated so
# we've assimilated it as a submodule as follows:
#
# 1. We include it as a Git submodule under 'external'.
#
# 2. We symlink to the actual 'sunspec' module from our top-level module.
#
# 3. We've incorporated the relevant settings from pySunSpec's setup.py
# into ours.
#
# Suggestions for improvements are welcome.
setup(
name='bauer_bsm',
setup_requires=[
'setuptools_scm',
],
# pySunSpec requires Python 3 in version 3.5 or greater. As we do not test
# on Python 2, we ignore the Python 2 support from pySunSpec.
python_requires='>=3.5',
install_requires=[
'aenum',
'ecdsa',
'pyserial',
],
packages=find_packages(),
# Include model data from pySunSpec and us.
package_data={
'bauer_bsm.bsm': ['models/*'],
'bauer_bsm.sunspec': ['models/smdx/*'],
},
entry_points={
'console_scripts': [
'bsmtool=bauer_bsm.cli.bsmtool:main',
],
},
use_scm_version={
'write_to': 'bauer_bsm/version.py',
},
# TODO: Add package description and metadata.
)