-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
83 lines (67 loc) · 2.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
try:
from setuptools import setup
from setuptools import find_packages
except ImportError:
from distutils.core import setup
from distutils.core import find_packages
from SlideSeg.build import get_requires
from SlideSeg.build import read_description
here = os.path.abspath(os.path.dirname(__file__))
# Package meta-data.
NAME = 'dermas'
DESCRIPTION = 'Histopathological Image Analyses'
URL = 'https://github.com/eDIMESLab/dermas'
EMAIL = ['[email protected]', '[email protected]']
AUTHOR = ['Enrico Giampieri', 'Nico Curti']
REQUIRES_PYTHON = '>=3.4'
VERSION = None
KEYWORDS = 'histopathological-image svs'
README_FILENAME = os.path.join(here, 'README.md')
REQUIREMENTS_FILENAME = os.path.join(here, 'requirements.txt')
VERSION_FILENAME = os.path.join(here, 'SlideSeg', '__version__.py')
# Import the README and use it as the long-description.
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
try:
LONG_DESCRIPTION = read_description(README_FILENAME)
except FileNotFoundError:
LONG_DESCRIPTION = DESCRIPTION
# Load the package's __version__.py module as a dictionary.
about = {}
if not VERSION:
with open(VERSION_FILENAME) as fp:
exec(fp.read(), about)
else:
about['__version__'] = VERSION
# parse version variables and add them to command line as definitions
Version = about['__version__'].split('.')
setup(
name = NAME,
version = about['__version__'],
description = DESCRIPTION,
long_description = LONG_DESCRIPTION,
long_description_content_type = 'text/markdown',
author = AUTHOR,
author_email = EMAIL,
maintainer = AUTHOR,
maintainer_email = EMAIL,
python_requires = REQUIRES_PYTHON,
install_requires = get_requires(REQUIREMENTS_FILENAME),
url = URL,
download_url = URL,
keywords = KEYWORDS,
packages = find_packages(include=['SlideSeg', 'SlideSeg.*'], exclude=('test', 'testing')),
#include_package_data = True, # no absolute paths are allowed
platforms = 'any',
classifiers = [
#'License :: OSI Approved :: GPL License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: PyPy'
],
license = 'MIT'
)