python-plexapi/setup.py

47 lines
1.2 KiB
Python
Raw Normal View History

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