craftbeerpi4-pione/setup.py

67 lines
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
from os import popen
localsystem = platform.system()
raspberrypi=False
if localsystem == "Linux":
command="cat /proc/cpuinfo | grep Raspberry"
model=popen(command).read()
if len(model) != 0:
raspberrypi=True
2019-01-05 20:43:48 +01:00
setup(name='cbpi',
2021-01-22 23:25:20 +01:00
version=__version__,
2019-07-27 21:08:19 +02:00
description='CraftBeerPi',
2019-01-05 20:43:48 +01:00
author='Manuel Fritsch',
author_email='manuel@craftbeerpi.com',
url='http://web.craftbeerpi.com',
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']},
2021-03-08 17:55:18 +01:00
python_requires='>=3',
2019-01-05 20:43:48 +01:00
install_requires=[
2021-02-27 20:09:19 +01:00
"aiohttp==3.7.4",
2019-01-05 20:43:48 +01:00
"aiohttp-auth==0.1.1",
"aiohttp-route-decorator==0.1.4",
"aiohttp-security==0.4.0",
2021-01-22 23:25:20 +01:00
"aiohttp-session==2.9.0",
"aiohttp-swagger==1.0.15",
"aiojobs==0.3.0",
"aiosqlite==0.16.0",
"cryptography==3.3.2",
2021-01-22 23:25:20 +01:00
"requests==2.25.1",
"voluptuous==0.12.1",
"pyfiglet==0.8.post1",
2021-01-30 22:29:33 +01:00
'click==7.1.2',
2021-01-22 23:25:20 +01:00
'shortuuid==1.0.1',
2021-01-26 20:21:53 +01:00
'tabulate==0.8.7',
2021-02-06 00:40:55 +01:00
'asyncio-mqtt',
2021-09-22 12:20:56 +02:00
'psutil==5.8.0',
2021-10-16 14:22:04 +02:00
'cbpi4ui',
'importlib_metadata'] + (
['RPi.GPIO==0.7.1'] if raspberrypi else [] ) +
2022-02-12 14:56:31 +01:00
(['numpy==1.22.0'] if (int(platform.python_version_tuple()[1]) >= 9) and (int(platform.python_version_tuple()[0]) == 3) else ['numpy==1.20.3'] ) +
(['pandas==1.4.0'] if (int(platform.python_version_tuple()[1]) >= 9) and (int(platform.python_version_tuple()[0]) == 3) else ['pandas==1.1.5'] ),
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",
]
}
)