|
1 | 1 | #!/usr/bin/env python |
2 | 2 | from os import path |
3 | | - |
4 | 3 | from setuptools import find_packages, setup |
| 4 | +import urllib.request |
5 | 5 |
|
6 | 6 | pkg_name = "element_calcium_imaging" |
7 | 7 | here = path.abspath(path.dirname(__file__)) |
|
12 | 12 | with open(path.join(here, pkg_name, "version.py")) as f: |
13 | 13 | exec(f.read()) |
14 | 14 |
|
| 15 | +with urllib.request.urlopen( |
| 16 | + "https://raw.githubusercontent.com/flatironinstitute/CaImAn/master/requirements.txt" |
| 17 | +) as f: |
| 18 | + caiman_requirements = f.read().decode("UTF-8").split("\n") |
| 19 | + |
| 20 | +caiman_requirements.remove("") |
| 21 | +caiman_requirements.append("future") |
| 22 | + |
15 | 23 | setup( |
16 | 24 | name=pkg_name.replace("_", "-"), |
17 | 25 | version=__version__, # noqa: F821 |
|
32 | 40 | "plotly", |
33 | 41 | ], |
34 | 42 | extras_require={ |
| 43 | + "caiman_requirements": [caiman_requirements], |
| 44 | + "caiman": ["caiman @ git+https://github.com/datajoint/CaImAn"], |
35 | 45 | "elements": [ |
36 | 46 | "element-animal>=0.1.8", |
37 | 47 | "element-event>=0.2.3", |
38 | | - "element-interface>=0.5.4", |
| 48 | + "element-interface>=0.6.0", |
39 | 49 | "element-lab>=0.3.0", |
40 | 50 | "element-session>=0.1.5", |
41 | 51 | ], |
42 | 52 | "extract": ["matlabengine", "scipy"], |
43 | 53 | "nd2": ["nd2"], |
| 54 | + "sbxreader": ["sbxreader @ git+https://github.com/jcouto/sbxreader"], |
| 55 | + "scanreader": ["scanreader @ git+https://github.com/atlab/scanreader"], |
44 | 56 | "suite2p": ["suite2p[io]>=0.12.1"], |
45 | 57 | "tests": ["pytest", "pytest-cov", "shutils"], |
46 | 58 | }, |
|
0 commit comments