From 266799d1eb3681a53a4eb34fc1627a8b747c76a2 Mon Sep 17 00:00:00 2001 From: mcflugen Date: Mon, 30 Mar 2026 14:57:47 -0600 Subject: [PATCH 1/4] add ci step to build sdist for publishing --- .github/workflows/test.yml | 26 ++++++++++++++++++++++---- noxfile.py | 5 +---- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dbd1244..1c32dd7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,14 +17,32 @@ on: - pypi jobs: - test: - # We want to run on external PRs, but not on our own internal PRs as they'll be run - # by the push to the branch. Without this if check, checks are duplicated since - # internal PRs match both the push and pull_request events. + build: if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository + name: Build source distribution + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 + with: + python-version: "3.14" + + - name: Build sdist + run: | + pip install nox + nox -s build + + - uses: actions/upload-artifact@v6 + with: + name: build-dist + path: ${{ github.workspace }}/dist/ + if-no-files-found: error + + test: + needs: [build] runs-on: ${{ matrix.os }} defaults: diff --git a/noxfile.py b/noxfile.py index df3c807..7cd548a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -74,11 +74,8 @@ def sync_requirements(session: nox.Session) -> None: @nox.session def build(session: nox.Session) -> None: """Build sdist and wheel dists.""" - session.install("pip") session.install("build") - session.run("python", "--version") - session.run("pip", "--version") - session.run("python", "-m", "build", "--outdir", "./build/wheelhouse") + session.run("python", "-m", "build", "--outdir", str(ROOT / "dist")) @nox.session From 87c862cd37fc7649d07dbac7e89fa60c74377dba Mon Sep 17 00:00:00 2001 From: mcflugen Date: Mon, 30 Mar 2026 14:31:43 -0600 Subject: [PATCH 2/4] bump version to v2.0.2 --- CHANGES.md | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index b1626a4..e4643b0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,7 @@ # Release Notes -## v2.0.2 (unreleased) +## v2.0.2 (2026-10-19) ### Added diff --git a/pyproject.toml b/pyproject.toml index b2fc547..bee830d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "bmipy" -version = "2.0.2.dev0" +version = "2.0.2" requires-python = ">=3.10" description = "Basic Model Interface for Python" license = "MIT" From 184fd54c02cbee74c7513c4e93120d2cb93758f7 Mon Sep 17 00:00:00 2001 From: mcflugen Date: Mon, 30 Mar 2026 14:40:24 -0600 Subject: [PATCH 3/4] set version to 2.0.2rc1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bee830d..45d31ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "bmipy" -version = "2.0.2" +version = "2.0.2rc1" requires-python = ">=3.10" description = "Basic Model Interface for Python" license = "MIT" From db1b68cbc44225829f0d51092b8b9a9a3543aa2f Mon Sep 17 00:00:00 2001 From: mcflugen Date: Mon, 19 Oct 2026 15:24:38 -0600 Subject: [PATCH 4/4] bump version to v2.0.2rc2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 45d31ab..7c4eb98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "bmipy" -version = "2.0.2rc1" +version = "2.0.2rc2" requires-python = ">=3.10" description = "Basic Model Interface for Python" license = "MIT"