Skip to content

Commit

Permalink
Image build script flag and remove 2.7 from travis, bug for serialize (
Browse files Browse the repository at this point in the history
  • Loading branch information
wild-endeavor authored May 5, 2020
1 parent fe5b620 commit dfa9461
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: python
python:
- "2.7"
- "3.6"
install:
- pip install -r requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion flytekit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import absolute_import
import flytekit.plugins

__version__ = '0.7.1b0'
__version__ = '0.7.1b1'
6 changes: 5 additions & 1 deletion flytekit/clis/sdk_in_container/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def serialize_tasks_only(project, domain, pkgs, version, folder=None):
fname_index = str(i).zfill(zero_padded_length)
fname = '{}_{}.pb'.format(fname_index, entity._id.name)
click.echo(' Writing {} to\n {}'.format(entity._id, fname))
if folder:
fname = _os.path.join(folder, fname)
_write_proto_to_file(serialized, fname)

identifier_fname = '{}_{}.identifier.pb'.format(fname_index, entity._id.name)
Expand All @@ -62,7 +64,7 @@ def serialize_tasks_only(project, domain, pkgs, version, folder=None):
@system_entry_point
def serialize_all(project, domain, pkgs, version, folder=None):
"""
In order to register, we have to comply with Admin's endpoints. Those endpoints take the following object. These
In order to register, we have to comply with Admin's endpoints. Those endpoints take the following objects. These
flyteidl.admin.launch_plan_pb2.LaunchPlanSpec
flyteidl.admin.workflow_pb2.WorkflowSpec
flyteidl.admin.task_pb2.TaskSpec
Expand Down Expand Up @@ -105,6 +107,8 @@ def serialize_all(project, domain, pkgs, version, folder=None):
fname_index = str(i).zfill(zero_padded_length)
fname = '{}_{}.pb'.format(fname_index, entity._id.name)
click.echo(' Writing {} to\n {}'.format(entity._id, fname))
if folder:
fname = _os.path.join(folder, fname)
_write_proto_to_file(serialized, fname)

# Not everything serialized will necessarily have an identifier field in it, even though some do (like the
Expand Down
2 changes: 1 addition & 1 deletion scripts/flytekit_build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if [ -n "$REGISTRY" ]; then
echo "${IMAGE_NAME}:latest also tagged with ${FLYTE_INTERNAL_IMAGE}"

# Also push if there's a registry to push to
if [[ "${REGISTRY}" == "docker.io"* ]]; then
if [[ "${REGISTRY}" == "docker.io"* && -z "${NOPUSH}" ]]; then
docker login --username="${DOCKERHUB_USERNAME}" --password="${DOCKERHUB_PASSWORD}"
fi
docker push "${FLYTE_INTERNAL_IMAGE}"
Expand Down

0 comments on commit dfa9461

Please sign in to comment.