-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
47 lines (38 loc) · 1.36 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
from distutils.core import setup
from glob import glob # Needed for the examples below only
import setuptools
from energy_usage import VERSION
setup(
name="energy-usage",
version=VERSION,
description="Records realtime energy usage from a Glowmarkt MQTT feed into influxdb",
author="Ben Roberts",
author_email="[email protected]",
url="https://gitlab.sihnon.net/ben/energy-usage",
# Distribute all python packages within this repository except tests
packages=setuptools.find_packages(exclude=['tests*']),
# If necessary, include non-python files stored in your package
package_data={
'energy_usage': ['config_default.yaml'],
},
# Because the package contains non-python files, it must be installed
# in uncompressed format, not as a zip-format .egg file
zip_safe=False,
# Executable scripts
# Wrappers will be automatically generated using the correct python shebang
# to run the methods indicated
entry_points={
'console_scripts': [
'energy-usage=energy_usage.main:main',
]
},
# Extra content like lib directories, config files from outside of the package
data_files=[
('/etc/energy-usage/config.yaml.example', ['config.yaml.example']),
],
install_requires=[
'confuse~=1.3',
'influxdb~=5.3',
'paho-mqtt~=1.5',
]
)