forked from bowenli37/SciDB-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (54 loc) · 1.9 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
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup, Command
class PyTest(Command):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
# Command.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
# Command.finalize_options(self)
self.test_args = []
self.test_suite = True
def run(self):
# import here, cause outside the eggs aren't loaded
import pytest
import sys
errno = pytest.main(self.pytest_args + ['scidbpy'])
sys.exit(errno)
DESCRIPTION = "Python wrappers for SciDB"
LONG_DESCRIPTION = open('README.rst').read()
NAME = "scidb-py"
AUTHOR = "Jake Vanderplas, Chris Beaumont"
AUTHOR_EMAIL = "[email protected], [email protected]"
MAINTAINER = "Chris Beaumont"
MAINTAINER_EMAIL = "[email protected]"
DOWNLOAD_URL = 'http://github.com/paradigm4/scidb-py'
LICENSE = 'Simplified BSD'
import scidbpy
VERSION = scidbpy.__version__
setup(name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
download_url=DOWNLOAD_URL,
license=LICENSE,
packages=['scidbpy', 'scidbpy.tests'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Topic :: Database :: Front-Ends',
'Topic :: Scientific/Engineering'],
cmdclass={'test': PyTest}
)