-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·89 lines (80 loc) · 2.66 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import io
import re
from glob import glob
from os.path import dirname
from os.path import join
from os.path import basename
from os.path import splitext
from setuptools import find_packages
try:
from pip._internal.req import parse_requirements
except ImportError:
from pip.req import parse_requirements
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def read(*names, **kwargs):
return io.open(
join(dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf8')
).read()
classifiers = """
Environment :: Console
Development Status :: 3 - Alpha
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Topic :: Software Development :: Libraries :: Python Modules
"""
classifier_list = [c for c in classifiers.split("\n") if c]
install_reqs = [str(p.req) for p in parse_requirements(
join(dirname(__file__), 'requirements.txt'), session='req')]
setup(
name='youtube-django',
url='http://youtube-django.rtfd.io',
license='MIT License',
description=('YouTube API Data V3 and Google Authentication '
'implementation for Django'),
include_package_data=True,
use_scm_version={
'version_scheme': 'guess-next-dev',
'write_to': 'version.txt',
'tag_regex': r'^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$',
},
setup_requires=['pytest-runner', 'setuptools_scm'],
install_requires=install_reqs,
tests_require=['tox', 'pytest', 'pytest-cov', 'pytest-django', 'coverage',
'codecov'],
long_description=('%s\n%s' % (
read('README.md'),
re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst')))
),
long_description_content_type='text/markdown',
author='Ivan Neto',
author_email='[email protected]',
packages=find_packages('.'),
package_dir={'': '.'},
zip_safe=False,
classifiers=classifier_list,
keywords=[
'youtube', 'djanto', 'django-youtube', 'youtube-django',
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*',
extras_require={
},
project_urls={
'Documentation': 'http://youtube-django.rtfd.io',
'Github': 'https://github.com/ivancrneto/youtube-django',
'Tracker': 'https://github.com/ivancrneto/youtube-django/issues',
},
)