This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
50 lines (47 loc) · 1.5 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
from __future__ import print_function
import setuptools
import sys
# Convert README.md to reStructuredText.
if {'bdist_wheel', 'sdist'}.intersection(sys.argv):
try:
import pypandoc
except ImportError:
print('WARNING: You should install `pypandoc` to convert `README.md` '
'to reStructuredText to use as long description.',
file=sys.stderr)
else:
print('Converting `README.md` to reStructuredText to use as long '
'description.')
long_description = pypandoc.convert('README.md', 'rst')
setuptools.setup(
name='django-master-password',
use_scm_version={'version_scheme': 'post-release'},
author='Interaction Consortium',
author_email='[email protected]',
url='https://github.com/ixc/django-master-password',
description='Login as any user with a master password. Add master '
'password support to your custom authentication backend.',
long_description=locals().get('long_description', ''),
license='MIT',
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=[
'Django',
],
extras_require={
'dev': [
'ipdb',
'ipython',
],
'test': [
'coverage',
'coveralls',
'django-dynamic-fixture',
'django-nose',
'django-webtest',
'nose-progressive',
'WebTest',
],
},
setup_requires=['setuptools_scm'],
)