-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
80 lines (64 loc) · 2.13 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
import re
from setuptools import setup
def get_version():
VERSIONFILE = 'dcimg.py'
initfile_lines = open(VERSIONFILE, 'rt').readlines()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
for line in initfile_lines:
mo = re.search(VSRE, line, re.M)
if mo:
return mo.group(1)
raise RuntimeError('Unable to find version string in %s.' % (VERSIONFILE,))
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name='dcimg',
version=get_version(),
description='Python module to read Hamamatsu DCIMG files',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/lens-biophotonics/dcimg',
# Author details
author='Giacomo Mazzamuto',
author_email='[email protected]',
# Choose your license
license='MIT',
# See https://pypi.python.org/pypi?:action=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
# What does your project relate to?
keywords='dcimg image files hamamatsu',
py_modules=['dcimg'],
install_requires=['numpy'],
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
extras_require={
'dev': [
'pip-tools',
],
'test': [
'ddt',
],
'doc': [
'numpydoc',
'sphinx',
'sphinx_rtd_theme',
]
},
)