2017-11-03 12:41:15 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2017-11-03 12:34:47 +01:00
|
|
|
import os
|
2020-06-10 12:37:26 +02:00
|
|
|
from setuptools import setup, find_packages
|
2017-11-03 12:34:47 +01:00
|
|
|
|
2019-05-23 18:51:28 +02:00
|
|
|
|
|
|
|
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()
|
|
|
|
|
2017-11-03 12:34:47 +01:00
|
|
|
|
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
|
2023-03-20 01:41:21 +01:00
|
|
|
for path, _, files in os.walk(dir):
|
2017-11-03 15:06:29 +01:00
|
|
|
for file in files:
|
|
|
|
paths.append(os.path.join('..', path, file))
|
|
|
|
return paths
|
|
|
|
|
2019-05-23 18:51:28 +02:00
|
|
|
|
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
|
|
|
|
2017-11-03 12:34:47 +01:00
|
|
|
setup(
|
2020-01-01 15:40:42 +01:00
|
|
|
name="platypush",
|
2023-07-22 23:36:04 +02:00
|
|
|
version="0.50.3",
|
2020-01-01 15:40:42 +01:00
|
|
|
author="Fabio Manganiello",
|
2023-07-22 23:02:44 +02:00
|
|
|
author_email="fabio@manganiello.tech",
|
2020-01-01 15:40:42 +01:00
|
|
|
description="Platypush service",
|
|
|
|
license="MIT",
|
2020-08-22 15:28:52 +02:00
|
|
|
python_requires='>= 3.6',
|
2021-09-16 17:53:40 +02:00
|
|
|
keywords="home-automation automation iot mqtt websockets redis dashboard notifications",
|
2021-02-05 23:18:18 +01:00
|
|
|
url="https://platypush.tech",
|
2023-05-03 21:45:02 +02:00
|
|
|
packages=find_packages(exclude=['tests']),
|
2020-01-01 15:40:42 +01:00
|
|
|
include_package_data=True,
|
2023-04-29 11:32:31 +02:00
|
|
|
package_data={
|
2023-04-29 23:48:06 +02:00
|
|
|
'platypush': [
|
|
|
|
'migrations/alembic.ini',
|
|
|
|
'migrations/alembic/*',
|
|
|
|
'migrations/alembic/**/*',
|
2023-09-28 01:25:01 +02:00
|
|
|
'install/**',
|
|
|
|
'install/scripts/*',
|
|
|
|
'install/scripts/**/*',
|
|
|
|
'install/requirements/*',
|
|
|
|
'install/docker/*',
|
2024-01-06 22:21:59 +01:00
|
|
|
'components.json.gz',
|
2023-04-29 23:48:06 +02:00
|
|
|
],
|
2023-04-29 11:32:31 +02:00
|
|
|
},
|
2020-01-01 15:40:42 +01:00
|
|
|
entry_points={
|
2017-11-03 22:54:08 +01:00
|
|
|
'console_scripts': [
|
2018-01-04 16:11:54 +01:00
|
|
|
'platypush=platypush:main',
|
2018-12-19 02:08:13 +01:00
|
|
|
'platydock=platypush.platydock:main',
|
2023-08-22 23:49:37 +02:00
|
|
|
'platyvenv=platypush.platyvenv:main',
|
2017-11-03 22:54:08 +01:00
|
|
|
],
|
|
|
|
},
|
2020-01-01 15:40:42 +01:00
|
|
|
long_description=readfile('README.md'),
|
|
|
|
long_description_content_type='text/markdown',
|
|
|
|
classifiers=[
|
2017-11-03 12:34:47 +01:00
|
|
|
"Topic :: Utilities",
|
2017-11-03 23:09:19 +01:00
|
|
|
"License :: OSI Approved :: MIT License",
|
2020-08-22 15:28:52 +02:00
|
|
|
"Development Status :: 4 - Beta",
|
2017-11-03 12:34:47 +01:00
|
|
|
],
|
2020-01-01 15:40:42 +01:00
|
|
|
install_requires=[
|
2023-05-05 00:07:13 +02:00
|
|
|
'alembic',
|
|
|
|
'croniter',
|
2023-05-09 21:59:36 +02:00
|
|
|
'docutils',
|
2023-05-05 00:07:13 +02:00
|
|
|
'flask',
|
|
|
|
'frozendict',
|
|
|
|
'marshmallow',
|
|
|
|
'marshmallow_dataclass',
|
2023-08-15 11:12:21 +02:00
|
|
|
'psutil',
|
2023-05-05 00:07:13 +02:00
|
|
|
'python-dateutil',
|
|
|
|
'python-magic',
|
2017-11-09 05:04:48 +01:00
|
|
|
'pyyaml',
|
2018-06-14 12:37:09 +02:00
|
|
|
'redis',
|
2018-12-18 19:01:51 +01:00
|
|
|
'requests',
|
2023-05-05 00:07:13 +02:00
|
|
|
'rsa',
|
2023-04-24 22:52:17 +02:00
|
|
|
'sqlalchemy',
|
2023-05-07 19:38:40 +02:00
|
|
|
'tornado',
|
2020-01-20 11:47:10 +01:00
|
|
|
'websocket-client',
|
2023-05-07 19:38:40 +02:00
|
|
|
'websockets',
|
2020-06-21 13:09:41 +02:00
|
|
|
'wheel',
|
2020-08-14 02:16:46 +02:00
|
|
|
'zeroconf>=0.27.0',
|
2017-11-03 22:54:08 +01:00
|
|
|
],
|
2020-01-01 15:40:42 +01:00
|
|
|
extras_require={
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for Kafka backend and plugin
|
|
|
|
'kafka': ['kafka-python'],
|
2024-01-10 00:41:51 +01:00
|
|
|
# Support for Pushbullet
|
2022-04-27 14:52:41 +02:00
|
|
|
'pushbullet': [
|
|
|
|
'pushbullet.py @ https://github.com/rbrcsk/pushbullet.py/tarball/master'
|
|
|
|
],
|
2023-05-05 00:07:13 +02:00
|
|
|
# This is only kept for back-compatibility purposes, as all the
|
|
|
|
# dependencies of the HTTP webserver are now core dependencies.
|
|
|
|
'http': [],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for MQTT backends
|
|
|
|
'mqtt': ['paho-mqtt'],
|
|
|
|
# Support for RSS feeds parser
|
2022-09-02 00:21:40 +02:00
|
|
|
'rss': ['feedparser', 'defusedxml'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for PDF generation
|
|
|
|
'pdf': ['weasyprint'],
|
|
|
|
# Support for Philips Hue plugin
|
2019-12-01 21:31:41 +01:00
|
|
|
'hue': ['phue'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for MPD/Mopidy music server plugin and backend
|
2020-01-20 11:47:10 +01:00
|
|
|
'mpd': ['python-mpd2'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for Google text2speech plugin
|
2022-04-27 14:52:41 +02:00
|
|
|
'google-tts': [
|
|
|
|
'oauth2client',
|
2023-10-01 00:52:59 +02:00
|
|
|
'httplib2',
|
2022-04-27 14:52:41 +02:00
|
|
|
'google-api-python-client',
|
2023-05-07 19:38:40 +02:00
|
|
|
'google-auth',
|
2022-04-27 14:52:41 +02:00
|
|
|
'google-cloud-texttospeech',
|
|
|
|
],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for OMXPlayer plugin
|
|
|
|
'omxplayer': ['omxplayer-wrapper'],
|
|
|
|
# Support for YouTube
|
2023-11-04 11:57:09 +01:00
|
|
|
'youtube': ['yt-dlp'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for torrents download
|
2023-05-07 19:38:40 +02:00
|
|
|
'torrent': ['python-libtorrent'],
|
2020-09-19 00:50:22 +02:00
|
|
|
# Generic support for cameras
|
|
|
|
'camera': ['numpy', 'Pillow'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for RaspberryPi camera
|
2020-09-19 00:50:22 +02:00
|
|
|
'picamera': ['picamera', 'numpy', 'Pillow'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for inotify file monitors
|
|
|
|
'inotify': ['inotify'],
|
|
|
|
# Support for Google Assistant
|
2024-02-06 20:08:57 +01:00
|
|
|
'google-assistant': ['google-assistant-library', 'google-auth'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for the Google APIs
|
2023-10-01 00:52:59 +02:00
|
|
|
'google': [
|
|
|
|
'oauth2client',
|
|
|
|
'google-auth',
|
|
|
|
'google-api-python-client',
|
|
|
|
'httplib2',
|
|
|
|
],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for Last.FM scrobbler plugin
|
|
|
|
'lastfm': ['pylast'],
|
|
|
|
# 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
|
2020-11-21 01:36:37 +01:00
|
|
|
'ical': ['icalendar'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# 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
|
2023-06-27 13:31:38 +02:00
|
|
|
'sound': ['sounddevice', 'numpy'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for web media subtitles
|
|
|
|
'subtitles': [
|
2020-01-01 15:40:42 +01:00
|
|
|
'webvtt-py',
|
2022-04-27 14:52:41 +02:00
|
|
|
'python-opensubtitles @ https://github.com/agonzalezro/python-opensubtitles/tarball/master',
|
|
|
|
],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for mpv player plugin
|
|
|
|
'mpv': ['python-mpv'],
|
|
|
|
# Support for NFC tags
|
2020-09-10 11:10:26 +02:00
|
|
|
'nfc': ['nfcpy>=1.0', 'ndeflib'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for enviropHAT
|
|
|
|
'envirophat': ['envirophat'],
|
|
|
|
# Support for GPS
|
|
|
|
'gps': ['gps'],
|
|
|
|
# Support for BME280 environment sensor
|
|
|
|
'bme280': ['pimoroni-bme280'],
|
|
|
|
# Support for LTR559 light/proximity sensor
|
2023-05-07 19:38:40 +02:00
|
|
|
'ltr559': ['ltr559', 'smbus'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for VL53L1X laser ranger/distance sensor
|
2020-01-01 15:40:42 +01:00
|
|
|
'vl53l1x': ['smbus2', 'vl53l1x'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for Dropbox integration
|
|
|
|
'dropbox': ['dropbox'],
|
|
|
|
# Support for Leap Motion backend
|
2022-04-27 14:52:41 +02:00
|
|
|
'leap': [
|
|
|
|
'leap-sdk @ https://github.com/BlackLight/leap-sdk-python3/tarball/master'
|
|
|
|
],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for Flic buttons
|
2022-04-27 14:52:41 +02:00
|
|
|
'flic': [
|
|
|
|
'flic @ https://github.com/50ButtonsEach/fliclib-linux-hci/tarball/master'
|
|
|
|
],
|
2023-02-18 01:15:10 +01:00
|
|
|
# Support for Bluetooth devices
|
2022-04-27 14:52:41 +02:00
|
|
|
'bluetooth': [
|
2023-02-08 22:42:00 +01:00
|
|
|
'bleak',
|
2023-02-18 01:15:10 +01:00
|
|
|
'bluetooth-numbers',
|
2023-03-20 01:41:21 +01:00
|
|
|
'TheengsDecoder',
|
2023-03-24 01:57:05 +01:00
|
|
|
'pydbus',
|
2023-03-13 02:31:21 +01:00
|
|
|
'pybluez @ https://github.com/pybluez/pybluez/tarball/master',
|
|
|
|
'PyOBEX @ https://github.com/BlackLight/PyOBEX/tarball/master',
|
2022-04-27 14:52:41 +02:00
|
|
|
],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for TP-Link devices
|
|
|
|
'tplink': ['pyHS100'],
|
2021-09-16 17:53:40 +02:00
|
|
|
# Support for PMW3901 2-Dimensional Optical Flow Sensor
|
|
|
|
'pmw3901': ['pmw3901'],
|
2019-12-01 19:54:56 +01:00
|
|
|
# Support for MLX90640 thermal camera
|
|
|
|
'mlx90640': ['Pillow'],
|
2020-09-19 00:50:22 +02:00
|
|
|
# Support for machine learning models and cameras over OpenCV
|
2021-09-16 17:53:40 +02:00
|
|
|
'cv': ['opencv-python', 'numpy', 'Pillow'],
|
2019-12-08 19:02:08 +01:00
|
|
|
# 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
|
2023-10-01 00:52:59 +02:00
|
|
|
'google-pubsub': ['google-cloud-pubsub', 'google-auth', 'httplib2'],
|
2020-07-02 02:07:57 +02:00
|
|
|
# Support for Google Translate
|
2023-10-01 00:52:59 +02:00
|
|
|
'google-translate': ['google-cloud-translate', 'google-auth', 'httplib2'],
|
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'],
|
2020-01-05 00:46:46 +01:00
|
|
|
# Support for Arduino integration
|
|
|
|
'arduino': ['pyserial', 'pyfirmata2'],
|
2020-01-05 19:25:20 +01:00
|
|
|
# Support for CUPS printers management
|
|
|
|
'cups': ['pycups'],
|
2020-01-06 15:24:52 +01:00
|
|
|
# Support for Graphite integration
|
|
|
|
'graphite': ['graphyte'],
|
2020-01-07 22:44:23 +01:00
|
|
|
# Support for CPU and memory monitoring and info
|
2023-08-15 11:12:21 +02:00
|
|
|
'sys': ['py-cpuinfo'],
|
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
|
2023-05-05 00:07:13 +02:00
|
|
|
'zwave': ['paho-mqtt'],
|
2020-03-07 02:00:35 +01:00
|
|
|
# Support for Mozilla DeepSpeech speech-to-text engine
|
2022-02-07 15:51:12 +01:00
|
|
|
'deepspeech': ['deepspeech', 'numpy', 'sounddevice'],
|
2020-03-07 20:21:32 +01:00
|
|
|
# Support for PicoVoice hotword detection engine
|
|
|
|
'picovoice-hotword': ['pvporcupine'],
|
2020-03-07 02:00:35 +01:00
|
|
|
# Support for PicoVoice speech-to-text engine
|
2020-03-07 20:21:32 +01:00
|
|
|
'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'],
|
2020-03-10 00:07:21 +01:00
|
|
|
# Support for QR codes
|
2022-02-07 15:51:12 +01:00
|
|
|
'qrcode': ['numpy', 'qrcode[pil]', 'Pillow', 'pyzbar'],
|
2020-03-21 19:50:59 +01:00
|
|
|
# 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
|
2023-03-26 23:45:53 +02:00
|
|
|
'clipboard': ['pyclip'],
|
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
|
2022-02-07 15:45:19 +01:00
|
|
|
'dbus': ['pydbus', 'defusedxml'],
|
2020-08-19 23:30:15 +02:00
|
|
|
# Support for Twilio integration
|
|
|
|
'twilio': ['twilio'],
|
2020-08-23 00:46:21 +02:00
|
|
|
# Support for DHT11/DHT22/AM2302 temperature/humidity sensors
|
2022-04-27 14:52:41 +02:00
|
|
|
'dht': [
|
|
|
|
'Adafruit_Python_DHT @ git+https://github.com/adafruit/Adafruit_Python_DHT'
|
|
|
|
],
|
2020-08-23 21:00:04 +02:00
|
|
|
# Support for LCD display integration
|
|
|
|
'lcd': ['RPi.GPIO', 'RPLCD'],
|
2024-02-03 22:09:40 +01:00
|
|
|
# Support for email integration
|
|
|
|
'mail': ['imapclient', 'dnspython'],
|
2020-09-10 11:10:26 +02:00
|
|
|
# Support for NextCloud integration
|
2021-09-16 17:53:40 +02:00
|
|
|
'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'],
|
2021-03-14 00:07:17 +01:00
|
|
|
# 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'],
|
2022-08-04 03:08:54 +02:00
|
|
|
# Support for the Matrix integration
|
|
|
|
'matrix': ['matrix-nio'],
|
2023-07-22 22:36:36 +02:00
|
|
|
# Support for the XMPP integration
|
|
|
|
'xmpp': ['aioxmpp', 'pytz'],
|
2017-12-12 20:14:02 +01:00
|
|
|
},
|
2017-11-03 12:34:47 +01:00
|
|
|
)
|