forked from ME-ICA/mapca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (47 loc) · 1.47 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" mapca setup script """
def main():
""" Install entry-point """
import os.path as op
import versioneer
from inspect import getfile, currentframe
from io import open
from setuptools import setup, find_packages
ver_file = op.join("mapca", "info.py")
with open(ver_file) as f:
exec(f.read())
vars = locals()
root_dir = op.dirname(op.abspath(getfile(currentframe())))
cmdclass = versioneer.get_cmdclass()
pkg_data = {
"mapca": [
"tests/data/*",
]
}
setup(
name=vars["PACKAGENAME"],
version=vars["VERSION"],
description=vars["DESCRIPTION"],
long_description=vars["LONGDESC"],
long_description_content_type="text/markdown",
author=vars["AUTHOR"],
author_email=vars["EMAIL"],
maintainer=vars["MAINTAINER"],
maintainer_email=vars["EMAIL"],
url=vars["URL"],
license=vars["LICENSE"],
classifiers=vars["CLASSIFIERS"],
download_url=vars["DOWNLOAD_URL"],
# Dependencies handling
python_requires=vars["PYTHON_REQUIRES"],
install_requires=vars["REQUIRES"],
tests_require=vars["TESTS_REQUIRES"],
extras_require=vars["EXTRA_REQUIRES"],
entry_points=vars["ENTRY_POINTS"],
packages=find_packages(exclude=("tests",)),
zip_safe=False,
cmdclass=cmdclass,
)
if __name__ == "__main__":
main()