platypush/setup.py

255 lines
9.5 KiB
Python
Raw Normal View History

2017-11-03 12:41:15 +01:00
#!/usr/bin/env python
import os
2020-06-10 12:37:26 +02:00
from setuptools import setup, find_packages
def path(fname=''):
return os.path.abspath(os.path.join(os.path.dirname(__file__), fname))
def readfile(fname):
with open(path(fname)) as f:
return f.read()
2020-01-01 15:40:42 +01:00
# noinspection PyShadowingBuiltins
2017-11-03 15:06:29 +01:00
def pkg_files(dir):
paths = []
2020-01-01 15:40:42 +01:00
# noinspection PyShadowingNames
2017-11-03 15:06:29 +01:00
for (path, dirs, files) in os.walk(dir):
for file in files:
paths.append(os.path.join('..', path, file))
return paths
2017-12-11 20:30:57 +01:00
plugins = pkg_files('platypush/plugins')
backend = pkg_files('platypush/backend')
2017-11-03 15:06:29 +01:00
setup(
2020-01-01 15:40:42 +01:00
name="platypush",
2022-02-07 15:58:57 +01:00
version="0.22.10",
2020-01-01 15:40:42 +01:00
author="Fabio Manganiello",
author_email="info@fabiomanganiello.com",
description="Platypush service",
license="MIT",
python_requires='>= 3.6',
keywords="home-automation automation iot mqtt websockets redis dashboard notifications",
2021-02-05 23:18:18 +01:00
url="https://platypush.tech",
2020-01-01 15:40:42 +01:00
packages=find_packages(),
include_package_data=True,
entry_points={
2017-11-03 22:54:08 +01:00
'console_scripts': [
2018-01-04 16:11:54 +01:00
'platypush=platypush:main',
'platydock=platypush.platydock:main',
2017-11-03 22:54:08 +01:00
],
},
2020-01-01 15:40:42 +01:00
scripts=['bin/platyvenv'],
long_description=readfile('README.md'),
long_description_content_type='text/markdown',
classifiers=[
"Topic :: Utilities",
2017-11-03 23:09:19 +01:00
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
],
2020-01-01 15:40:42 +01:00
install_requires=[
'pyyaml',
'redis',
'requests',
2019-09-28 01:34:27 +02:00
'croniter',
'sqlalchemy',
'websockets',
'websocket-client',
2020-06-21 13:09:41 +02:00
'wheel',
'zeroconf>=0.27.0',
2020-08-22 12:09:24 +02:00
'tz',
'python-dateutil',
'cryptography',
'pyjwt',
'marshmallow',
'frozendict',
2017-11-03 22:54:08 +01:00
],
2020-01-01 15:40:42 +01:00
extras_require={
# Support for thread custom name
'threadname': ['python-prctl'],
# Support for Kafka backend and plugin
'kafka': ['kafka-python'],
# Support for Pushbullet backend and plugin
'pushbullet': ['pushbullet.py @ https://github.com/rbrcsk/pushbullet.py/tarball/master'],
# Support for HTTP backend
'http': ['flask', 'bcrypt', 'python-magic', 'gunicorn'],
# Support for MQTT backends
'mqtt': ['paho-mqtt'],
# Support for RSS feeds parser
'rss': ['feedparser'],
# Support for PDF generation
'pdf': ['weasyprint'],
# Support for Philips Hue plugin
2019-12-01 21:31:41 +01:00
'hue': ['phue'],
# Support for MPD/Mopidy music server plugin and backend
'mpd': ['python-mpd2'],
# Support for Google text2speech plugin
'google-tts': ['oauth2client', 'google-api-python-client', 'google-cloud-texttospeech'],
# Support for OMXPlayer plugin
'omxplayer': ['omxplayer-wrapper'],
# Support for YouTube
'youtube': ['youtube-dl'],
# Support for torrents download
'torrent': ['python-libtorrent-bin'],
2020-09-19 00:50:22 +02:00
# Generic support for cameras
'camera': ['numpy', 'Pillow'],
# Support for RaspberryPi camera
2020-09-19 00:50:22 +02:00
'picamera': ['picamera', 'numpy', 'Pillow'],
# Support for inotify file monitors
'inotify': ['inotify'],
# Support for Google Assistant
'google-assistant-legacy': ['google-assistant-library'],
'google-assistant': ['google-assistant-sdk[samples]'],
# Support for the Google APIs
'google': ['oauth2client', 'google-api-python-client'],
# Support for Last.FM scrobbler plugin
'lastfm': ['pylast'],
# Support for custom hotword detection
'hotword': ['snowboy'],
'snowboy': ['snowboy'],
# Support for real-time MIDI events
'midi': ['rtmidi'],
# Support for RaspberryPi GPIO
'rpi-gpio': ['RPi.GPIO'],
# Support for MCP3008 analog-to-digital converter plugin
'mcp3008': ['adafruit-mcp3008'],
# Support for smart cards detection
'scard': ['pyscard'],
# Support for serial port plugin
'serial': ['pyserial'],
# Support for ICal calendars
'ical': ['icalendar'],
# Support for joystick backend
'joystick': ['inputs'],
# Support for Kodi plugin
'kodi': ['kodi-json'],
# Support for Plex plugin
'plex': ['plexapi'],
# Support for Chromecast plugin
'chromecast': ['pychromecast'],
# Support for sound devices
'sound': ['sounddevice', 'soundfile', 'numpy'],
# Support for web media subtitles
'subtitles': [
2020-01-01 15:40:42 +01:00
'webvtt-py',
'python-opensubtitles @ https://github.com/agonzalezro/python-opensubtitles/tarball/master'],
# Support for mpv player plugin
'mpv': ['python-mpv'],
# Support for NFC tags
'nfc': ['nfcpy>=1.0', 'ndeflib'],
# Support for enviropHAT
'envirophat': ['envirophat'],
# Support for GPS
'gps': ['gps'],
# Support for BME280 environment sensor
'bme280': ['pimoroni-bme280'],
# Support for LTR559 light/proximity sensor
'ltr559': ['ltr559'],
# Support for VL53L1X laser ranger/distance sensor
2020-01-01 15:40:42 +01:00
'vl53l1x': ['smbus2', 'vl53l1x'],
# Support for Dropbox integration
'dropbox': ['dropbox'],
# Support for Leap Motion backend
'leap': ['leap-sdk @ https://github.com/BlackLight/leap-sdk-python3/tarball/master'],
# Support for Flic buttons
'flic': ['flic @ https://github.com/50ButtonsEach/fliclib-linux-hci/tarball/master'],
# Support for Alexa/Echo plugin
'alexa': ['avs @ https://github.com/BlackLight/avs/tarball/master'],
2019-12-11 18:05:17 +01:00
# Support for bluetooth devices
'bluetooth': ['pybluez', 'gattlib',
2020-01-20 22:48:07 +01:00
'pyobex @ https://github.com/BlackLight/PyOBEX/tarball/master'],
# Support for TP-Link devices
'tplink': ['pyHS100'],
# Support for PMW3901 2-Dimensional Optical Flow Sensor
'pmw3901': ['pmw3901'],
# Support for MLX90640 thermal camera
'mlx90640': ['Pillow'],
2020-09-19 00:50:22 +02:00
# Support for machine learning models and cameras over OpenCV
'cv': ['opencv-python', 'numpy', 'Pillow'],
2019-12-08 16:25:03 +01:00
# Support for the generation of HTML documentation from docstring
'htmldoc': ['docutils'],
# Support for Node-RED integration
'nodered': ['pynodered'],
2019-12-25 20:32:54 +01:00
# Support for Todoist integration
2019-12-27 15:55:56 +01:00
'todoist': ['todoist-python'],
# Support for Trello integration
'trello': ['py-trello'],
2019-12-30 09:33:26 +01:00
# Support for Google Pub/Sub
'google-pubsub': ['google-cloud-pubsub'],
2020-07-02 02:07:57 +02:00
# Support for Google Translate
'google-translate': ['google-cloud-translate'],
2019-12-30 21:35:35 +01:00
# Support for keyboard/mouse plugin
'inputs': ['pyuserinput'],
2020-01-01 15:40:42 +01:00
# Support for Buienradar weather forecast
'buienradar': ['buienradar'],
# Support for Telegram integration
'telegram': ['python-telegram-bot'],
# Support for Arduino integration
'arduino': ['pyserial', 'pyfirmata2'],
2020-01-05 19:25:20 +01:00
# Support for CUPS printers management
'cups': ['pycups'],
# Support for Graphite integration
'graphite': ['graphyte'],
# Support for CPU and memory monitoring and info
'sys': ['py-cpuinfo', 'psutil'],
2020-01-11 18:51:54 +01:00
# Support for nmap integration
'nmap': ['python-nmap'],
2020-02-05 22:26:52 +01:00
# Support for zigbee2mqtt
'zigbee': ['paho-mqtt'],
# Support for Z-Wave
'zwave': ['python-openzwave'],
# Support for Mozilla DeepSpeech speech-to-text engine
2022-02-07 15:51:12 +01:00
'deepspeech': ['deepspeech', 'numpy', 'sounddevice'],
# Support for PicoVoice hotword detection engine
'picovoice-hotword': ['pvporcupine'],
# Support for PicoVoice speech-to-text engine
'picovoice-speech': ['pvcheetah @ git+https://github.com/BlackLight/cheetah'],
2020-03-09 01:11:23 +01:00
# Support for OTP (One-Time Password) generation
'otp': ['pyotp'],
2020-03-09 21:34:06 +01:00
# Support for Linode integration
'linode': ['linode_api4'],
# Support for QR codes
2022-02-07 15:51:12 +01:00
'qrcode': ['numpy', 'qrcode[pil]', 'Pillow', 'pyzbar'],
# Support for Tensorflow
'tensorflow': ['numpy', 'tensorflow>=2.0', 'keras', 'pandas'],
2020-05-03 00:56:59 +02:00
# Support for Samsung TizenOS-based smart TVs
'samsungtv': ['samsungtvws'],
2020-05-23 21:38:08 +02:00
# Support for SSH integration
'ssh': ['paramiko'],
2020-05-23 23:11:42 +02:00
# Support for clipboard integration
'clipboard': ['pyperclip'],
2020-08-11 14:43:54 +02:00
# Support for luma.oled display drivers
'luma-oled': ['luma.oled @ git+https://github.com/rm-hull/luma.oled'],
2020-08-16 01:57:30 +02:00
# Support for DBus integration
'dbus': ['pydbus', 'defusedxml'],
2020-08-19 23:30:15 +02:00
# Support for Twilio integration
'twilio': ['twilio'],
# Support for DHT11/DHT22/AM2302 temperature/humidity sensors
'dht': ['Adafruit_Python_DHT @ git+https://github.com/adafruit/Adafruit_Python_DHT'],
# Support for LCD display integration
'lcd': ['RPi.GPIO', 'RPLCD'],
# Support for IMAP mail integration
'imap': ['imapclient'],
# Support for NextCloud integration
'nextcloud': ['nextcloud-api-wrapper'],
2021-02-28 01:09:35 +01:00
# Support for VLC integration
'vlc': ['python-vlc'],
2021-03-05 02:23:28 +01:00
# Support for SmartThings integration
'smartthings': ['pysmartthings', 'aiohttp'],
# Support for file.monitor backend
'filemonitor': ['watchdog'],
2021-05-16 17:28:18 +02:00
# Support for Adafruit PCA9685 PWM controller
'pca9685': ['adafruit-python-shell', 'adafruit-circuitpython-pca9685'],
2021-09-25 01:34:45 +02:00
# Support for ngrok integration
'ngrok': ['pyngrok'],
2021-11-14 19:43:19 +01:00
# Support for IRC integration
'irc': ['irc'],
},
)