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__
|
2021-10-09 10:53:40 +02:00
|
|
|
import platform
|
2019-01-05 20:43:48 +01:00
|
|
|
|
2022-02-12 15:38:51 +01:00
|
|
|
# read the contents of your README file
|
2022-05-10 17:52:23 +02:00
|
|
|
from os import popen, path
|
2022-02-12 15:38:51 +01:00
|
|
|
|
|
|
|
localsystem = platform.system()
|
|
|
|
raspberrypi=False
|
|
|
|
if localsystem == "Linux":
|
2023-12-18 21:36:56 +01:00
|
|
|
command="cat /proc/cpuinfo | grep 'Raspberry'"
|
2022-02-12 15:38:51 +01:00
|
|
|
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-02-12 15:38:51 +01:00
|
|
|
|
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-12 07:11:39 +02:00
|
|
|
license='GPLv3',
|
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=[
|
2022-11-17 19:40:20 +01:00
|
|
|
"typing-extensions>=4",
|
2024-04-12 17:28:21 +02:00
|
|
|
"aiohttp==3.9.4",
|
2019-01-05 20:43:48 +01:00
|
|
|
"aiohttp-auth==0.1.1",
|
|
|
|
"aiohttp-route-decorator==0.1.4",
|
2023-12-30 17:10:10 +01:00
|
|
|
"aiohttp-security==0.5.0",
|
2023-01-07 16:43:08 +01:00
|
|
|
"aiohttp-session==2.12.0",
|
2022-03-02 12:35:16 +01:00
|
|
|
"aiohttp-swagger==1.0.16",
|
2024-01-01 18:20:40 +01:00
|
|
|
"async-timeout==4.0.3",
|
2023-12-30 17:10:10 +01:00
|
|
|
"aiojobs==1.2.1 ",
|
2022-02-26 22:03:38 +01:00
|
|
|
"aiosqlite==0.17.0",
|
2024-03-22 07:00:03 +01:00
|
|
|
"cryptography==42.0.5",
|
2024-04-12 17:28:21 +02:00
|
|
|
"pyopenssl==24.1.0",
|
2024-05-28 21:51:17 +02:00
|
|
|
"requests==2.32.2",
|
2024-03-22 07:00:03 +01:00
|
|
|
"voluptuous==0.14.2",
|
2023-11-03 06:55:42 +01:00
|
|
|
"pyfiglet==1.0.2",
|
2023-11-16 07:13:01 +01:00
|
|
|
'click==8.1.7',
|
2024-04-12 17:28:21 +02:00
|
|
|
'shortuuid==1.0.13',
|
2023-01-07 16:43:08 +01:00
|
|
|
'tabulate==0.9.0',
|
2024-05-28 21:51:17 +02:00
|
|
|
'aiomqtt==2.1.0',
|
2024-03-22 07:00:03 +01:00
|
|
|
'inquirer==3.2.4',
|
2023-01-07 16:43:08 +01:00
|
|
|
'colorama==0.4.6',
|
2024-03-22 07:00:03 +01:00
|
|
|
'psutil==5.9.8',
|
2022-05-09 17:10:36 +02:00
|
|
|
'cbpi4gui',
|
2022-03-05 11:02:49 +01:00
|
|
|
'importlib_metadata',
|
2024-03-22 07:00:03 +01:00
|
|
|
'numpy==1.26.4',
|
2024-04-12 17:28:21 +02:00
|
|
|
'pandas==2.2.2'] + (
|
2024-05-01 16:50:24 +02:00
|
|
|
['rpi-lgpio'] if raspberrypi else [] ) + (
|
2024-05-01 16:56:05 +02:00
|
|
|
['systemd-python'] if localsystem == "Linux" else [] ),
|
2021-10-09 10:53:40 +02:00
|
|
|
|
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",
|
|
|
|
]
|
|
|
|
}
|
2021-05-30 11:58:18 +02:00
|
|
|
)
|