-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
72 lines (61 loc) · 2.41 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- coding: utf-8 -*-
# Copyright 2011 - 2013 Björn Larsson
# This file is part of pytvdbapi.
#
# pytvdbapi is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# pytvdbapi is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with pytvdbapi. If not, see <http://www.gnu.org/licenses/>.
try:
from setuptools import setup, find_packages
except ImportError:
import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup, find_packages
import sys
from pytvdbapi.__init__ import __NAME__, version
# Make sure the user has an acceptable Python version
if sys.version_info < (2, 6):
raise SystemExit("Your Python is too old. Only Python >= 2.6 is supported.")
def get_description():
try:
return open("README.rst").read() + '\n' + open("CHANGES.txt").read()
except Exception:
return "No description"
setup(
name=__NAME__,
version=version(),
description='A clean, resource friendly and easy to use API for thetvdb.com',
long_description=get_description(),
author="Bjoern Larsson",
author_email='[email protected]',
url="https://github.com/fuzzycode/pytvdbapi",
keywords="TVDB thetvdb.com API tv episodes",
license="LGPLv3",
packages=find_packages(),
platforms=["any"],
test_suite='pytvdbapi.tests',
exclude_package_data={'': ['./MANIFEST.in']},
install_requires=['httplib2'],
classifiers=[f.strip() for f in """
Development Status :: 4 - Beta
Intended Audience :: Developers
Operating System :: OS Independent
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Programming Language :: Python
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Utilities""".splitlines() if f.strip()],
)