-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathsetup.py
29 lines (24 loc) · 849 Bytes
/
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
from setuptools import setup
import os
import re
with open(os.path.join(os.path.abspath(os.path.dirname(
__file__)), 'cbpi4ui', 'version.py'), 'r', encoding='latin1') as fp:
try:
match = re.search('.*\"(.*)\"', fp.readline())
version = match.group(1)
except IndexError:
raise RuntimeError('Unable to determine version.')
print(version)
setup(name='cbpi4ui',
version=version,
description='CraftBeerPi User Interface',
author='Manuel Fritsch',
author_email='manuel@craftbeerpi.com',
url='http://web.craftbeerpi.com',
include_package_data=True,
package_data={
# If any package contains *.txt or *.rst files, include them:
'': ['*.txt', '*.rst', '*.yaml'],
'cbpi4-ui-plugin': ['*','*.txt', '*.rst', '*.yaml']},
packages=['cbpi4ui'],
)