Skip to content

Commit e842cbf

Browse files
GabefireAdrian Chang
andauthored
GH Issue: Set Numpy < 2.0.0 as a requirement since it breaks our package (#1681)
Co-authored-by: Adrian Chang <achang@labelbox.com>
1 parent 555ce57 commit e842cbf

File tree

3 files changed

+50
-10
lines changed

3 files changed

+50
-10
lines changed

libs/labelbox/pyproject.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
name = "labelbox"
33
version = "3.72.2"
44
description = "Labelbox Python API"
5-
authors = [
6-
{ name = "Labelbox", email = "engineering@labelbox.com" }
7-
]
5+
authors = [{ name = "Labelbox", email = "engineering@labelbox.com" }]
86
dependencies = [
97
"google-api-core>=1.22.1",
108
"pydantic>=1.8",
@@ -16,7 +14,7 @@ dependencies = [
1614
]
1715
readme = "README.md"
1816
requires-python = ">=3.8"
19-
classifiers=[
17+
classifiers = [
2018
# How mature is this project?
2119
"Development Status :: 5 - Production/Stable",
2220
# Indicate who your project is intended for
@@ -27,7 +25,7 @@ classifiers=[
2725
"Intended Audience :: Education",
2826
# Pick your license as you wish
2927
"License :: OSI Approved :: Apache Software License",
30-
# Specify the Python versions you support here.
28+
# Specify the Python versions you support here.
3129
"Programming Language :: Python :: 3",
3230
"Programming Language :: Python :: 3.8",
3331
"Programming Language :: Python :: 3.9",
@@ -47,7 +45,8 @@ Changelog = "https://github.com/Labelbox/labelbox-python/blob/develop/libs/label
4745
[project.optional-dependencies]
4846
data = [
4947
"shapely>=2.0.3",
50-
"numpy>=1.24.4",
48+
# numpy v2 breaks package since it only supports python >3.9
49+
"numpy>=1.24.4, <2.0.0",
5150
"pillow>=10.2.0",
5251
"typeguard>=4.1.5",
5352
"imagesize>=1.4.1",
@@ -85,12 +84,12 @@ unit = "pytest tests/unit"
8584
# LABELBOX_TEST_ENVIRON="ephemeral" \
8685
# SERVICE_API_KEY=${SERVICE_API_KEY} \
8786
# LABELBOX_TEST_BASE_URL="http://host.docker.internal:8080" \
88-
integration = { cmd = "pytest tests/integration" }
87+
integration = { cmd = "pytest tests/integration" }
8988
data = { cmd = "pytest tests/data" }
9089
yapf-lint = "yapf tests src -i --verbose --recursive --parallel --style \"google\""
9190
mypy-lint = "mypy src --pretty --show-error-codes --non-interactive --install-types"
9291
lint = { chain = ["yapf-lint", "mypy-lint"] }
93-
test = { chain = ["lint", "unit", "integration" ] }
92+
test = { chain = ["lint", "unit", "integration"] }
9493

9594
[tool.hatch.metadata]
9695
allow-direct-references = true

requirements-dev.lock

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# last locked with the following flags:
55
# pre: false
66
# features: []
7-
# all-features: false
7+
# all-features: true
88
# with-sources: false
99
# generate-hashes: false
1010

@@ -32,6 +32,7 @@ bleach==6.1.0
3232
cachetools==5.3.3
3333
# via google-auth
3434
certifi==2024.2.2
35+
# via pyproj
3536
# via requests
3637
charset-normalizer==3.3.2
3738
# via requests
@@ -75,11 +76,13 @@ googleapis-common-protos==1.63.0
7576
idna==3.7
7677
# via requests
7778
imagesize==1.4.1
79+
# via labelbox
7880
# via sphinx
7981
importlib-metadata==7.1.0
8082
# via jupyter-client
8183
# via nbconvert
8284
# via sphinx
85+
# via typeguard
8386
# via yapf
8487
importlib-resources==6.4.0
8588
# via jsonschema
@@ -127,7 +130,12 @@ nbformat==5.10.4
127130
# via nbclient
128131
# via nbconvert
129132
numpy==1.24.4
133+
# via labelbox
134+
# via opencv-python-headless
130135
# via pandas
136+
# via shapely
137+
opencv-python-headless==4.10.0.84
138+
# via labelbox
131139
packaging==24.0
132140
# via black
133141
# via nbconvert
@@ -146,6 +154,8 @@ pexpect==4.9.0
146154
# via ipython
147155
pickleshare==0.7.5
148156
# via ipython
157+
pillow==10.3.0
158+
# via labelbox
149159
pkgutil-resolve-name==1.3.10
150160
# via jsonschema
151161
platformdirs==4.2.2
@@ -176,11 +186,15 @@ pydantic==2.7.2
176186
# via labelbox
177187
pydantic-core==2.18.3
178188
# via pydantic
189+
pygeotile==1.0.6
190+
# via labelbox
179191
pygments==2.18.0
180192
# via ipython
181193
# via nbconvert
182194
# via rich
183195
# via sphinx
196+
pyproj==3.5.0
197+
# via labelbox
184198
pytest==8.2.1
185199
# via pytest-cov
186200
# via pytest-rerunfailures
@@ -217,6 +231,8 @@ rpds-py==0.18.1
217231
# via referencing
218232
rsa==4.9
219233
# via google-auth
234+
shapely==2.0.4
235+
# via labelbox
220236
shellingham==1.5.4
221237
# via typer
222238
six==1.16.0
@@ -278,6 +294,8 @@ traitlets==5.14.3
278294
# via nbclient
279295
# via nbconvert
280296
# via nbformat
297+
typeguard==4.3.0
298+
# via labelbox
281299
typer==0.12.3
282300
# via databooks
283301
# via toml-cli
@@ -290,10 +308,12 @@ typing-extensions==4.12.0
290308
# via black
291309
# via databooks
292310
# via ipython
311+
# via labelbox
293312
# via mypy
294313
# via pydantic
295314
# via pydantic-core
296315
# via rich
316+
# via typeguard
297317
# via typer
298318
tzdata==2024.1
299319
# via pandas

requirements.lock

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# last locked with the following flags:
55
# pre: false
66
# features: []
7-
# all-features: false
7+
# all-features: true
88
# with-sources: false
99
# generate-hashes: false
1010

@@ -18,6 +18,7 @@ babel==2.15.0
1818
cachetools==5.3.3
1919
# via google-auth
2020
certifi==2024.2.2
21+
# via pyproj
2122
# via requests
2223
charset-normalizer==3.3.2
2324
# via requests
@@ -35,15 +36,25 @@ googleapis-common-protos==1.63.0
3536
idna==3.7
3637
# via requests
3738
imagesize==1.4.1
39+
# via labelbox
3840
# via sphinx
3941
importlib-metadata==7.1.0
4042
# via sphinx
43+
# via typeguard
4144
jinja2==3.1.4
4245
# via sphinx
4346
markupsafe==2.1.5
4447
# via jinja2
48+
numpy==1.24.4
49+
# via labelbox
50+
# via opencv-python-headless
51+
# via shapely
52+
opencv-python-headless==4.10.0.84
53+
# via labelbox
4554
packaging==24.0
4655
# via sphinx
56+
pillow==10.3.0
57+
# via labelbox
4758
proto-plus==1.23.0
4859
# via google-api-core
4960
protobuf==4.25.3
@@ -59,8 +70,12 @@ pydantic==2.7.2
5970
# via labelbox
6071
pydantic-core==2.18.3
6172
# via pydantic
73+
pygeotile==1.0.6
74+
# via labelbox
6275
pygments==2.18.0
6376
# via sphinx
77+
pyproj==3.5.0
78+
# via labelbox
6479
python-dateutil==2.8.2
6580
# via labelbox
6681
pytz==2024.1
@@ -71,6 +86,8 @@ requests==2.32.2
7186
# via sphinx
7287
rsa==4.9
7388
# via google-auth
89+
shapely==2.0.4
90+
# via labelbox
7491
six==1.16.0
7592
# via python-dateutil
7693
snowballstemmer==2.2.0
@@ -98,10 +115,14 @@ strenum==0.4.15
98115
# via labelbox
99116
tqdm==4.66.4
100117
# via labelbox
118+
typeguard==4.3.0
119+
# via labelbox
101120
typing-extensions==4.12.0
102121
# via annotated-types
122+
# via labelbox
103123
# via pydantic
104124
# via pydantic-core
125+
# via typeguard
105126
urllib3==2.2.1
106127
# via requests
107128
zipp==3.19.0

0 commit comments

Comments
 (0)