-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
62 lines (54 loc) · 1.8 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
61
62
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
from pathlib import Path
import platform
# https://github.com/pypa/setuptools_scm
use_scm = {"write_to": "survos2/_version.py"}
base_path = os.path.abspath(os.path.dirname(__file__))
# Add your dependencies in requirements.txt
# Note: you can add test-specific requirements in tox.ini
requirements = []
root = Path(__file__).parent
if platform.system() == "Windows":
filename = str(root / "requirements_windows.txt")
elif platform.system() == "Linux":
filename = str(root / "requirements.txt")
with open(filename) as f:
for line in f:
stripped = line.split("#")[0].strip()
if len(stripped) > 0:
requirements.append(stripped)
if __name__ == "__main__":
setup(
# name="SuRVoS2",
version="2.2",
# author='DLS',
# author_email='',
# license='CC-BY-NC-4.0',
# url='',
description="Volumetric Image Segmentation",
# packages=find_packages(),
python_requires=">=3.8",
install_requires=requirements,
use_scm_version=use_scm,
setup_requires=["setuptools_scm"],
classifiers=[
"Intended Audience :: Developers",
"Framework :: napari",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Operating System :: OS Independent",
"Framework :: snapari",
],
entry_points={
"napari.plugin": [
"SuRVoS2 = survos2",
],
},
)