forked from CellProfiler/prokaryote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (42 loc) · 1.46 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
import codecs
import os
import re
import setuptools.dist
def read(*directories):
pathname = os.path.abspath(os.path.dirname(__file__))
return codecs.open(os.path.join(pathname, *directories), "r").read()
def find_version(*pathnames):
data = read(*pathnames)
matched = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", data, re.M)
if matched:
return matched.group(1)
raise RuntimeError("Unable to find version string.")
__version__ = find_version("prokaryote", "__init__.py")
setuptools.setup(
author="Allen Goodman",
author_email="[email protected]",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Java",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Scientific/Engineering"
],
license="BSD",
name="prokaryote",
package_data={
"prokaryote": [
"prokaryote-{}.jar".format(__version__)
]
},
packages=setuptools.find_packages(),
python_requires=">=2.7, <4",
url="https://github.com/CellProfiler/prokaryote",
version=__version__,
zip_safe=False
)