Skip to content

GH Issue: Set Numpy < 2.0.0 as a requirement since it breaks our package #1681

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

Merged
merged 5 commits into from
Jun 20, 2024
Merged
Changes from 1 commit
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
15 changes: 7 additions & 8 deletions libs/labelbox/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
name = "labelbox"
version = "3.72.2"
description = "Labelbox Python API"
authors = [
{ name = "Labelbox", email = "engineering@labelbox.com" }
]
authors = [{ name = "Labelbox", email = "engineering@labelbox.com" }]
dependencies = [
"google-api-core>=1.22.1",
"pydantic>=1.8",
Expand All @@ -16,7 +14,7 @@ dependencies = [
]
readme = "README.md"
requires-python = ">=3.8"
classifiers=[
classifiers = [
# How mature is this project?
"Development Status :: 5 - Production/Stable",
# Indicate who your project is intended for
Expand All @@ -27,7 +25,7 @@ classifiers=[
"Intended Audience :: Education",
# Pick your license as you wish
"License :: OSI Approved :: Apache Software License",
# Specify the Python versions you support here.
# Specify the Python versions you support here.
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand All @@ -47,7 +45,8 @@ Changelog = "https://github.com/Labelbox/labelbox-python/blob/develop/libs/label
[project.optional-dependencies]
data = [
"shapely>=2.0.3",
"numpy>=1.24.4",
# numpy v2 breaks package since it only supports python >3.9
"numpy>=1.24.4, <2.0.0",
"pillow>=10.2.0",
"typeguard>=4.1.5",
"imagesize>=1.4.1",
Expand Down Expand Up @@ -85,12 +84,12 @@ unit = "pytest tests/unit"
# LABELBOX_TEST_ENVIRON="ephemeral" \
# SERVICE_API_KEY=${SERVICE_API_KEY} \
# LABELBOX_TEST_BASE_URL="http://host.docker.internal:8080" \
integration = { cmd = "pytest tests/integration" }
integration = { cmd = "pytest tests/integration" }
data = { cmd = "pytest tests/data" }
yapf-lint = "yapf tests src -i --verbose --recursive --parallel --style \"google\""
mypy-lint = "mypy src --pretty --show-error-codes --non-interactive --install-types"
lint = { chain = ["yapf-lint", "mypy-lint"] }
test = { chain = ["lint", "unit", "integration" ] }
test = { chain = ["lint", "unit", "integration"] }

[tool.hatch.metadata]
allow-direct-references = true
Expand Down
Loading