forked from wagnerrp/pytmdb3
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·51 lines (40 loc) · 1.11 KB
/
setup.py
File metadata and controls
executable file
·51 lines (40 loc) · 1.11 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python
import sys
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
wd = os.path.dirname(os.path.abspath(__file__))
os.chdir(wd)
sys.path.insert(1, wd)
name = 'tmdb3'
pkg = __import__('tmdb3')
author, email = pkg.__author__.rsplit(' ', 1)
email = email.strip('<>')
maintainer, maintainer_email = pkg.__maintainer__.rsplit(' ', 1)
maintainer_email = maintainer_email.strip('<>')
version = pkg.__version__
classifiers = pkg.__classifiers__
with open('README.md') as f:
long_description = f.read()
try:
reqs = open(os.path.join(os.path.dirname(__file__),
'requirements.txt')).read()
except (IOError, OSError):
reqs = ''
setup(
name=name,
version=version,
author=author,
author_email=email,
maintainer=maintainer,
maintainer_email=maintainer_email,
description='TheMovieDB.org APIv3 interface (Python 3.6+)',
long_description=long_description,
classifiers=classifiers,
install_requires=reqs,
packages=['tmdb3'],
keywords='themoviedb.org',
python_requires='>=3.6',
)