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

Pin numpy<2.0.0 #2789

Merged
merged 9 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 1 addition & 7 deletions .github/workflows/integration-test-slow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,9 @@ jobs:
run: |
pip install uv
uv pip install --system "pyyaml==5.3.1" docker-compose
- name: Install Linux System Dependencies
if: (inputs.os == 'ubuntu-latest' || inputs.os == 'arc-runner-set')
run: sudo apt install graphviz
- name: Install MacOS System Dependencies
if: runner.os=='macOS'
run: brew install graphviz libomp
- name: Install Windows System Dependencies
if: runner.os=='Windows'
run: choco install graphviz
run: brew install libomp
- name: Unbreak Python in GHA for 3.8-3.10
if: runner.os=='macOS' && inputs.python-version != '3.11'
# github actions overwrites brew's python. Force it to reassert itself, by
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ distro = "^1.6.0"
docker = "~6.1.0"
httplib2 = "<0.20,>=0.19.1"
gitpython = "^3.1.18"
numpy = "<2.0.0"
pandas = ">=1.1.5"
passlib = { extras = ["bcrypt"], version = "~1.7.4" }
psutil = ">=5.0.0"
Expand Down Expand Up @@ -417,7 +418,6 @@ module = [
"IPython.core.*",
"IPython.display.*",
"plotly.*",
"graphviz.*",
"dash.*",
"dash_bootstrap_components.*",
"dash_cytoscape",
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-migrations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function test_upgrade_to_version() {
else
uv pip install "zenml[templates,server]==$VERSION"
# handles unpinned sqlmodel dependency in older versions
uv pip install "sqlmodel==0.0.8" "bcrypt==4.0.1" "pyyaml-include<2.0"
uv pip install "sqlmodel==0.0.8" "bcrypt==4.0.1" "pyyaml-include<2.0" "numpy<2.0.0" "tenacity!=8.4.0"
fi

# Get the major and minor version of Python
Expand Down
6 changes: 5 additions & 1 deletion src/zenml/integrations/airflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ class AirflowIntegration(Integration):
NAME = AIRFLOW
# remove pendulum version requirement once Airflow supports
# pendulum>-3.0.0
REQUIREMENTS = ["apache-airflow~=2.4.0", "pendulum<3.0.0"]
REQUIREMENTS = [
"apache-airflow~=2.4.0",
"pendulum<3.0.0",
"tenacity!=8.4.0", # https://github.com/jd/tenacity/issues/471
]

@classmethod
def flavors(cls) -> List[Type[Flavor]]:
Expand Down
1 change: 0 additions & 1 deletion src/zenml/integrations/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
GCP = "gcp"
GITHUB = "github"
GITLAB = "gitlab"
GRAPHVIZ = "graphviz"
HUGGINGFACE = "huggingface"
HYPERAI = "hyperai"
GREAT_EXPECTATIONS = "great_expectations"
Expand Down
1 change: 1 addition & 0 deletions src/zenml/integrations/deepchecks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class DeepchecksIntegration(Integration):
"pandas<2.0.0",
"opencv-python==4.5.5.64", # pin to same version
"opencv-python-headless==4.5.5.64", # pin to same version
"tenacity!=8.4.0", # https://github.com/jd/tenacity/issues/471
]
APT_PACKAGES = ["ffmpeg", "libsm6", "libxext6"]

Expand Down
5 changes: 4 additions & 1 deletion src/zenml/integrations/evidently/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ class EvidentlyIntegration(Integration):
"""[Evidently](https://github.com/evidentlyai/evidently) integration for ZenML."""

NAME = EVIDENTLY
REQUIREMENTS = ["evidently>0.2.6,<0.4.5"] # supports pyyaml 6
REQUIREMENTS = [
"evidently>0.2.6,<0.4.5",
"tenacity!=8.4.0", # https://github.com/jd/tenacity/issues/471
] # supports pyyaml 6

@classmethod
def flavors(cls) -> List[Type[Flavor]]:
Expand Down
6 changes: 5 additions & 1 deletion src/zenml/integrations/langchain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ class LangchainIntegration(Integration):
"""Definition of langchain integration for ZenML."""

NAME = LANGCHAIN
REQUIREMENTS = ["langchain==0.0.325", "pyyaml>=6.0.1"]
REQUIREMENTS = [
"langchain==0.0.325",
"pyyaml>=6.0.1",
"tenacity!=8.4.0", # https://github.com/jd/tenacity/issues/471
]

@classmethod
def activate(cls) -> None:
Expand Down
6 changes: 5 additions & 1 deletion src/zenml/integrations/neural_prophet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ class NeuralProphetIntegration(Integration):
"""Definition of NeuralProphet integration for ZenML."""

NAME = NEURAL_PROPHET
REQUIREMENTS = ["neuralprophet>=0.3.2,<0.5.0", "holidays>=0.4.1,<0.25.0"]
REQUIREMENTS = [
"neuralprophet>=0.3.2,<0.5.0",
"holidays>=0.4.1,<0.25.0",
"tenacity!=8.4.0", # https://github.com/jd/tenacity/issues/471
]

@classmethod
def activate(cls) -> None:
Expand Down
Loading