-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
64 lines (54 loc) · 1.66 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 -*-
# flake8: noqa E501
"""A setuptools based setup module for pybreakpoints
"""
from codecs import open
from os import path
from setuptools import setup, find_packages
import sys
import versioneer
version = versioneer.get_version()
cmdclass = versioneer.get_cmdclass()
PY2 = sys.version_info[0] == 2
HERE = path.abspath(path.dirname(__file__))
DOCS = path.join(HERE, 'docs', 'source')
README = path.join(HERE, 'README.rst')
HISTORY = path.join(DOCS, 'changelog.rst')
with open(README, encoding='utf-8') as readme_file:
readme = readme_file.read()
with open(HISTORY, encoding='utf-8') as history_file:
history = history_file.read().replace('.. :changelog:', '')
requires = {
'core': ['six', 'numpy', 'pandas', 'scipy', 'xarray'],
'docs': [
'mock', 'sphinx>=1.4', 'sphinx_rtd_theme', 'sphinxcontrib-bibtex',
'sphinx-paramlinks'
],
'test': ['pytest', 'coverage', 'mock'],
'numba': ['numba']
}
if PY2:
requires['core'].extend([
'pathlib',
])
requires['all'] = sorted(set(sum(requires.values(), [])))
packages = sorted(find_packages(exclude=['docs', 'tests']))
entry_points = {}
setup(
name='pybreakpoints',
version=version,
cmdclass=cmdclass,
description="Break point detection algorithms in Python",
long_description=readme + '\n\n' + history,
author="Chris Holden",
author_email='[email protected]',
url='https://github.com/ceholden/pybreakpoints',
packages=packages,
entry_points=entry_points,
include_package_data=True,
install_requires=requires['core'],
license="BSD-3",
classifiers=[],
tests_require=requires['test']
)