diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 171cd7a..dc8a365 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -4,7 +4,6 @@ on: push: branches: - master - tags: pull_request: workflow_dispatch: @@ -21,6 +20,7 @@ jobs: include: - os: ubuntu-22.04 arch: x86_64 + build-sdist: true - os: ubuntu-22.04 arch: i686 - os: ubuntu-22.04 @@ -43,7 +43,7 @@ jobs: - name: Set up QEMU if: runner.os == 'Linux' - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: platforms: all @@ -67,9 +67,8 @@ jobs: fi CIBW_BEFORE_ALL_WINDOWS: ${{ matrix.before }} CIBW_BUILD_FRONTEND: build - CIBW_CONFIG_SETTINGS: --enable-cuckoo --enable-magic --enable-dex --enable-macho --enable-openssl CIBW_ENVIRONMENT: ${{ matrix.env }} - CIBW_SKIP: cp36-* + CIBW_SKIP: cp36-* *-macosx_universal2:arm64 CIBW_TEST_COMMAND: python {package}/tests.py - name: Store the distribution packages @@ -78,6 +77,17 @@ jobs: name: python-package-distributions-${{ matrix.os }}-${{ matrix.arch }} path: dist/*.whl + - name: Build Sdist + if: ${{ matrix.build-sdist }} + run: pipx run build --sdist + + - name: Store the source distribution package + if: ${{ matrix.build-sdist }} + uses: actions/upload-artifact@v4 + with: + name: python-package-distributions-source + path: dist/*.tar.gz + publish-to-pypi: needs: [build] runs-on: ubuntu-latest diff --git a/setup.cfg b/setup.cfg index 8616118..02a93d2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,3 +4,14 @@ license_file = LICENSE [test] test_suite=tests + +[build_ext] +# These modules are not stable or tested enough +# enable_dex = true +# enable_macho = true + +# need libjansson-dev +# enable_cuckoo = true + +# need libmagic-dev +# enable_magic = true