-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
61 lines (57 loc) · 2.48 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
"""setup.py compiles the fortran files so they can be called from python."""
import setuptools
from numpy.distutils.core import setup, Extension
"""
def readme(short=False):
with open('README.md') as f:
if short:
return f.readlines()[1].strip()
else:
return f.read()"""
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md')) as f:
long_description = f.read()
ext1 = Extension(name = 'mistree.levy_flight.utility_random_walk',
sources = ['mistree/levy_flight/utility_random_walk.f90'])
ext2 = Extension(name = 'mistree.mst.utility_density',
sources = ['mistree/mst/utility_density.f90'])
ext3 = Extension(name = 'mistree.mst.utility_mst',
sources = ['mistree/mst/utility_mst.f90'])
setup(name = 'mistree',
version = '1.2.2',
description = "A python package for constructing and analysing the minimum spanning tree",
long_description = long_description,
long_description_content_type = 'text/markdown',
url = 'https://knaidoo29.github.io/mistreedoc/',
author = "Krishna Naidoo",
author_email = "[email protected]",
license='MIT',
packages=setuptools.find_packages(),
install_requires=['numpy', 'matplotlib', 'scipy', 'scikit-learn'],
ext_modules = [ext1, ext2, ext3],
python_requires = '>=2.7',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Fortran',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Mathematics',
],
test_suite='nose.collector',
tests_require=['nose'],
)