Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set pyproject.toml #3821

Merged
merged 18 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ SOURCE_ETA_INSTALL=false
SCRATCH_MONGODB_INSTALL=false
BUILD_APP=true
VOXEL51_INSTALL=false
GITHUB_INSTALL=false
E2E_INSTALL=false
while getopts "hdempv" FLAG; do
case "${FLAG}" in
h) SHOW_HELP=true ;;
Expand Down Expand Up @@ -99,15 +101,21 @@ if [ ${VOXEL51_INSTALL} = false ]; then
pip install --upgrade fiftyone-brain
fi

pip install poetry

echo "***** INSTALLING FIFTYONE *****"
if [ ${DEV_INSTALL} = true ] || [ ${VOXEL51_INSTALL} = true ]; then
echo "Performing dev install"
pip install -r requirements/dev.txt
pre-commit install
pip install -e .
poetry install --with docs,extras,test,dev
elif [ ${GITHUB_INSTALL} = true ]; then
echo "Performing github install"
poetry install --with test,github
elif [ ${E2E_INSTALL} = true ]; then
echo "Performing e2e install"
poetry install --with test,github,e2e
else
pip install -r requirements.txt
pip install .
poetry build
pip install dist/fiftyone-*.whl
fi

if [ ${SOURCE_ETA_INSTALL} = true ]; then
Expand Down
119 changes: 110 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,111 @@
[tool.poetry]
name = "fiftyone"
version = "0.23.0"
description = ""
authors = ["None"]
license = "Apache License Version 2.0"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.8,<3.11"
aiofiles = "0.7.0"
argcomplete = "1.11.0"
beautifulsoup4 = "^4.12.2"
boto3 = "1.17.36"
cachetools = "5.2.0"
mongoengine = "0.24.2"
dacite = "1.6.0"
deprecated = "1.2.11"
ftfy = "6.1.1"
humanize = "^4.8.0"
hypercorn = "0.13.2"
importlib-metadata = {version = "1.4.0", markers = "python_version < \"3.8\""}
jinja2 = "3.0.3"
kaleido = "0.2.1"
matplotlib = "3.5.2"
motor = ">=2.5"
numpy = "<=1.26.2"
packaging = "23.2"
pandas = ">=1.3"
pillow = ">=6.2"
plotly = "5.17.0"
pprintpp = "0.4.0"
psutil = ">=5.7.0"
pymongo = ">=3.12"
pytz = "2022.1"
pyyaml = "6.0.1"
regex = "2022.8.17"
retrying = ">=1.3.3"
scikit-learn = ">=0.23.2"
scikit-image = ">=0.16.2"
setuptools = ">=45.2.0"
sseclient-py = ">=1.7.2"
sse-starlette = ">=0.10.3"
starlette = "0.27.0"
strawberry-graphql = "0.138.1"
tabulate = "0.8.10"
xmltodict = "0.12.0"
universal-analytics-python3 = ">=1.0.1,<2"
fiftyone-brain = ">=0.13.2,<0.14.0"
fiftyone-db = ">=0.4,<1.0"
voxel51-eta = ">=0.12,<1.0"
httpx = "0.23.0"


[tool.poetry.group.dev.dependencies]
ipython = "8.12.3"
pre-commit = "2.18.1"
pylint = "2.13.9"


[tool.poetry.group.test.dependencies]
open3d = ">=0.16.0"
itsdangerous = "2.0.1"
werkzeug = "3.0.1"
pytest = "7.3.1"
pytest-cov = "4.0.0"
pytest-mock = "3.10.0"
pytest-asyncio = "^0.21.1"
twine = ">=3"


[tool.poetry.group.docs.dependencies]
autodocsumm = "0.2.7"
docutils = "0.16"
ipykernel = "5.3.0"
ipython-genutils = "0.2.0"
jsx-lexer = "2.0.0"
jupyter-client = "6.1.3"
myst-parser = "0.13.7"
nbsphinx = "0.8.8"
sphinx-tabs = "1.2.1"
sphinx = "3.5.4"
sphinxcontrib-napoleon = "0.7"
sphinx-copybutton = "0.4.0"


[tool.poetry.group.extras.dependencies]
google-api-python-client = ">=1.6.5"
google-cloud-storage = ">=1.36"
httplib2 = "<=0.15"
ipywidgets = ">=7.5,<8"
notebook = ">=5.3"
pydicom = ">=2.2.0"
shapely = ">=1.7.1"


[tool.poetry.group.github.dependencies]
pydicom = ">=2.2.0"
shapely = ">=1.7.1"
tensorflow = "2.13.1"
tensorflow-datasets = "4.8.3"
torch = "^2.1.1"
torchvision = "^0.16.1"


[tool.poetry.group.e2e.dependencies]
umap-learn = ">=0.5.3"

[build-system]
requires = ["importlib-metadata; python_version<'3.8'", "setuptools", "wheel"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benjaminpkane we still need this right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes 👍

Will need to update GitHub workflows as well

[tool.black]
line-length = 79
include = '\.pyi?$'
exclude = '''
/(
| \.git
)/
'''
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
3 changes: 0 additions & 3 deletions requirements/codecov.yml

This file was deleted.

34 changes: 0 additions & 34 deletions requirements/common.txt

This file was deleted.

8 changes: 0 additions & 8 deletions requirements/dev.txt

This file was deleted.

12 changes: 0 additions & 12 deletions requirements/docs.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements/e2e.txt

This file was deleted.

7 changes: 0 additions & 7 deletions requirements/extras.txt

This file was deleted.

9 changes: 0 additions & 9 deletions requirements/github.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements/prod.txt

This file was deleted.

8 changes: 0 additions & 8 deletions requirements/test.txt

This file was deleted.

Loading