-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
78 lines (71 loc) · 2.7 KB
/
setup.py
File metadata and controls
78 lines (71 loc) · 2.7 KB
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
"""Setup script for installing the package."""
import pathlib
import re
from setuptools import setup, find_namespace_packages
# Resolve the absolute path to the directory containing setup.py
here = pathlib.Path(__file__).parent.resolve()
# Read the long description from README.md
long_description = (here / "README.md").read_text(encoding="utf-8")
# Construct the absolute path to __init__.py within your package
init_py_path = here / "red_plex" / "__init__.py"
# Read the version from the package's __init__.py
with open(init_py_path, 'r', encoding="utf-8") as f:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
if version_match:
version = version_match.group(1)
else:
# It's good to show the path it tried to open for easier debugging
raise RuntimeError(f"Unable to find version string in {init_py_path}")
setup(
name='red_plex',
version=version,
description='A CLI and web GUI tool for creating '
'Plex collections from RED and OPS collages and bookmarks',
long_description=long_description,
long_description_content_type="text/markdown",
author='marceljungle',
author_email='gigi.dan2011@gmail.com',
url='https://github.com/marceljungle/red-plex',
project_urls={
'Bug Reports': 'https://github.com/marceljungle/red-plex/issues',
'Source': 'https://github.com/marceljungle/red-plex',
'Documentation': 'https://github.com/marceljungle/red-plex#readme',
},
keywords='plex music collections red ops redacted orpheus gazelle tracker',
packages=find_namespace_packages(include=['red_plex*']),
py_modules=['wsgi'],
python_requires='>=3.8',
include_package_data=True,
install_requires=[
'plexapi',
'requests',
'tenacity',
'pyrate-limiter==3.7.0',
'click',
'pyyaml',
'flask',
'flask-socketio',
'gunicorn',
'eventlet',
'thefuzz[speedup]'
],
entry_points='''
[console_scripts]
red-plex=red_plex.infrastructure.cli.cli:main
''',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Operating System :: OS Independent',
'Topic :: Multimedia :: Sound/Audio',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Environment :: Console',
],
)