From 40daafd4062e0ae5b1c645b37ed89614ca5f2b32 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Mar 2026 20:23:45 +0000 Subject: [PATCH 1/2] Initial plan From 64d9b912cec1ff182577ae06eaa5427c2ee7fdca Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Mar 2026 20:25:32 +0000 Subject: [PATCH 2/2] Add CI workflow for building and publishing wheels to PyPI Agent-Logs-Url: https://github.com/darnstrom/lmpc/sessions/80ff7338-e710-4490-a1ab-98c2195355ea Co-authored-by: darnstrom <55484604+darnstrom@users.noreply.github.com> --- .github/workflows/publish.yml | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..db5fedb --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,47 @@ +name: Publish to PyPI + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install build dependencies + run: pip install build + + - name: Build wheel and sdist + run: python -m build + + - name: Upload dist artifacts + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist/ + + publish: + needs: build + runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write + steps: + - name: Download dist artifacts + uses: actions/download-artifact@v4 + with: + name: dist + path: dist/ + + - name: Publish to PyPI (skip existing versions) + uses: pypa/gh-action-pypi-publish@release/v1 + with: + skip-existing: true