craftbeerpi4-pione/setup.py

75 lines
2.2 KiB
Python
Raw Normal View History

2019-01-05 20:43:48 +01:00
from setuptools import setup, find_packages
2021-01-22 23:25:20 +01:00
from cbpi import __version__
import platform
2019-01-05 20:43:48 +01:00
# read the contents of your README file
2022-05-10 17:52:23 +02:00
from os import popen, path
localsystem = platform.system()
raspberrypi=False
if localsystem == "Linux":
command="cat /proc/cpuinfo | grep Raspberry"
model=popen(command).read()
if len(model) != 0:
raspberrypi=True
2022-05-10 17:52:23 +02:00
# read the contents of your README file
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
2022-05-09 17:10:36 +02:00
setup(name='cbpi4',
2021-01-22 23:25:20 +01:00
version=__version__,
2022-05-10 17:52:23 +02:00
description='CraftBeerPi4 Brewing Software',
author='Manuel Fritsch / Alexander Vollkopf',
2019-01-05 20:43:48 +01:00
author_email='manuel@craftbeerpi.com',
url='http://web.craftbeerpi.com',
2022-05-10 17:52:23 +02:00
project_urls={
'Documentation': 'https://openbrewing.gitbook.io/craftbeerpi4_support/'},
2019-01-05 20:43:48 +01:00
packages=find_packages(),
include_package_data=True,
package_data={
# If any package contains *.txt or *.rst files, include them:
'': ['*.txt', '*.rst', '*.yaml'],
'cbpi': ['*','*.txt', '*.rst', '*.yaml']},
2022-02-26 22:03:38 +01:00
python_requires='>=3.9',
2022-05-10 17:52:23 +02:00
long_description=long_description,
long_description_content_type='text/markdown',
2019-01-05 20:43:48 +01:00
install_requires=[
"aiohttp==3.8.1",
2019-01-05 20:43:48 +01:00
"aiohttp-auth==0.1.1",
"aiohttp-route-decorator==0.1.4",
"aiohttp-security==0.4.0",
"aiohttp-session==2.11.0",
"aiohttp-swagger==1.0.16",
"aiojobs==1.0.0 ",
2022-02-26 22:03:38 +01:00
"aiosqlite==0.17.0",
"cryptography==36.0.1",
"requests==2.27.1",
"voluptuous==0.12.2",
2021-01-22 23:25:20 +01:00
"pyfiglet==0.8.post1",
2022-02-26 22:03:38 +01:00
'click==8.0.4',
'shortuuid==1.0.8',
'tabulate==0.8.9',
2021-02-06 00:40:55 +01:00
'asyncio-mqtt',
2022-02-26 22:03:38 +01:00
'PyInquirer==1.0.3',
'colorama==0.4.4',
'psutil==5.9.0',
2022-05-09 17:10:36 +02:00
'cbpi4gui',
'importlib_metadata',
'numpy==1.22.2',
'pandas==1.4.1'] + (
['RPi.GPIO==0.7.1'] if raspberrypi else [] ),
2019-01-05 20:43:48 +01:00
dependency_links=[
2021-02-02 21:57:54 +01:00
'https://testpypi.python.org/pypi',
2019-01-05 20:43:48 +01:00
],
entry_points = {
"console_scripts": [
"cbpi=cbpi.cli:main",
]
}
)