-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
64 lines (58 loc) · 1.78 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
import io
import re
from pathlib import Path
from setuptools import setup, find_namespace_packages
def read(*names, **kwargs):
with io.open(
Path.joinpath(Path(__file__).parent, *names),
encoding = kwargs.get("encoding", "utf8")
) as fh:
return fh.read()
# Combine the readme and changelog to form the long_description
long_description = "%s\n%s" % (
re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub("", read("README.md")),
re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("docs/CHANGELOG.md"))
)
setup(
python_requires = ">=3.7",
name = "colonyscanalyser",
version = "0.6.2",
description = "An image analysis tool for measuring microorganism colony growth",
long_description = long_description,
long_description_content_type = "text/markdown",
url = "https://github.com/Erik-White/ColonyScanalyser/",
author = "Erik White",
author_email = "",
license = "GPL-3.0",
packages = find_namespace_packages(where = "src", exclude = ["tests", "tests.*"]),
package_dir = {"": "src"},
zip_safe = False,
install_requires = [
"numpy >= 1.18",
"matplotlib",
"scikit-image >= 0.17",
"imreg_dft",
"webcolors",
# Ensure metadata is available on Python <3.8
"importlib-metadata ~= 1.0 ; python_version < '3.8'"
],
extras_require = {
"dev": [
"flake8",
"check-manifest",
"pytest",
"pytest-cov"
],
"test": [
"flake8",
"pytest",
"pytest-cov"
],
},
entry_points={
'console_scripts': [
'colonyscanalyser = colonyscanalyser.main:main',
'scanalyser = colonyscanalyser.main:main',
],
},
)