From 80a4fc79e0a1536e9c57e71ec0656a70645b8b9d Mon Sep 17 00:00:00 2001 From: Ben Verbeken Date: Tue, 6 Jan 2026 14:41:10 +0100 Subject: [PATCH 1/4] restore version bumping --- release.mjs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/release.mjs b/release.mjs index b67d65e..0e20ccc 100755 --- a/release.mjs +++ b/release.mjs @@ -52,21 +52,21 @@ async function determineNextVersionNumber(previous) { return semver.inc(previous, versionToBump) } -async function bumpVersionInFiles() { - await replaceInFile("pyproject.toml", `version = "${latestVersion}"`, `version = "${nextVersion}"`) +async function ensurePyProjectVersionMatchesTheLatestTag() { + const pyproject = await fs.readFile("pyproject.toml", "utf8") + const match = pyproject.match(/^\s*version\s*=\s*"([^"]+)"\s*$/m) + if (!match) throw new Error("Could not find version in pyproject.toml") + const currentVersion = match[1] + if (currentVersion !== latestVersion) { + throw new Error(`pyproject.toml version (${currentVersion}) does not match latest release tag (${latestVersion})`) + } } -async function replaceInFile(filename, latestVersion, nextVersion) { - return await fs.readFile(filename, 'utf8') - .then(text => { - if (text.indexOf(latestVersion) < 0) { - throw new Error('Not the correct version. Could not find ' + latestVersion + ' in ' + filename) - } - return text - }) - .then(text => text.replace(latestVersion, nextVersion)) - .then(text => fs.writeFileSync(filename, text)) - .then(() => gitAdd(filename)) +async function bumpVersionInFiles() { + await ensurePyProjectVersionMatchesTheLatestTag() + await $`uv version ${nextVersion}` + await gitAdd("pyproject.toml") + await gitAdd("uv.lock") } async function gitAdd(filename) { From 0e6d3f2e54518508a4c710f18ef8257da18788fb Mon Sep 17 00:00:00 2001 From: Ben Verbeken Date: Tue, 6 Jan 2026 16:22:32 +0100 Subject: [PATCH 2/4] include everything in seatsio* --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5d52c8d..f6b66a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,4 +26,7 @@ Issues = "https://github.com/seatsio/seatsio-python/issues" [build-system] requires = ["setuptools"] -build-backend = "setuptools.build_meta" \ No newline at end of file +build-backend = "setuptools.build_meta" + +[tool.setuptools.packages.find] +include = ["seatsio*"] From 4e4dee9f8c36ecca7d27da66db03e41c13a0ede9 Mon Sep 17 00:00:00 2001 From: Ben Verbeken Date: Tue, 6 Jan 2026 16:39:00 +0100 Subject: [PATCH 3/4] also build a .whl file --- .github/workflows/release.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d24b53..446990a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: VERSION_TO_BUMP: ${{ inputs.versionToBump }} GH_TOKEN: ${{ github.token }} - run: rm -Rf node_modules - - run: uv build --sdist + - run: uv build - uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ diff --git a/pyproject.toml b/pyproject.toml index f6b66a4..3ec14f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ Repository = "https://github.com/seatsio/seatsio-python/" Issues = "https://github.com/seatsio/seatsio-python/issues" [build-system] -requires = ["setuptools"] +requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" [tool.setuptools.packages.find] From a15d1ee955b90a12c050b5d810bff5709fad1ddc Mon Sep 17 00:00:00 2001 From: Ben Verbeken Date: Tue, 6 Jan 2026 16:45:24 +0100 Subject: [PATCH 4/4] uv.lock --- uv.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uv.lock b/uv.lock index 57ac314..24ff74f 100644 --- a/uv.lock +++ b/uv.lock @@ -295,7 +295,7 @@ wheels = [ [[package]] name = "seatsio" -version = "83.2.0" +version = "83.3.0" source = { editable = "." } dependencies = [ { name = "future" },