Skip to content

Commit

Permalink
Cherry-pick [Infra] Upgrade Protobuf (#13) (#14)
Browse files Browse the repository at this point in the history
[Infra] Upgrade Protobuf (#13)

* Update protobuf

* Add pb version

* Relax pb
  • Loading branch information
anakinxc authored Mar 20, 2024
1 parent 3d1cc64 commit cea800b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
16 changes: 5 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +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/release-ci:latest
resource_class: large
parameters:
python_ver:
type: string
shell: /bin/bash --login -eo pipefail
steps:
- checkout
- run:
name: "build package and publish"
command: |
conda create -n build python=<< parameters.python_ver >> -y
source /root/miniconda3/etc/profile.d/conda.sh
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 @@ -80,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.0.dev20230930",
version="0.2.0.dev20240320",
author="secretflow",
author_email="[email protected]",
description="SecretFlow Data Capsule apis proto generated python",
Expand Down

0 comments on commit cea800b

Please sign in to comment.