diff --git a/.github/workflows/build_and_publish_to_pypi.yml b/.github/workflows/build_and_publish_to_pypi.yml index 251def2e..302a7921 100644 --- a/.github/workflows/build_and_publish_to_pypi.yml +++ b/.github/workflows/build_and_publish_to_pypi.yml @@ -32,7 +32,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} - path: ./wheelhouse/*.whl + path: wheelhouse/*.whl build-n-publish-pypi: name: Build and Publish To PyPi @@ -45,12 +45,33 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.10" + + - name: Set up dependencies + uses: carlkidcrypto/os-specific-runner@v2.0.0 + with: + linux: sudo apt-get update; + sudo apt-get install -y libsnmp-dev libperl-dev; + + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + + - name: Build a source tarball + run: >- + python -m + build + --sdist + --outdir dist/ + . - name: Download Wheels uses: actions/download-artifact@v4 with: pattern: cibw-wheels-* - merge-multiple: false + merge-multiple: true path: dist/ - name: Publish distribution 📦 to Test PyPI diff --git a/.github/workflows/build_and_publish_to_test_pypi.yml b/.github/workflows/build_and_publish_to_test_pypi.yml index 1070c903..cae85caf 100644 --- a/.github/workflows/build_and_publish_to_test_pypi.yml +++ b/.github/workflows/build_and_publish_to_test_pypi.yml @@ -32,7 +32,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} - path: ./wheelhouse/*.whl + path: wheelhouse/*.whl build-n-publish-test-pypi: name: Build and Publish To Test PyPi @@ -45,12 +45,33 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.10" + + - name: Set up dependencies + uses: carlkidcrypto/os-specific-runner@v2.0.0 + with: + linux: sudo apt-get update; + sudo apt-get install -y libsnmp-dev libperl-dev; + + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + + - name: Build a source tarball + run: >- + python -m + build + --sdist + --outdir dist/ + . - name: Download Wheels uses: actions/download-artifact@v4 with: pattern: cibw-wheels-* - merge-multiple: false + merge-multiple: true path: dist/ - name: Publish distribution 📦 to Test PyPI diff --git a/requirements.txt b/requirements.txt index 6a9d32cf..200c11df 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ atomicwrites==1.4.1 attrs==23.2.0 -black==24.1.0 +black==24.1.1 click== 8.1.7 colorama==0.4.6 coverage==7.4.1 @@ -11,7 +11,7 @@ mypy-extensions==1.0.0 packaging==23.2 pathspec==0.12.1 platformdirs==2.5.2 -pluggy==1.0.0 +pluggy==1.4.0 py==1.11.0 pycodestyle==2.11.1 pyflakes==3.2.0