Skip to content

Conversation

@rafaeelaudibert
Copy link
Contributor

This adds support for python to sampo!

It's only for those using pyproject.toml and uv at the moment, but I thought this was a good start - and what we need over at posthog/posthog-python.

There are a lot of different ways to do this, but uv is extremely good and any serious company is using it nowadays, so this should cover serious usage.

I have a PR on posthog/posthog-python that I created using this. I haven't updated CI or anything yet, but creating new versions locally works well with this - I built a local sampo version and tried on a local posthog-python repository.

I haven't tried publishing yet - will try with a dummy repo -, I'll do it next week once I'm back from the holidays

This adds support for python to sampo! It's only for those using `pyproject.toml` and `uv` at the moment but I thought this was a good start - and what we need over at posthog/posthog-python.

There's a lot of different ways to do this, but `uv` is extremely good and any serious company is using them noawadays so this should cover serious usage.

I have a PR on posthog/posthog-python that I created using this. I haven't updated CI or anything yet, but creating new versions locally works well with this - I built a local `sampo` version and tried on a local `posthog-python` repository.

I haven't tried publishing yet - will try with a dummy repo -, I'll do it next week once I'm back from the holidays
@sampo-s-bot
Copy link

sampo-s-bot bot commented Jan 1, 2026

🧭 Changeset detected

Merging this PR will release the following updates:

sampo-core (Cargo) — minor version bump

Minor changes

  • Add pypi support to sampo allowing Python libraries to be managed via sampo. It currently only supports pyproject.toml + uv for publishing

sampo-github-action (Cargo) — minor version bump

Minor changes

  • Add pypi support to sampo allowing Python libraries to be managed via sampo. It currently only supports pyproject.toml + uv for publishing

@github-actions github-actions bot added documentation Improvements or additions to documentation crt:sampo Changes in Sampo CLI crate. crt:sampo-github-action Changes in Sampo's Github action crate. crt:sampo-core Changes in Sampo core logic or internal utils. labels Jan 1, 2026
@goulvenclech goulvenclech self-requested a review January 3, 2026 13:54
Copy link
Member

@goulvenclech goulvenclech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks a lot for your contribution Rafael 🎉

I’ll follow up with a small PR to address a few nitpicks, and update the docs before the release, in the next few days.

@goulvenclech goulvenclech merged commit 1dcc188 into bruits:main Jan 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crt:sampo Changes in Sampo CLI crate. crt:sampo-core Changes in Sampo core logic or internal utils. crt:sampo-github-action Changes in Sampo's Github action crate. documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants