Skip to content

Commit

Permalink
Merge pull request #5367 from FederatedAI/dev-2.0.0-rc
Browse files Browse the repository at this point in the history
release: 2.0.0
  • Loading branch information
dylan-fan authored Dec 29, 2023
2 parents ea550db + 59c1785 commit b53043d
Show file tree
Hide file tree
Showing 3,649 changed files with 467,087 additions and 323,361 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 0 additions & 12 deletions .flake8

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/autopep8-suggester.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/build_fate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build pyfate
on:
workflow_dispatch:
inputs:
source:
description: 'source branch'
required: true
type:
description: 'publish type, test or release'
required: false
default: 'test'

jobs:
build:
name: (${{github.event.inputs.type}} build) branch ${{github.event.inputs.source}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.inputs.source}}

- uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Build fate_client
run: |
python3 python/setup.py sdist --formats=gztar
- name: Twine check
run: |
pip install -U twine
twine check dist/*
- name: Upload to artifact
uses: actions/upload-artifact@v2
with:
path: |
dist/*
- name: Test Install
run: |
pip install -U pip
pip install --find-link=dist/ pyfate
- name: Upload to PyPI Test
if: ${{ github.event.inputs.type == 'test' }}
run: |
twine upload --repository testpypi dist/* --verbose
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypitest_token }}

- name: Upload to PyPI
if: ${{ github.event.inputs.type == 'release' }}
run: |
twine upload dist/* --verbose
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_token }}
194 changes: 0 additions & 194 deletions .github/workflows/build_fate_crypto.yml

This file was deleted.

88 changes: 88 additions & 0 deletions .github/workflows/build_fate_utils.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Build FATE-Utils

on:
workflow_dispatch:
inputs:
source:
description: 'source branch'
required: true
type:
description: 'publish type, test or testpypi or pypi'
required: false
default: 'test'

jobs:
build:
name: build wheel on ${{ matrix.os }}
runs-on: ${{ format('{0}-latest', matrix.os) }}
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.inputs.source}}
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: ubuntu-maturin
if: matrix.os == 'ubuntu'
uses: messense/maturin-action@v1
with:
manylinux: auto
command: build
args: --release -o dist -m rust/fate_utils/crates/fate_utils/Cargo.toml
- name: macos-maturin
if: matrix.os == 'macos'
uses: messense/maturin-action@v1
with:
command: build
args: --release --no-sdist -o dist -m rust/fate_utils/crates/fate_utils/Cargo.toml
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist

release:
name: Release
runs-on: ubuntu-latest
needs: [ build ]
steps:
- uses: actions/download-artifact@v2
with:
name: wheels
path: dist
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Twine check
run: |
pip install -U twine
twine check dist/*
- name: Test Install
run: |
pip install -U pip
pip install --find-link=dist/ fate_utils
- name: Upload to PyPI Test
if: ${{ github.event.inputs.type == 'testpypi' }}
run: |
twine upload --repository testpypi dist/* --verbose
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypitest_token }}

- name: Upload to PyPI
if: ${{ github.event.inputs.type == 'pypi' }}
run: |
twine upload dist/* --verbose
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_token }}
Loading

0 comments on commit b53043d

Please sign in to comment.