Skip to content

Commit c6442ba

Browse files
committed
fix deprecation warnings
1 parent b2725af commit c6442ba

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/nightly.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
pip install setuptools wheel
4646
pip install tensorflow
4747
pip install keras
48+
pip install build
4849
4950
- name: Run unit tests
5051
run: pytest
@@ -57,7 +58,7 @@ jobs:
5758

5859
# Build the Python Wheel and the source distribution.
5960
- name: Package release artifacts
60-
run: python setup.py bdist_wheel sdist
61+
run: python -m build
6162

6263
# Attach the packaged artifacts to the workflow output. These can be manually
6364
# downloaded for later inspection if necessary.

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
pip install setuptools wheel
5757
pip install tensorflow
5858
pip install keras
59+
pip install build
5960
6061
- name: Run unit tests
6162
run: pytest
@@ -68,7 +69,7 @@ jobs:
6869

6970
# Build the Python Wheel and the source distribution.
7071
- name: Package release artifacts
71-
run: python setup.py bdist_wheel sdist
72+
run: python -m build
7273

7374
# Attach the packaged artifacts to the workflow output. These can be manually
7475
# downloaded for later inspection if necessary.

integration/test_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _verify_bucket(bucket, expected_name):
3838
blob.upload_from_string('Hello World')
3939

4040
blob = bucket.get_blob(file_name)
41-
assert blob.download_as_string().decode() == 'Hello World'
41+
assert blob.download_as_bytes().decode() == 'Hello World'
4242

4343
bucket.delete_blob(file_name)
4444
assert not bucket.get_blob(file_name)

0 commit comments

Comments
 (0)