-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
54 lines (50 loc) · 1.5 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
from setuptools import setup
import os
import re
import codecs
import janni
# Create new package with python setup.py sdist
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
with codecs.open(os.path.join(here, *parts), 'r') as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='janni',
version=find_version("janni", "__init__.py"),
python_requires='>=3.5.0, <3.9',
packages=['janni'],
url='https://github.com/MPI-Dortmund/sphire-janni',
license='MIT',
author='Thorsten Wagner',
setup_requires=["Cython"],
extras_require={
'gpu': ['tensorflow-gpu == 1.15.4'],
'cpu': ['tensorflow == 1.15.4']
},
install_requires=[
"mrcfile >=1.3.0",
"Keras == 2.3.1",
"numpy >= 1.16.0, < 1.19.0",
"h5py >= 2.5.0, < 3.0.0",
"Pillow >= 6.0.0",
"Cython",
"tifffile==2020.9.3",
"GooeyDev >= 1.0.8b3",
"wxPython >= 4.1.0",
"scikit-image >= 0.15.0",
"protobuf < 4"
],
author_email='[email protected]',
description='noise 2 noise for cryo em data',
entry_points={
'console_scripts': [
'janni_denoise.py = janni.jmain:_main_'
]},
)