forked from st4lk/django-rest-social-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (53 loc) · 2.07 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
import os
import sys
from setuptools import setup
from rest_social_auth import __author__, __version__
def __read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except IOError:
return ''
if sys.argv[-1] == 'publish':
os.system('pandoc --from=markdown --to=rst --output=README.rst README.md')
os.system('pandoc --from=markdown --to=rst --output=RELEASE_NOTES.rst RELEASE_NOTES.md')
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
if sys.argv[-1] == 'generate_rst':
os.system('pandoc --from=markdown --to=rst --output=README.rst README.md')
os.system('pandoc --from=markdown --to=rst --output=RELEASE_NOTES.rst RELEASE_NOTES.md')
sys.exit()
if sys.argv[-1] == 'tag':
print("Tagging the version on github:")
os.system("git tag -a v%s -m 'version %s'" % (__version__, __version__))
os.system("git push --tags")
sys.exit()
install_requires = __read('requirements.txt').split()
setup(
name='rest_social_auth',
author=__author__,
author_email='[email protected]',
version=__version__,
description='Django rest framework resources for social auth',
long_description=__read('README.rst') + '\n\n' + __read('RELEASE_NOTES.rst'),
platforms=('Any'),
packages=['rest_social_auth'],
install_requires=install_requires,
keywords='django social auth rest login signin signup oauth'.split(),
include_package_data=True,
license='BSD License',
package_dir={'rest_social_auth': 'rest_social_auth'},
url='https://github.com/st4lk/django-rest-social-auth',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities',
],
)