-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (44 loc) · 1.56 KB
/
setup.py
File metadata and controls
47 lines (44 loc) · 1.56 KB
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
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
#import module to be installed during installation
import mtree
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import tox
import virtualenv
errcode = tox.cmdline(self.test_args)
sys.exit(errcode)
setup(
name='mtree',
version=mtree.__version__,
author='Thomas Burette',
author_email='burettethomas@gmail.com',
url='https://github.com/tburette/mtree',
license='MIT',
description='M-tree datastructure to perform k-NN searches',
long_description=open('README').read(),
py_modules=['mtree', 'tests.test_mtree'],
platforms='any',
tests_require=['tox'],
cmdclass = {'test': Tox},
test_suite='tests.test_mtree',
keywords=[
'mtree', 'm-tree', 'k-nn', 'knn', 'nearest neighbor',
'nearest neighbor search' 'approximate nearest neighbor',
'approximate neighbor search', 'nearest neighbour',
'nearest neighbour search' 'approximate nearest neighbour',
'approximate neighbour search', 'high demensional search'],
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
],
)