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

[Infra] Upgrade Protobuf #13

Merged
merged 3 commits into from
Mar 20, 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
15 changes: 4 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,24 @@ jobs:
name: "Verify proto"
command: |
set -ex
python3 -m pip install grpcio-tools==1.48.2 mypy-protobuf==3.1.0
python3 -m pip install grpcio-tools mypy-protobuf "protobuf>=4,<5"
python protoc.py

linux_publish:
docker:
- image: secretflow/trustedflow-dev-ubuntu22.04:latest
resource_class: large
parameters:
python_ver:
type: string
shell: /bin/bash --login -eo pipefail
steps:
- checkout
- run:
name: "build package and publish"
command: |
source /root/miniconda3/etc/profile.d/conda.sh
conda create -n build python=<< parameters.python_ver >> -y
conda create -n build python=3.10 -y
conda activate build
cd python
python3 -m pip install grpcio-tools==1.48.2 mypy-protobuf==3.1.0 protobuf==3.19.4 twine
python3 -m pip install grpcio-tools mypy-protobuf "protobuf>=4,<5" twine
make build
ls dist/*.whl
python3 -m twine upload -r pypi -u __token__ -p ${PYPI_TWINE_TOKEN} dist/*.whl
Expand All @@ -81,8 +78,4 @@ workflows:
publish:
when: << pipeline.parameters.GHA_Action >>
jobs:
- linux_publish:
matrix:
parameters:
# python_ver: ["3.8", "3.9", "3.10", "3.11"]
python_ver: ["3.8"]
- linux_publish
2 changes: 1 addition & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
protobuf>=3.19, <3.20
protobuf>=4, <5
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def read(fname):

setuptools.setup(
name="sdc-apis",
version="0.2.1.dev240305",
version="0.2.1.dev240320",
author="secretflow",
author_email="secretflow-contact@service.alipay.com",
description="SecretFlow Data Capsule apis proto generated python",
Expand Down
Loading