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

Update numpy requirement from <1.24.0 to <1.25.0 in /requirements #959

Merged
merged 22 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
969a4dd
Update numpy requirement from <1.24.0 to <1.25.0 in /requirements
dependabot[bot] Jan 9, 2023
cd8220b
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
Borda May 18, 2023
01bba9c
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
Borda May 18, 2023
1c6981d
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
Borda May 19, 2023
b3bfd3b
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
Borda May 19, 2023
2d88511
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 19, 2023
3862019
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 20, 2023
4599a56
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 20, 2023
2044475
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 20, 2023
1345be4
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 20, 2023
4dadc11
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 20, 2023
fa1bae2
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 20, 2023
cd4a0f7
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 20, 2023
2e58a37
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 20, 2023
4361026
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 21, 2023
06d8594
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 21, 2023
3d41231
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 22, 2023
3512213
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 22, 2023
a849084
Merge branch 'master' into dependabot-pip-requirements-numpy-lt-1.25.0
mergify[bot] May 29, 2023
d1b491a
imports
Borda May 30, 2023
3d1149b
fmt
Borda May 30, 2023
1f9eea9
bool
Borda May 30, 2023
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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy <1.24.0 # strict # todo: seeing some compatibility issues
numpy <1.25.0
pytorch-lightning >1.7.0, <1.9.0 # strict
torchmetrics <0.11.0 # strict
lightning-utilities >0.3.1 # this is needed for PL 1.7
Expand Down
7 changes: 7 additions & 0 deletions src/pl_bolts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

import os

import numpy

from pl_bolts.__about__ import * # noqa: F401, F403

# adding compatibility for numpy >= 1.24
for tp_name, tp_ins in [("object", object), ("bool", bool), ("int", int), ("float", float)]:
if not hasattr(numpy, tp_name):
setattr(numpy, tp_name, tp_ins)

_PACKAGE_ROOT = os.path.dirname(__file__)
_PROJECT_ROOT = os.path.dirname(_PACKAGE_ROOT)
_HTTPS_AWS_HUB = "https://pl-bolts-weights.s3.us-east-2.amazonaws.com"
Expand Down