forked from chaimleib/intervaltree
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (48 loc) · 2.01 KB
/
setup.py
File metadata and controls
55 lines (48 loc) · 2.01 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
48
49
50
51
52
53
54
55
'''
PyIntervalTree: A mutable, self-balancing interval tree. Queries may be by point, by range overlap, or by range envelopment.
Note that "python setup.py test" invokes pytest on the package. With appropriately
configured setup.cfg, this will check both xxx_test modules and docstrings.
Copyright 2014, Chaim-Leib Halbert et al.
Most recent fork and modifications by Konstantin Tretyakov
Licensed under LGPL.
'''
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
# This is a plug-in for setuptools that will invoke py.test
# when you run python setup.py test
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest # import here, because outside the required eggs aren't loaded yet
sys.exit(pytest.main(self.test_args))
version = '0.5'
setup(
name = 'PyIntervalTree',
version = version,
description = 'Mutable, self-balancing interval tree',
long_description=open("README.rst").read(),
classifiers=[ # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 7 - Inactive',
'Programming Language :: Python',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Software Development :: Libraries',
],
keywords="interval-tree data-structure intervals tree", # Separate with spaces
author = 'Chaim-Leib Halbert, Konstantin Tretyakov',
author_email = 'kt@ut.ee',
url='https://github.com/konstantint/PyIntervalTree',
license="LGPL",
packages=find_packages(exclude=['examples', 'tests']),
include_package_data=True,
zip_safe=True,
install_requires=['sortedcontainers'],
tests_require=['pytest'],
cmdclass={'test': PyTest},
entry_points={}
)