forked from pkkid/python-plexapi
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
35 lines (31 loc) · 919 Bytes
/
setup.py
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
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Install PlexAPI
"""
import re
from distutils.core import setup
# Convert markdown readme to rst
try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst')
except ImportError:
print("Warn: pypandoc not found, not converting Markdown to RST")
read_md = lambda f: open(f, 'r').read()
# Fetch the current version
with open('plexapi/__init__.py') as handle:
for line in handle.readlines():
if line.startswith('VERSION'):
VERSION = re.findall("'([0-9\.]+?)'", line)[0]
setup(
name='PlexAPI',
version=VERSION,
description='Python bindings for the Plex API.',
author='Michael Shepanski',
author_email='mjs7231@gmail.com',
url='https://github.com/mjs7231/plexapi',
packages=['plexapi'],
install_requires=['requests'],
long_description=read_md('README.md'),
keywords=['plex', 'api'],
)