mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
42 lines
1.1 KiB
Python
42 lines
1.1 KiB
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
Install PlexAPI
|
|
"""
|
|
from pkg_resources import parse_requirements
|
|
try:
|
|
from setuptools import setup
|
|
except ImportError:
|
|
from distutils.core import setup
|
|
|
|
# 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()
|
|
|
|
# Get requirements
|
|
with open('requirements.txt') as handle:
|
|
requirements = [str(req) for req in parse_requirements(handle)]
|
|
|
|
setup(
|
|
name='PlexAPI',
|
|
version=version['__version__'],
|
|
description='Python bindings for the Plex API.',
|
|
author='Michael Shepanski',
|
|
author_email='michael.shepanski@gmail.com',
|
|
url='https://github.com/pkkid/python-plexapi',
|
|
packages=['plexapi'],
|
|
install_requires=requirements,
|
|
python_requires='>=3.7',
|
|
long_description=readme,
|
|
keywords=['plex', 'api'],
|
|
classifiers=[
|
|
'Operating System :: OS Independent',
|
|
'Programming Language :: Python :: 3',
|
|
'License :: OSI Approved :: BSD License',
|
|
]
|
|
)
|