-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
109 lines (100 loc) · 2.95 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import codecs
import os.path
from setuptools import setup
def read(rel_path: str) -> str:
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path: str) -> str:
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
setup(
name="warp_beacon",
version=get_version("warp_beacon/__version__.py"),
author="Andrey Bagrintsev",
author_email="andrey@bagrintsev.me",
description="Telegram bot for expanding external media links", # noqa: W605
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Sociology',
'Topic :: Communications :: File Sharing',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Scientific/Engineering :: Image Processing',
'Topic :: Multimedia :: Video',
'Topic :: Multimedia',
'License :: OSI Approved :: Apache Software License',
# Specify operating system
'Operating System :: POSIX :: Linux',
# Specify the Python versions you support here. In particular, ensure
'Programming Language :: Python :: 3.10'
],
license="Apache License",
url="https://github.com/sb0y/warp_beacon",
packages=[
'warp_beacon',
'warp_beacon/telegram',
'warp_beacon/uploader',
'warp_beacon/storage',
'warp_beacon/scraper',
'warp_beacon/scraper/instagram',
'warp_beacon/scraper/youtube',
'warp_beacon/mediainfo',
'warp_beacon/jobs',
'warp_beacon/compress',
'warp_beacon/scheduler'
],
py_modules=[
"warp_beacon/__version__",
"warp_beacon/warp_beacon",
"warp_beacon/telegram/bot",
"warp_beacon/telegram/placeholder_message",
"warp_beacon/telegram/handlers",
"warp_beacon/telegram/utils",
"warp_beacon/jobs/abstract",
"warp_beacon/jobs/download_job",
"warp_beacon/jobs/upload_job",
"warp_beacon/mediainfo/abstract",
"warp_beacon/mediainfo/video",
"warp_beacon/mediainfo/audio",
"warp_beacon/mediainfo/silencer",
"warp_beacon/compress/video",
"warp_beacon/scheduler/scheduler",
"warp_beacon/scraper/abstract",
"warp_beacon/scraper/exceptions",
"warp_beacon/scraper/types",
"warp_beacon/scraper/instagram/instagram",
"warp_beacon/scraper/account_selector",
"warp_beacon/scraper/youtube/abstract",
"warp_beacon/scraper/youtube/youtube",
"warp_beacon/scraper/youtube/shorts",
"warp_beacon/scraper/youtube/music",
"warp_beacon/scraper/fail_handler",
"warp_beacon/storage/mongo"
],
#scripts=['scripts/wait_dc_update.py'],
data_files=[
("/lib/systemd/system/",
["etc/warp_beacon.service"]
),
("/etc/warp_beacon/",
["etc/warp_beacon.conf"]
),
("/var/warp_beacon/",
["assets/placeholder.gif"]
),
("/var/warp_beacon/",
["etc/accounts.json"]
)
],
#entry_points={
# 'console_scripts': [
# 'warp_beacon = warp_beacon.warp_beacon:main'
# ]
#}
)