forked from v7labs/darwin-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (51 loc) · 1.59 KB
/
setup.py
File metadata and controls
55 lines (51 loc) · 1.59 KB
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
import re
from pathlib import Path
import setuptools
with open(Path(__file__).parent / "darwin" / "version" / "__init__.py", "r") as f:
content = f.read()
# from https://www.py4u.net/discuss/139845
version = re.search(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', content).group(1)
with open("README.md", "rb") as f:
long_description = f.read().decode("utf-8")
setuptools.setup(
name="darwin-py",
version=version,
author="V7",
author_email="info@v7labs.com",
description="Library and command line interface for darwin.v7labs.com",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/v7labs/darwin-py",
setup_requires=["wheel"],
install_requires=[
"argcomplete",
"dataclasses;python_version<'3.7'",
"humanize",
"numpy",
"pillow",
"pyyaml>=5.1",
"requests",
"rich",
"upolygon==0.1.8",
"jsonschema==3.2.0",
"deprecation",
"pydantic",
],
extras_require={
"test": ["responses", "pytest", "pytest-describe", "sklearn"],
"ml": ["sklearn", "torch", "torchvision"],
},
packages=[
"darwin",
"darwin.importer",
"darwin.dataset",
"darwin.torch",
"darwin.exporter",
"darwin.importer.formats",
"darwin.exporter.formats",
"darwin.version",
],
entry_points={"console_scripts": ["darwin=darwin.cli:main"]},
classifiers=["Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License"],
python_requires=">=3.6",
)