René's URL Explorer Experiment


Title: [CI] Release workflow: publish to PyPI from GitHub Actions by PetrHeinz · Pull Request #48 · logtail/logtail-python · GitHub

Open Graph Title: [CI] Release workflow: publish to PyPI from GitHub Actions by PetrHeinz · Pull Request #48 · logtail/logtail-python

X Title: [CI] Release workflow: publish to PyPI from GitHub Actions by PetrHeinz · Pull Request #48 · logtail/logtail-python

Description: logtail-python is still released by hand: bump two files, create a PyPI token, write ~/.pypirc, build, twine upload. This adds a Release workflow modelled on the one logtail-js got in logtail-js#154: manually dispatched from master with patch, minor or retry, plus a dry_run switch. What a run does: verify runs the test suite on the latest Python. build bumps the version in setup.py and logtail/__init__.py (they must agree, the step refuses otherwise), builds the sdist and the wheel, runs twine check, and only then commits vX.Y.Z, tags it and pushes both to master. A failed build therefore pushes nothing. release runs in the pypi environment, uploads the two files with pypa/gh-action-pypi-publish and creates a GitHub release with generated notes for the tag, idempotently. retry finishes a release whose version commit is already HEAD: no bump, rebuild, upload with skip-existing, create the release if it is missing. patch and minor refuse to run when HEAD is already tagged as the current version, so a double dispatch cannot release an empty version. Authentication: the repository secret PYPI_TOKEN_PASSWORD is used whenever it exists. When it is absent, the publish action switches to trusted publishing (OIDC) by itself, and the dry run then proves that the trusted publisher on pypi.org matches this workflow by exchanging the OIDC token without uploading anything. With the token set, the dry run stops after building, since a token cannot be verified without uploading. Trusted publishing is what logtail-js uses and what gets PEP 740 attestations on PyPI, so it is worth switching to at some point: add a GitHub publisher on the logtail-python project on pypi.org (owner logtail, repository logtail-python, workflow release.yml, environment pypi) and delete the secret. Before the first run: Create the pypi environment with required reviewers and deployment branches limited to master. A job that references a missing environment creates it without protection. Merge first: workflow_dispatch only lists workflows present on the default branch. Then dispatch a dry run, then the real release. Verified locally: the YAML parses, every shell block passes bash -n, python -m build and twine check produce exactly logtail_python-.tar.gz and logtail_python--py2.py3-none-any.whl, and the bump step was exercised on clones for patch (0.4.1), minor (0.5.0), retry on an untagged HEAD (refused), patch on a tagged HEAD (refused), dry-run patch on a tagged HEAD (0.4.1) and retry on the tagged v0.4.0 (0.4.0). The workflow itself cannot run before it exists on master, so the dry run is its first real test. Nothing is bumped here. The first patch after merging publishes 0.4.1, or minor publishes 0.5.0 once #47 with the new logtail.rq module is in. 🤖 Generated with Claude Code

Open Graph Description: logtail-python is still released by hand: bump two files, create a PyPI token, write ~/.pypirc, build, twine upload. This adds a Release workflow modelled on the one logtail-js got in logtail-js#15...

X Description: logtail-python is still released by hand: bump two files, create a PyPI token, write ~/.pypirc, build, twine upload. This adds a Release workflow modelled on the one logtail-js got in logtail-js#15...

Opengraph URL: https://github.com/logtail/logtail-python/pull/48

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:826d3439-4286-ea05-71c6-450c915bd451
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDDF0:10A7CF:19D86D:22346F:6AFBB1AF
html-safe-nonce7fe0dbbb73c6354fc5bf48d7bfda75803024a6bdf37dc726434bc4543555ef04
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREYwOjEwQTdDRjoxOUQ4NkQ6MjIzNDZGOjZBRkJCMUFGIiwidmlzaXRvcl9pZCI6IjU2OTAwNjYyOTI5Mzc4MzA4MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1c645fe910b6ee356aaec39a59ad07823f9deebd9583ccd7938d0ebefb9089c3
hovercard-subject-tagpull_request:4627078281
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/logtail/logtail-python/pull/48/files
twitter:imagehttps://avatars.githubusercontent.com/u/10008612?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10008612?s=400&v=4
og:image:altlogtail-python is still released by hand: bump two files, create a PyPI token, write ~/.pypirc, build, twine upload. This adds a Release workflow modelled on the one logtail-js got in logtail-js#15...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/logtail/logtail-python git https://github.com/logtail/logtail-python.git
octolytics-dimension-user_id78922349
octolytics-dimension-user_loginlogtail
octolytics-dimension-repository_id351343852
octolytics-dimension-repository_nwologtail/logtail-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id351343852
octolytics-dimension-repository_network_root_nwologtail/logtail-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/logtail/logtail-python/pull/48/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flogtail%2Flogtail-python%2Fpull%2F48%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flogtail%2Flogtail-python%2Fpull%2F48%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=logtail%2Flogtail-python
Reloadhttps://github.com/logtail/logtail-python/pull/48/files
Reloadhttps://github.com/logtail/logtail-python/pull/48/files
Reloadhttps://github.com/logtail/logtail-python/pull/48/files
logtailhttps://github.com/logtail
logtail-pythonhttps://github.com/logtail/logtail-python
Codehttps://github.com/logtail/logtail-python
Issues1 (1)https://github.com/logtail/logtail-python/issues
Pull requestshttps://github.com/logtail/logtail-python/pulls
Actionshttps://github.com/logtail/logtail-python/actions
Security and qualityhttps://github.com/logtail/logtail-python/security
Insightshttps://github.com/logtail/logtail-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flogtail%2Flogtail-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flogtail%2Flogtail-python%2Fissues%2Fnew%2Fchoose
PetrHeinzhttps://github.com/PetrHeinz
masterhttps://github.com/logtail/logtail-python/tree/master
claude/release-workflowhttps://github.com/logtail/logtail-python/tree/claude/release-workflow
Conversation 0 https://github.com/logtail/logtail-python/pull/48
Commits 1 https://github.com/logtail/logtail-python/pull/48/commits
Checks 13 https://github.com/logtail/logtail-python/pull/48/checks
Files changed https://github.com/logtail/logtail-python/pull/48/files
Please reload this pagehttps://github.com/logtail/logtail-python/pull/48/files
[CI] Release workflow: publish to PyPI from GitHub Actions https://github.com/logtail/logtail-python/pull/48/files#top
Show all changes 1 commit https://github.com/logtail/logtail-python/pull/48/files
c2b5e7c [CI] Add a Release workflow that bumps, tags and publishes to PyPI PetrHeinz Sep 24, 2026 https://github.com/logtail/logtail-python/pull/48/commits/c2b5e7c14ad7df7169ae8380facf28ee139a580f
Clear filters https://github.com/logtail/logtail-python/pull/48/files
Please reload this pagehttps://github.com/logtail/logtail-python/pull/48/files
Please reload this pagehttps://github.com/logtail/logtail-python/pull/48/files
.github/workflows/release.ymlhttps://github.com/logtail/logtail-python/pull/48/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34
View file https://github.com/logtail/logtail-python/blob/c2b5e7c14ad7df7169ae8380facf28ee139a580f/.github/workflows/release.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/logtail/logtail-python/pull/48/{{ revealButtonHref }}
Please reload this pagehttps://github.com/logtail/logtail-python/pull/48/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.