-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (46 loc) · 1.65 KB
/
setup.py
File metadata and controls
52 lines (46 loc) · 1.65 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
43
44
45
46
47
48
49
50
51
52
"""Setup script for nGauge"""
import os.path
from setuptools import setup
# The text of the README file
HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(HERE, "README.md")) as fid:
README = fid.read()
# Get version number without fully loading module (lightweight)
version = ""
for line in open("ngauge/__init__.py"):
if "__version__" in line:
line = line.split("=")[1]
line = line.replace('"', "")
line = line.replace("'", "")
line = line.strip()
version = line
break
if not version:
raise ValueError("No Version Detected!!!")
# This call to setup() does all the work
setup(
name="nGauge",
version=version,
description="Perform morphology measurement on neuron SWC files",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/Cai-Lab-at-University-of-Michigan/nGauge/",
author="Logan Walker",
author_email="loganaw@umich.edu",
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering",
],
packages=["ngauge"],
include_package_data=True,
install_requires=["scipy", "numpy", "shapely"]
)