/
setup.py
60 lines (56 loc) · 2.18 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
from setuptools import setup
# Importing the "multiprocessing" module is required for the "nose.collector".
# See also: http://bugs.python.org/issue15881#msg170215
try:
import multiprocessing
except ImportError:
pass
# Define the test runner.
# See also:
# http://fgimian.github.io/blog/2014/04/27/running-nose-tests-with-plugins-using-the-python-setuptools-test-command/
from setuptools.command.test import test as TestCommand
class NoseTestCommand(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# Run nose ensuring that argv simulates running nosetests directly.
import nose
nose.run_exit(argv=['nosetests'])
version = "0.6.1"
readme = open('README.rst').read()
setup(name="jicbioimage.illustrate",
packages=["jicbioimage", "jicbioimage.illustrate"],
package_data={"jicbioimage.illustrate": ["fonts/*"]},
version=version,
description="Python package providing a set of tools for creating annotated images and illustrations.",
long_description=readme,
author="Tjelvar Olsson",
author_email = "tjelvar.olsson@jic.ac.uk",
url = "https://github.com/JIC-CSB/jicbioimage.illustrate",
download_url = "https://github.com/JIC-CSB/jicbioimage.illustrate/tarball/{}".format(version),
license="MIT",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Image Recognition",
],
keywords = ["microscopy", "image analysis"],
cmdclass={"test": NoseTestCommand},
tests_require=["nose", "coverage"],
install_requires=[
"pillow",
"numpy",
"scikit-image",
"jicbioimage.core",
]
)