-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
52 lines (49 loc) · 1.7 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
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='glamkit-collections',
use_scm_version={'version_scheme': 'post-release'},
author='Interaction Consortium',
author_email='studio@interaction.net.au',
url='https://github.com/ixc/glamkit-collections',
description='Boilerplate for modelling collections of collecting institutions.',
long_description=locals().get('long_description', ''),
packages=setuptools.find_packages(),
include_package_data=True,
install_requires=[
'django-icekit',
'django-object-actions>=0.7', # See: https://github.com/crccheck/django-object-actions/issues/45
'Django>=1.7',
'pyparsing',
'unidecode',
'django-admin-sortable2',
'edtf>=2.0.1',
],
extras_require={
'api': [
'djangorestframework',
'django-rest-swagger',
'djangorestframework-filters',
'djangorestframework-queryfields',
],
'colors': [
'webcolors==1.5',
'colormath==2.1.1',
'colorweave==0.1+0.ce27c83b4e06a8185531538fa11c18c5ea2c1aba.ixc',
],
},
setup_requires=['setuptools_scm'],
)