forked from python-social-auth/social-app-django
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (48 loc) · 1.77 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
"""Setup file for easy installation"""
import re
from os.path import dirname, join
from setuptools import setup
VERSION_RE = re.compile(r'__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='[email protected]',
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(),
long_description_content_type='text/markdown',
python_requires='>=3.6',
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 :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
zip_safe=False
)