diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e1c6115..6174d42 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,13 @@ name: Build and Deploy Package -on: workflow_dispatch +on: + workflow_dispatch: + inputs: + upload_to_pypi: + description: 'Upload to PyPI after building' + required: true + default: false + type: boolean jobs: build_wheels: @@ -11,14 +18,15 @@ jobs: os: [ubuntu-22.04, macos-13, windows-latest] env: - CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* pp37-* pp38-* pp39-* pp310-*" - CIBW_SKIP: "cp36-* pp* *-win_arm64 *-musllinux_aarch64" + CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*" + CIBW_SKIP: "*-win_arm64 *-musllinux_aarch64" CIBW_ARCHS_LINUX: "x86_64 i686 aarch64" steps: - uses: actions/checkout@v5 with: submodules: "recursive" + fetch-depth: 0 - name: Setup QEMU # Needed to build aarch64 wheels if: runner.os == 'Linux' @@ -27,7 +35,7 @@ jobs: platforms: all - name: Build wheels - uses: pypa/cibuildwheel@v2.23.3 + uses: pypa/cibuildwheel@v3.2.1 - uses: actions/upload-artifact@v5 with: @@ -46,12 +54,13 @@ jobs: - uses: actions/checkout@v5 with: submodules: "recursive" + fetch-depth: 0 - name: Build wheels - uses: pypa/cibuildwheel@v2.23.3 + uses: pypa/cibuildwheel@v3.2.1 env: CIBW_BUILD: ${{ matrix.cibw_build }} - CIBW_SKIP: "cp36-* pp*" + CIBW_SKIP: "pp*" CIBW_ARCHS: ${{ matrix.cibw_archs }} CIBW_REPAIR_WHEEL_COMMAND: | echo "Target delocate archs: {delocate_archs}" @@ -87,6 +96,7 @@ jobs: - uses: actions/checkout@v5 with: submodules: "recursive" + fetch-depth: 0 - name: Build sdist run: | @@ -101,7 +111,7 @@ jobs: upload_pypi: needs: [build_wheels, build_wheels_macos_arm64, build_sdist] runs-on: ubuntu-22.04 - # if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') + if: ${{ inputs.upload_to_pypi }} steps: - uses: actions/download-artifact@v6 with: diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 784b4bf..cb7bd7d 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-22.04, macos-13, windows-latest] - python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] + python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v5 diff --git a/README.rst b/README.rst index 067feba..2369bc9 100644 --- a/README.rst +++ b/README.rst @@ -70,6 +70,7 @@ from scratch the latest version is recommended. .. csv-table:: :header: "LittleFS Version", "Package Version", "LittleFS File System Version" + 2.11.2, v0.15.X, 2.0 / 2.1 [#f1]_ 2.11.0, v0.14.X, 2.0 / 2.1 [#f1]_ 2.10.0, v0.13.X, 2.0 / 2.1 [#f1]_ 2.9.0, v0.12.X v0.11.X, 2.0 / 2.1 [#f1]_