forked from python-social-auth/social-app-django
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (44 loc) · 1.57 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
# -*- coding: utf-8 -*-
"""Setup file for easy installation"""
import re
from os.path import join, dirname
from setuptools import setup
VERSION_RE = re.compile('__version__ = \'([\d\.]+)\'')
def read_version():
with open('social_django/__init__.py') as file:
version_line = [line for line in file.readlines()
if line.startswith('__version__')][0]
return VERSION_RE.match(version_line).groups()[0]
def long_description():
return open(join(dirname(__file__), 'README.md')).read()
def load_requirements():
return open(join(dirname(__file__), 'requirements.txt')).readlines()
setup(
name='social-auth-app-django',
version=read_version(),
author='Matias Aguirre',
author_email='matiasaguirre@gmail.com',
description='Python Social Authentication, Django integration.',
license='BSD',
keywords='django, social auth',
url='https://github.com/python-social-auth/social-app-django',
packages=[
'social_django',
'social_django.migrations',
'social_django.management',
'social_django.management.commands',
],
long_description=long_description(),
install_requires=load_requirements(),
classifiers=[
'Development Status :: 4 - Beta',
'Topic :: Internet',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Environment :: Web Environment',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3'
],
zip_safe=False
)