This repository was archived by the owner on Mar 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (36 loc) · 1.41 KB
/
setup.py
File metadata and controls
42 lines (36 loc) · 1.41 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
#!/usr/bin/env python
import importlib
import os
from setuptools import setup, find_packages
def read_version():
"""This function reads the version from diffusion_maps/version.py without importing
parts of the package (which would require some of the dependencies already
installed)."""
# code parts were taken from here https://stackoverflow.com/a/67692
path2setup = os.path.dirname(__file__)
version_file = os.path.abspath(
os.path.join(path2setup, "diffusion_maps", "version.py"))
spec = importlib.util.spec_from_file_location("version", version_file)
version = importlib.util.module_from_spec(spec)
spec.loader.exec_module(version)
return version.version.v_short
setup(name='diffusion-maps',
version=read_version(),
description='Diffusion maps',
long_description='Library for computing diffusion maps',
license='MIT License',
author='Juan M. Bello-Rivas',
author_email='jmbr@superadditive.com',
packages=find_packages(),
package_dir={'diffusion_maps': 'diffusion_maps'},
package_data={'': ['LICENSE']},
test_suite='nose.collector',
tests_require=['nose'],
install_requires=['scipy', 'numpy'],
extras_require={
'plotting': ['matplotlib'],
'cuda': ['numba']
},
entry_points={
'console_scripts': 'diffusion-maps = diffusion_maps.command_line_interface:main'
})