Skip to content
Open
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
17 changes: 2 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
shell: /bin/bash --login -eo pipefail
steps:
- checkout
- restore_cache:
name: "Restore pip cache"
key: &pip-cache pip-{{ checksum "python/requirements.txt" }}-{{ checksum "python/dev-requirements.txt" }}
- run:
name: "Install python deps"
command: |
Expand All @@ -57,28 +54,21 @@ jobs:
python setup.py build_ext --inplace
mkdir test-results
pytest --junitxml=test-results/junit-report.xml
- save_cache:
key: *pip-cache
paths:
- /usr/local/lib64/python3.8/site-packages
- store_test_results:
path: python/test-results

linux_publish:
docker:
- image: secretflow/trustflow-ci-ubuntu20.04:0.1.0b
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 twine
Expand All @@ -97,7 +87,4 @@ workflows:
publish:
when: << pipeline.parameters.GHA_Action >>
jobs:
- linux_publish:
matrix:
parameters:
python_ver: ["3.8", "3.9", "3.10", "3.11"]
- linux_publish
2 changes: 1 addition & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cryptography
grpcio
sdc-apis==0.1.0b0
sdc-apis==0.2.0.dev20240320
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def bazel_build(self, ext):

setuptools.setup(
name="sdc-sdk",
version="0.1.0b0",
version="0.2.0.dev20240320",
author="secretflow",
author_email="secretflow-contact@service.alipay.com",
description="Secure Data Capsule SDK for python",
Expand Down