-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (33 loc) · 1.28 KB
/
setup.py
File metadata and controls
39 lines (33 loc) · 1.28 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
from setuptools import setup
import os
from setuptools.command.install import install
from subprocess import check_call
class PreInstallCommand(install):
"""Pre-installation for installation mode."""
def run(self):
check_call("apt-get install pkg-config libboost-python-dev libboost-thread-dev libbluetooth-dev libglib2.0-dev python3-dev".split())
install.run(self)
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(name='cbpi4-BLEHydrom',
version='1.0.0',
description='CraftBeerPi4 Plugin for Hydrom and Tilt (BLE connection)',
author='Alexander Vollkopf',
author_email='avollkopf@web.de',
url='https://github.com/avollkopf/cbpi4-BLEHydrom',
include_package_data=True,
package_data={
# If any package contains *.txt or *.rst files, include them:
'': ['*.txt', '*.rst', '*.yaml'],
'cbpi4-BLEHydrom': ['*','*.txt', '*.rst', '*.yaml']},
packages=['cbpi4-BLEHydrom'],
install_requires=[
'bleak',
'construct'
],
long_description=long_description,
long_description_content_type='text/markdown'
)