craftbeerpi4-pione/setup.py
avollkopf 04753946d0 Update setup.py
Test with conditional setup.py for 64 bit raspbian
2022-02-11 17:19:41 +01:00

56 lines
1.8 KiB
Python

from setuptools import setup, find_packages
from cbpi import __version__
import platform
setup(name='cbpi',
version=__version__,
description='CraftBeerPi',
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']},
python_requires='>=3',
install_requires=[
"aiohttp==3.7.4",
"aiohttp-auth==0.1.1",
"aiohttp-route-decorator==0.1.4",
"aiohttp-security==0.4.0",
"aiohttp-session==2.9.0",
"aiohttp-swagger==1.0.15",
"aiojobs==0.3.0",
"aiosqlite==0.16.0",
"cryptography==3.3.2",
"requests==2.25.1",
"voluptuous==0.12.1",
"pyfiglet==0.8.post1",
# 'pandas==1.1.5',
'click==7.1.2',
'shortuuid==1.0.1',
'tabulate==0.8.7',
'asyncio-mqtt',
'psutil==5.8.0',
# 'numpy==1.20.3',
'cbpi4ui',
'importlib_metadata'] + (
['RPi.GPIO==0.7.1a4'] if platform.uname()[1] == "raspberrypi" else [] ) +
(['numpy==1.22.0'] if (platform.uname()[1] == "raspberrypi") and (platform.architecture()[0][0:2] == "64") else ['numpy==1.20.3'] ) +
(['pandas==1.4.0'] if (platform.uname()[1] == "raspberrypi") and (platform.architecture()[0][0:2] == "64") else ['pandas==1.1.5'] ),
dependency_links=[
'https://testpypi.python.org/pypi',
],
entry_points = {
"console_scripts": [
"cbpi=cbpi.cli:main",
]
}
)