2014-12-28 22:21:58 -05:00
|
|
|
#!/usr/bin/python
|
2016-03-21 00:26:02 -04:00
|
|
|
# -*- coding: utf-8 -*-
|
2014-12-28 22:21:58 -05:00
|
|
|
"""
|
|
|
|
Install PlexAPI
|
|
|
|
"""
|
2022-12-21 12:40:00 -08:00
|
|
|
from pkg_resources import parse_requirements
|
2020-07-12 16:24:05 +02:00
|
|
|
try:
|
|
|
|
from setuptools import setup
|
|
|
|
except ImportError:
|
|
|
|
from distutils.core import setup
|
2014-12-28 22:21:58 -05:00
|
|
|
|
2023-05-22 10:50:11 -07:00
|
|
|
# Get version
|
|
|
|
version = {}
|
|
|
|
with open('plexapi/const.py') as handle:
|
|
|
|
exec(handle.read(), version)
|
2017-02-20 14:50:02 -05:00
|
|
|
|
|
|
|
# Get README.rst contents
|
2023-05-22 10:50:11 -07:00
|
|
|
with open('README.rst') as handle:
|
|
|
|
readme = handle.read()
|
2017-02-20 14:50:02 -05:00
|
|
|
|
2022-05-17 04:39:42 +08:00
|
|
|
# Get requirements
|
2017-02-20 14:50:02 -05:00
|
|
|
with open('requirements.txt') as handle:
|
2022-12-21 12:40:00 -08:00
|
|
|
requirements = [str(req) for req in parse_requirements(handle)]
|
2014-12-28 22:21:58 -05:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name='PlexAPI',
|
2023-05-22 10:50:11 -07:00
|
|
|
version=version['__version__'],
|
2014-12-28 22:21:58 -05:00
|
|
|
description='Python bindings for the Plex API.',
|
|
|
|
author='Michael Shepanski',
|
2017-02-20 14:50:02 -05:00
|
|
|
author_email='michael.shepanski@gmail.com',
|
2017-08-11 23:58:08 -04:00
|
|
|
url='https://github.com/pkkid/python-plexapi',
|
2017-01-09 01:52:46 -05:00
|
|
|
packages=['plexapi'],
|
2017-02-20 14:50:02 -05:00
|
|
|
install_requires=requirements,
|
2023-08-28 11:57:34 -04:00
|
|
|
extras_require={
|
|
|
|
'alert': ["websocket-client>=1.3.3"],
|
|
|
|
},
|
2023-07-27 20:05:40 -07:00
|
|
|
python_requires='>=3.8',
|
2017-02-20 14:50:02 -05:00
|
|
|
long_description=readme,
|
2023-11-05 16:22:31 -05:00
|
|
|
long_description_content_type='text/x-rst',
|
2014-12-28 22:21:58 -05:00
|
|
|
keywords=['plex', 'api'],
|
2020-07-12 15:33:28 +02:00
|
|
|
classifiers=[
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python :: 3',
|
2020-08-02 16:12:17 +02:00
|
|
|
'License :: OSI Approved :: BSD License',
|
2020-07-12 15:33:28 +02:00
|
|
|
]
|
2014-12-28 22:21:58 -05:00
|
|
|
)
|