From b73f1aaae31d48a2a8da21258b6da3c61d999b75 Mon Sep 17 00:00:00 2001 From: Carlos <27721404+carlkidcrypto@users.noreply.github.com> Date: Wed, 31 Jan 2024 07:27:17 -0800 Subject: [PATCH 1/3] PyPi Aagain - trying to get the build to work for pypi. --- .../workflows/build_and_publish_to_pypi.yml | 21 +++++++++++++++++++ .../build_and_publish_to_test_pypi.yml | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/.github/workflows/build_and_publish_to_pypi.yml b/.github/workflows/build_and_publish_to_pypi.yml index 251def2e..c148fd13 100644 --- a/.github/workflows/build_and_publish_to_pypi.yml +++ b/.github/workflows/build_and_publish_to_pypi.yml @@ -45,6 +45,27 @@ 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 diff --git a/.github/workflows/build_and_publish_to_test_pypi.yml b/.github/workflows/build_and_publish_to_test_pypi.yml index 1070c903..d22764cf 100644 --- a/.github/workflows/build_and_publish_to_test_pypi.yml +++ b/.github/workflows/build_and_publish_to_test_pypi.yml @@ -45,6 +45,27 @@ 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 From e6882e897752e093668421309e4a2f7e85b78bb6 Mon Sep 17 00:00:00 2001 From: Carlos <27721404+carlkidcrypto@users.noreply.github.com> Date: Wed, 31 Jan 2024 20:34:08 -0800 Subject: [PATCH 2/3] PyPi 5000 - okay worky now please. --- .github/workflows/build_and_publish_to_pypi.yml | 4 ++-- .github/workflows/build_and_publish_to_test_pypi.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_and_publish_to_pypi.yml b/.github/workflows/build_and_publish_to_pypi.yml index c148fd13..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 @@ -71,7 +71,7 @@ jobs: 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 d22764cf..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 @@ -71,7 +71,7 @@ jobs: uses: actions/download-artifact@v4 with: pattern: cibw-wheels-* - merge-multiple: false + merge-multiple: true path: dist/ - name: Publish distribution 📦 to Test PyPI From e2d4e6ba4e33440615237832d9a074f6abd6bf60 Mon Sep 17 00:00:00 2001 From: Carlos <27721404+carlkidcrypto@users.noreply.github.com> Date: Tue, 30 Jan 2024 12:58:54 -0800 Subject: [PATCH 3/3] PyPi Test Worflow - okay worky now please. PyPI Workflows - attempt to fix the pypi workflow. PyPi Workflows Again - don't need a sdist for now. PyPi Aagain - trying to get the build to work for pypi. --- .github/workflows/build_and_publish_to_pypi.yml | 17 +++++++++++++---- .../build_and_publish_to_test_pypi.yml | 17 +++++++++++++---- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_and_publish_to_pypi.yml b/.github/workflows/build_and_publish_to_pypi.yml index fa7074b2..302a7921 100644 --- a/.github/workflows/build_and_publish_to_pypi.yml +++ b/.github/workflows/build_and_publish_to_pypi.yml @@ -20,8 +20,11 @@ jobs: - uses: actions/setup-python@v5 - name: Install cibuildwheel - run: python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + run: | + python -m pip install --upgrade pip + pip install cibuildwheel + + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse @@ -29,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 @@ -42,6 +45,12 @@ 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: >- @@ -62,7 +71,7 @@ jobs: 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 f33a1348..cae85caf 100644 --- a/.github/workflows/build_and_publish_to_test_pypi.yml +++ b/.github/workflows/build_and_publish_to_test_pypi.yml @@ -20,8 +20,11 @@ jobs: - uses: actions/setup-python@v5 - name: Install cibuildwheel - run: python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + run: | + python -m pip install --upgrade pip + pip install cibuildwheel + + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse @@ -29,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 @@ -42,6 +45,12 @@ 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: >- @@ -62,7 +71,7 @@ jobs: uses: actions/download-artifact@v4 with: pattern: cibw-wheels-* - merge-multiple: false + merge-multiple: true path: dist/ - name: Publish distribution 📦 to Test PyPI