Skip to content

Publish to PyPI from GitHub Releases (0.6.1) - #15

Merged
dawidope merged 2 commits into
mainfrom
feature/publish-to-pypi
Nov 19, 2026
Merged

dawidope merged 2 commits into
mainfrom
feature/publish-to-pypi

Conversation

@dawidope

Copy link
Copy Markdown
Member

Summary

Prepares the first PyPI release of deapi-sdk (the name is free on PyPI).

  • New .github/workflows/release.yml. Publishing a GitHub Release:
    1. checks that the release tag equals v + the version in pyproject.toml,
    2. builds the sdist and wheel and runs twine check --strict,
    3. uploads to PyPI with trusted publishing from the pypi environment. No API token is stored in the repository.
  • Install instructions in README, API reference, .env.example and the realtime example now use pip install deapi-sdk / pip install "deapi-sdk[ws]".
  • README links are absolute so they work on the PyPI project page.
  • The sdist contains only sources, tests, docs, examples and metadata (no .github, no .env.example).
  • Version 0.6.1 with a changelog entry.

Before the first release

  • PyPI: add a pending trusted publisher for project deapi-sdk: owner deapi-ai, repository deapi-python-sdk, workflow release.yml, environment pypi.
  • GitHub: create the pypi environment (optionally with required reviewers, so every upload waits for approval).

Tests

  • python -m build + twine check --strict: passed
  • wheel installed with the ws extra in a clean venv: imports fine, version 0.6.1
  • ruff check, pytest -m "not integration": 701 passed

🤖 Generated with Claude Code

dawidope and others added 2 commits November 19, 2026 13:20
- release workflow: publishing a GitHub Release checks that the tag
  matches the package version, builds the sdist and wheel, runs
  twine check and uploads to PyPI with trusted publishing (OIDC, no
  stored token) from the "pypi" environment
- install docs now use pip install deapi-sdk / "deapi-sdk[ws]"
- absolute README links, so they work on the PyPI project page
- sdist limited to sources, tests, docs, examples and metadata
- bump version to 0.6.1 and add the changelog entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dawidope
dawidope merged commit c0ef87c into main Nov 19, 2026
5 checks passed
@dawidope
dawidope deleted the feature/publish-to-pypi branch November 19, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant