-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (54 loc) · 1.93 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import setuptools
import os
import re, io
from pathlib import Path
from shutil import copyfile
from setuptools.command.install import install
APP_NAME = "Deckster"
__version__ = "0.6.2"
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
cfg_path = f"{str(Path.home())}/.config/{APP_NAME.lower()}/config.json"
if not os.path.exists(cfg_path):
os.mkdir(f"{str(Path.home())}/.config/{APP_NAME.lower()}")
copyfile('config.json', cfg_path)
install.run(self)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name=f"{APP_NAME.lower()}-sd",
version=__version__,
author="Gabisonfire",
author_email="gabisonfire@github.com",
description="A service to manage your Streamdeck easily on Linux",
keywords="streamdeck",
long_description=long_description,
long_description_content_type="text/markdown",
python_requires=">=3.9",
include_package_data=True,
packages=[
"deckster",
"deckster.generators",
"deckster.generators.builtins",
"deckster.common",
"deckster.plugins.builtins",
"deckster.plugins.builtins.page",
"deckster.plugins.builtins.web",
"deckster.modules"
],
entry_points = {
"console_scripts": ['deckster = deckster.main:main']
},
url="https://github.com/Gabisonfire/Deckster",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
"Topic :: System :: Hardware",
],
install_requires=["playsound==1.3.0", "Pillow==9.3.0", "requests==2.23.0", "streamdeck==0.8.5", "apscheduler==3.8.1", "pyaml==21.8.3", "jsonmerge==1.9.0", "flask==2.2.3", "gevent==22.10.2"],
cmdclass={
'install': PostInstallCommand
},
)