From 56debc98693e92c268ec8ca7083e8e4236e6b94a Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 26 May 2024 14:32:14 -0400 Subject: [PATCH] Add warning --- .github/workflows/flake8-to-ruff.yaml | 69 +++------------------------ Cargo.lock | 2 +- flake8_to_ruff/Cargo.toml | 2 +- 3 files changed, 8 insertions(+), 65 deletions(-) diff --git a/.github/workflows/flake8-to-ruff.yaml b/.github/workflows/flake8-to-ruff.yaml index ed4c913e51491e..6425e456e45156 100644 --- a/.github/workflows/flake8-to-ruff.yaml +++ b/.github/workflows/flake8-to-ruff.yaml @@ -1,6 +1,7 @@ name: "[flake8-to-ruff] Release" -on: workflow_dispatch +on: + pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -9,14 +10,14 @@ concurrency: env: PACKAGE_NAME: flake8-to-ruff CRATE_NAME: flake8_to_ruff - PYTHON_VERSION: "3.7" # to build abi3 wheels + PYTHON_VERSION: "3.11" CARGO_INCREMENTAL: 0 CARGO_NET_RETRY: 10 RUSTUP_MAX_RETRIES: 10 jobs: macos-x86_64: - runs-on: macos-latest + runs-on: macos-12 steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -42,8 +43,9 @@ jobs: with: name: wheels path: dist + macos-universal: - runs-on: macos-latest + runs-on: macos-14 steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -232,62 +234,3 @@ jobs: with: name: wheels path: dist - - pypy: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - target: [x86_64, aarch64] - python-version: - - "3.7" - - "3.8" - - "3.9" - exclude: - - os: macos-latest - target: aarch64 - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: pypy${{ matrix.python-version }} - - name: Build wheels - uses: messense/maturin-action@v1 - with: - target: ${{ matrix.target }} - manylinux: auto - args: --release --out dist -i pypy${{ matrix.python-version }} -m ./${{ env.CRATE_NAME }}/Cargo.toml - - name: Install built wheel - if: matrix.target == 'x86_64' - run: | - pip install dist/${{ env.CRATE_NAME }}-*.whl --force-reinstall - - name: Upload wheels - uses: actions/upload-artifact@v2 - with: - name: wheels - path: dist - - release: - name: Release - runs-on: ubuntu-latest - needs: - - macos-universal - - macos-x86_64 - - windows - - linux - - linux-cross - - musllinux - - musllinux-cross - - pypy - steps: - - uses: actions/download-artifact@v2 - with: - name: wheels - - uses: actions/setup-python@v4 - - name: Publish to PyPi - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.FLAKE8_TO_RUFF_TOKEN }} - run: | - pip install --upgrade twine - twine upload --skip-existing * diff --git a/Cargo.lock b/Cargo.lock index 581a0a4a5f6152..5b598c1d91bde0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -719,7 +719,7 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flake8-to-ruff" -version = "0.0.231" +version = "0.0.234" dependencies = [ "anyhow", "clap 4.0.32", diff --git a/flake8_to_ruff/Cargo.toml b/flake8_to_ruff/Cargo.toml index 9699d945591f2b..868bcdae804129 100644 --- a/flake8_to_ruff/Cargo.toml +++ b/flake8_to_ruff/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flake8-to-ruff" -version = "0.0.231" +version = "0.0.234" edition = "2021" [dependencies]