forked from pushingkarmaorg/python-plexapi
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
37 lines (33 loc) · 980 Bytes
/
Copy pathsetup.py
File metadata and controls
37 lines (33 loc) · 980 Bytes
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
36
37
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Install PlexAPI
"""
importre
fromdistutils.coreimportsetup
# Get the current version
withopen('plexapi/__init__.py') ashandle:
forlineinhandle.readlines():
ifline.startswith('VERSION'):
version=re.findall("'([0-9\.]+?)'", line)[0]
# Get README.rst contents
readme=open('README.rst', 'r').read()
# Get requirments
requirements= []
withopen('requirements.txt') ashandle:
forlineinhandle.readlines():
ifnotline.startswith('#'):
package=line.strip().split('=', 1)[0]
requirements.append(package)
setup(
name='PlexAPI',
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,
long_description=readme,
keywords=['plex', 'api'],
)