2014-12-29 03:21:58 +00:00
|
|
|
#!/usr/bin/python
|
2016-03-21 04:26:02 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2014-12-29 03:21:58 +00:00
|
|
|
"""
|
|
|
|
Install PlexAPI
|
|
|
|
"""
|
2020-07-12 14:24:05 +00:00
|
|
|
try:
|
|
|
|
from setuptools import setup
|
|
|
|
except ImportError:
|
|
|
|
from distutils.core import setup
|
2014-12-29 03:21:58 +00:00
|
|
|
|
2021-09-13 00:59:23 +00:00
|
|
|
from plexapi import const
|
2017-02-20 19:50:02 +00:00
|
|
|
|
|
|
|
# Get README.rst contents
|
|
|
|
readme = open('README.rst', 'r').read()
|
|
|
|
|
2022-05-16 20:39:42 +00:00
|
|
|
# Get requirements
|
2017-02-20 19:50:02 +00:00
|
|
|
requirements = []
|
|
|
|
with open('requirements.txt') as handle:
|
|
|
|
for line in handle.readlines():
|
|
|
|
if not line.startswith('#'):
|
|
|
|
package = line.strip().split('=', 1)[0]
|
|
|
|
requirements.append(package)
|
2014-12-29 03:21:58 +00:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name='PlexAPI',
|
2021-09-13 00:59:23 +00:00
|
|
|
version=const.__version__,
|
2014-12-29 03:21:58 +00:00
|
|
|
description='Python bindings for the Plex API.',
|
|
|
|
author='Michael Shepanski',
|
2017-02-20 19:50:02 +00:00
|
|
|
author_email='michael.shepanski@gmail.com',
|
2017-08-12 03:58:08 +00:00
|
|
|
url='https://github.com/pkkid/python-plexapi',
|
2017-01-09 06:52:46 +00:00
|
|
|
packages=['plexapi'],
|
2017-02-20 19:50:02 +00:00
|
|
|
install_requires=requirements,
|
2022-07-21 03:19:56 +00:00
|
|
|
python_requires='>=3.7',
|
2017-02-20 19:50:02 +00:00
|
|
|
long_description=readme,
|
2014-12-29 03:21:58 +00:00
|
|
|
keywords=['plex', 'api'],
|
2020-07-12 13:33:28 +00:00
|
|
|
classifiers=[
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python :: 3',
|
2020-08-02 14:12:17 +00:00
|
|
|
'License :: OSI Approved :: BSD License',
|
2020-07-12 13:33:28 +00:00
|
|
|
]
|
2014-12-29 03:21:58 +00:00
|
|
|
)
|