Skip to content

Commit 213f870

Browse files
stefannicastrickvlfa9r
authored
[backport/0.43] Backport important patches (#2061)
* Remove latest from released artifacts * hard pin SQLModel * limit openai dependency to <1.0.0 (#2027) * Fix user activation * Prepare release 0.43.1 * Fix linter errors * Fix PyYAML and linter errors * Fix llama_index mypy errors * Remove failing langchain and llama_index unit tests --------- Co-authored-by: Alex Strick van Linschoten <[email protected]> Co-authored-by: Alex Strick van Linschoten <[email protected]> Co-authored-by: Felix Altenberger <[email protected]>
1 parent 3efc6f5 commit 213f870

File tree

21 files changed

+43
-153
lines changed

21 files changed

+43
-153
lines changed

.github/workflows/publish_api_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
5252
- name: Runs docs generation
5353
run: |
54-
bash scripts/generate-docs.sh -s src/zenml/ --push --latest -v ${{ steps.get_version.outputs.VERSION }}
54+
bash scripts/generate-docs.sh -s src/zenml/ --push -v ${{ steps.get_version.outputs.VERSION }}

.github/workflows/publish_to_pypi.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ jobs:
3131
virtualenvs-in-project: true
3232

3333
- name: Include latest dashboard
34-
run: bash scripts/install-dashboard.sh
34+
shell: bash
35+
env:
36+
TAG: v0.9.0
37+
run: scripts/install-dashboard.sh
3538

3639
- name: publish
3740
env:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
<br />
9292
<b>ZenML Cloud</b> is now available in beta. <a href="https://cloud.zenml.io">Sign up</a> to see it in action.
9393
<br />
94-
🎉 Version 0.43.0 is out. Check out the release notes
94+
🎉 Version 0.43.1 is out. Check out the release notes
9595
<a href="https://github.com/zenml-io/zenml/releases">here</a>.
9696
<br />
9797
<a href="https://www.linkedin.com/company/zenml/">

RELEASE_NOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<!-- markdown-link-check-disable -->
22

3+
# 0.43.1
4+
5+
Backports some important fixes that have been introduced in more recent versions
6+
of ZenML to the 0.43.x release line.
7+
8+
**Full Changelog**: https://github.com/zenml-io/zenml/compare/0.43.0...0.43.1
9+
310
# 0.43.0
411

512
This release brings limited support for Python 3.11,

docs/book/toc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158

159159
## Reference
160160

161-
* [🤷 SDK & CLI reference](https://sdkdocs.zenml.io/0.43.0/)
161+
* [🤷 SDK & CLI reference](https://sdkdocs.zenml.io/0.43.1/)
162162
* [🤷 Server API reference](https://demoserver.zenml.io/docs)
163163
* [♻ Migration guide](reference/migration-guide/migration-guide.md)
164164
* [Migration guide 0.13.2 → 0.20.0](reference/migration-guide/migration-zero-twenty.md)

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "zenml"
3-
version = "0.43.0"
3+
version = "0.43.1"
44
packages = [
55
{ include = "zenml", from = "src" },
66
]
@@ -70,7 +70,7 @@ python-terraform = { version = "^0.10.1" }
7070
pyyaml = ">=6.0.1"
7171
rich = {extras = ["jupyter"], version = "^12.0.0"}
7272
sqlalchemy_utils = "0.38.3"
73-
sqlmodel = "~0.0.8"
73+
sqlmodel = "0.0.8"
7474

7575
# Optional dependencies for the ZenServer
7676
fastapi = { version = ">=0.75,<0.100", optional = true }
@@ -349,6 +349,7 @@ module = [
349349
"datasets.*",
350350
"pyngrok.*",
351351
"cloudpickle.*",
352+
"matplotlib.*",
352353
]
353354
ignore_missing_imports = true
354355

release-cloudbuild.yaml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ steps:
1111
-f docker/base.Dockerfile . \
1212
-t $$USERNAME/zenml:$TAG_NAME-py3.8 \
1313
-t $$USERNAME/zenml:$TAG_NAME
14-
15-
# use latest tags only for official releases
16-
if [[ $TAG_NAME =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then
17-
docker tag $$USERNAME/zenml:$TAG_NAME-py3.8 $$USERNAME/zenml:py3.8
18-
docker tag $$USERNAME/zenml:$TAG_NAME-py3.8 $$USERNAME/zenml:latest
19-
fi
2014
id: build-base-3.8
2115
waitFor: ['-']
2216
entrypoint: bash
@@ -34,11 +28,6 @@ steps:
3428
--target base \
3529
-f docker/base.Dockerfile . \
3630
-t $$USERNAME/zenml:$TAG_NAME-py3.9
37-
38-
# use latest tags only for official releases
39-
if [[ $TAG_NAME =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then
40-
docker tag $$USERNAME/zenml:$TAG_NAME-py3.9 $$USERNAME/zenml:py3.9
41-
fi
4231
id: build-base-3.9
4332
waitFor: ['-']
4433
entrypoint: bash
@@ -56,11 +45,6 @@ steps:
5645
--target base \
5746
-f docker/base.Dockerfile . \
5847
-t $$USERNAME/zenml:$TAG_NAME-py3.10
59-
60-
# use latest tags only for official releases
61-
if [[ $TAG_NAME =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then
62-
docker tag $$USERNAME/zenml:$TAG_NAME-py3.10 $$USERNAME/zenml:py3.10
63-
fi
6448
id: build-base-3.10
6549
waitFor: ['-']
6650
entrypoint: bash
@@ -78,11 +62,6 @@ steps:
7862
--target base \
7963
-f docker/base.Dockerfile . \
8064
-t $$USERNAME/zenml:$TAG_NAME-py3.11
81-
82-
# use latest tags only for official releases
83-
if [[ $TAG_NAME =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then
84-
docker tag $$USERNAME/zenml:$TAG_NAME-py3.11 $$USERNAME/zenml:py3.11
85-
fi
8665
id: build-base-3.11
8766
waitFor: ['-']
8867
entrypoint: bash
@@ -99,11 +78,6 @@ steps:
9978
--build-arg PYTHON_VERSION=3.8 \
10079
-f docker/base.Dockerfile . \
10180
-t $$USERNAME/zenml-server:$TAG_NAME
102-
103-
# use latest tags only for official releases
104-
if [[ $TAG_NAME =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then
105-
docker tag $$USERNAME/zenml-server:$TAG_NAME $$USERNAME/zenml-server:latest
106-
fi
10781
id: build-server
10882
waitFor: ['-']
10983
entrypoint: bash

scripts/install-zenml-dev.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,16 @@ install_integrations() {
4848
zenml integration export-requirements \
4949
--output-file integration-requirements.txt \
5050
$ignore_integrations_args
51+
52+
# pin pyyaml>=6.0.1
53+
echo "" >> integration-requirements.txt
54+
echo "pyyaml>=6.0.1" >> integration-requirements.txt
55+
5156
pip install -r integration-requirements.txt
5257
rm integration-requirements.txt
5358

54-
# install langchain and llama_index integrations separately
55-
zenml integration install -y langchain llama_index
59+
# install langchain separately
60+
zenml integration install -y langchain
5661
}
5762

5863

src/zenml/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.43.0
1+
0.43.1

src/zenml/integrations/langchain/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class LangchainIntegration(Integration):
2525
"""Definition of langchain integration for ZenML."""
2626

2727
NAME = LANGCHAIN
28-
REQUIREMENTS = ["langchain>=0.0.116"]
28+
REQUIREMENTS = ["langchain>=0.0.116", "pyyaml>=6.0.1"]
2929

3030
@classmethod
3131
def activate(cls) -> None:

0 commit comments

Comments
 (0)