-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (52 loc) · 1.86 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
from pathlib import Path
from setuptools import setup, find_packages
__package_name__ = "phase_unwrap"
def get_version_and_cmdclass(pkg_path):
"""Load version.py module without importing the whole package.
Template code from miniver
"""
import os
from importlib.util import module_from_spec, spec_from_file_location
spec = spec_from_file_location("version", os.path.join(pkg_path, "_version.py"))
module = module_from_spec(spec)
spec.loader.exec_module(module)
return module.__version__, module.get_cmdclass(pkg_path)
__version__, cmdclass = get_version_and_cmdclass(__package_name__)
setup(
name=__package_name__,
version=__version__,
description=(
"A simple, laplacian-based unwrapping pipeline for MRI phase images in Python."
),
long_description=(Path(__file__).parent.resolve() / "README.md").read_text(),
long_description_content_type="text/markdown",
author="Blake Dewey",
author_email="blake.dewey@jhu.edu",
url="https://github.com/blakedewey/phase_unwrap",
license="GPL-3.0",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
packages=find_packages(),
keywords="mri phase unwrapping",
entry_points={
"console_scripts": [
"unwrap-phase=phase_unwrap.cli:main",
]
},
python_requires=">=3.8",
install_requires=[
"nibabel",
"numpy",
],
cmdclass=cmdclass,
)