-
Notifications
You must be signed in to change notification settings - Fork 99
/
setup.py
61 lines (51 loc) · 2.04 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
#!/usr/bin/env python
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
import re
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
# Get the sleap version
with open(path.join(here, "sleap/version.py")) as f:
version_file = f.read()
sleap_version = re.search("\d.+(?=['\"])", version_file).group(0)
def get_requirements(require_name=None):
prefix = require_name + "_" if require_name is not None else ""
with open(path.join(here, prefix + "requirements.txt"), encoding="utf-8") as f:
return f.read().strip().replace("-gpu", "").split("\n")
setup(
name="sleap",
version=sleap_version,
setup_requires=["setuptools_scm"],
install_requires=get_requirements(),
extras_require={"dev": get_requirements("dev"),},
description="SLEAP (Social LEAP Estimates Animal Pose) is a deep learning framework for estimating animal pose.",
long_description=long_description,
long_description_content_type="text/x-rst",
author="Talmo Pereira, David Turner, Nat Tabris",
author_email="[email protected]",
project_urls={
"Documentation": "https://sleap.ai/#sleap",
"Bug Tracker": "https://github.com/murthylab/sleap/issues",
"Source Code": "https://github.com/murthylab/sleap",
},
url="https://sleap.ai",
keywords="deep learning, pose estimation, tracking, neuroscience",
license="BSD 3-Clause License",
packages=find_packages(exclude=["tensorflow"]),
include_package_data=True,
entry_points={
"console_scripts": [
"sleap-convert=sleap.io.convert:main",
"sleap-label=sleap.gui.app:main",
"sleap-train=sleap.nn.training:main",
"sleap-track=sleap.nn.inference:main",
"sleap-inspect=sleap.info.labels:main",
"sleap-diagnostic=sleap.diagnostic:main",
],
},
python_requires=">=3.6",
)