-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
64 lines (56 loc) · 2.05 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
62
63
64
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import json
# Based on https://github.com/pypa/sampleproject
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
from os import path
# io.open is needed for projects that support Python 2.7
# It ensures open() defaults to text mode with universal newlines,
# and accepts an argument to specify the text encoding
from io import open
ownDir = path.abspath(path.dirname(__file__))
with open(path.join(ownDir, 'README.rst'), encoding='utf-8') as f:
readme = f.read()
with open(path.join(ownDir, 'plugin.json'), encoding='utf-8') as f:
pkginfo = json.load(f)
with open(path.join(ownDir, 'LICENSE'), encoding='utf-8') as f:
license_str = f.read()
extras_require = {
'mysql': ['mysqlclient>=1.3.10'],
'postgres': ['psycopg2>=2.7.1'],
'sqlite': [],
}
all_extras = set()
for key in extras_require:
all_extras.update(extras_require[key])
extras_require['all'] = list(all_extras)
setup(
name='database_assetstore',
version=pkginfo['version'],
description=pkginfo['description'],
long_description=readme,
long_description_content_type='text/x-rst; charset=UTF-8',
url='https://github.com/OpenGeoscience/database_assetstore',
author='Kitware, Inc.',
author_email='kitware@kitware.com',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
keywords='girder database assetstore',
packages=find_packages(exclude=['plugin_tests']),
install_requires=['sqlalchemy>=1.1.11'],
extras_require=extras_require,
data_files=[
('database_assetstore/girder', ['plugin.json']),
],
test_suite='plugin_tests',
)