-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
34 lines (31 loc) · 1.14 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
import re
import setuptools
version_file = 'fastmap/_version.py'
version_line = open(version_file, 'r').read()
version_re = r'^__version__ = ["\']([^"\']*)["\']'
mo = re.search(version_re, version_line, re.M)
if mo:
version = mo.group(1)
else:
raise RuntimeError(f'Unable to find version string in {version_file}.')
def configure():
# Initialize the setup kwargs
kwargs = {
'name': 'FastMap',
'version': version,
'author': 'Malcolm C. A. White',
'author_email': '[email protected]',
'maintainer': 'Malcolm C. A. White',
'maintainer_email': '[email protected]',
'url': 'http://malcolmw.github.io/FastMapSVM',
'description': 'Official implementation of FastMapSVM algorithm '
'for classifying complex objects (White et al., 2023).',
'download_url': 'https://github.com/malcolmw/FastMapSVM.git',
'platforms': ['linux'],
'install_requires': ['numpy', 'tqdm'],
'packages': ['fastmap']
}
return kwargs
if __name__ == '__main__':
kwargs = configure()
setuptools.setup(**kwargs)