forked from voxel51/fiftyone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
108 lines (94 loc) · 3.1 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/usr/bin/env python
"""
Installs FiftyOne.
| Copyright 2017-2020, Voxel51, Inc.
| `voxel51.com <https://voxel51.com/>`_
|
"""
import os
from setuptools import setup, find_packages
from wheel.bdist_wheel import bdist_wheel
class BdistWheelCustom(bdist_wheel):
def finalize_options(self):
bdist_wheel.finalize_options(self)
# make just the wheel require these packages, since they aren't needed
# for a development installation
self.distribution.install_requires += [
"fiftyone-brain>=0.2,<0.3",
"fiftyone-db>=0.2.1,<0.3",
]
VERSION = "0.7.1"
def get_version():
if "RELEASE_VERSION" in os.environ:
version = os.environ["RELEASE_VERSION"]
if not version.startswith(VERSION):
raise ValueError(
"Release version does not match version: %s and %s"
% (version, VERSION)
)
return version
return VERSION
EXTRAS_REQUIREMENTS = {"desktop": ["fiftyone-desktop>=0.7.0,<0.8"]}
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="fiftyone",
version=get_version(),
description=(
"FiftyOne: a powerful package for dataset curation, analysis, and "
"visualization"
),
author="Voxel51, Inc.",
author_email="info@voxel51.com",
url="https://github.com/voxel51/fiftyone",
extras_require=EXTRAS_REQUIREMENTS,
license="Apache",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages() + ["fiftyone.recipes", "fiftyone.tutorials"],
package_dir={
"fiftyone.recipes": "docs/source/recipes",
"fiftyone.tutorials": "docs/source/tutorials",
},
include_package_data=True,
install_requires=[
# third-party packages
"argcomplete",
"eventlet",
"future",
"Jinja2",
"mongoengine==0.20.0",
"motor<3,>=2.3",
"numpy",
"packaging",
"Pillow>=6.2",
"pprintpp",
"psutil",
"pymongo<4,>=3.11",
"retrying",
"scikit-image",
"setuptools",
"tabulate",
"tornado>=5.1.1,<7",
"xmltodict",
"universal-analytics-python3>=1.0.1,<2",
# internal packages
"voxel51-eta>=0.2.1,<0.3",
# ETA dependency - restricted to a maximum version known to provide
# wheels here because it tends to publish sdists several hours before
# wheels. When users install FiftyOne in this window, they will need to
# compile OpenCV from source, leading to either errors or a
# time-consuming installation.
"opencv-python-headless<=4.4.0.46",
],
classifiers=[
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
],
entry_points={"console_scripts": ["fiftyone=fiftyone.core.cli:main"]},
python_requires=">=3.6",
cmdclass={"bdist_wheel": BdistWheelCustom},
)