Skip to content

Commit 84ba7b3

Browse files
jkebingerclaude
andauthored
Add PyPI publishing workflow for sdk-reforge (#10)
* Add PyPI publishing workflow for reforge-sdk - Changed package name from reforge-python to reforge-sdk - Added GitHub workflow to publish to PyPI using OIDC trusted publishing - Workflow runs on main branch pushes after all tests pass - Uses release environment for additional security 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Change package name to sdk-reforge Updated PyPI package name from reforge-sdk to sdk-reforge. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent b189390 commit 84ba7b3

2 files changed

Lines changed: 54 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: "Publish to PyPI"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
if: github.ref == 'refs/heads/main'
13+
environment: release
14+
permissions:
15+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
16+
contents: read
17+
18+
steps:
19+
- name: Checkout repo + submodules
20+
uses: actions/checkout@v4
21+
with:
22+
submodules: recursive
23+
24+
- name: Install Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: "3.10"
28+
29+
- name: Install Poetry
30+
uses: snok/install-poetry@v1
31+
with:
32+
virtualenvs-create: true
33+
34+
- name: Install dependencies
35+
run: |
36+
poetry install --no-interaction
37+
38+
- name: Run tests
39+
run: poetry run pytest
40+
env:
41+
REFORGE_INTEGRATION_TEST_SDK_KEY: ${{ secrets.REFORGE_INTEGRATION_TEST_SDK_KEY }}
42+
REFORGE_INTEGRATION_TEST_ENCRYPTION_KEY: "c87ba22d8662282abe8a0e4651327b579cb64a454ab0f4c170b45b15f049a221"
43+
NOT_A_NUMBER: "not a number"
44+
IS_A_NUMBER: 1234
45+
46+
- name: Build package
47+
run: poetry build
48+
49+
- name: Publish to PyPI
50+
uses: pypa/gh-action-pypi-publish@release/v1
51+
with:
52+
packages-dir: dist/

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
2-
name = "reforge-python"
2+
name = "sdk-reforge"
33
version = "0.12.0"
4-
description = "Python client for Reforge Feature Flags, Dynamic log levels, and Config as a Service: https://www.reforge.com"
4+
description = "Python sdk for Reforge Feature Flags and Config as a Service: https://www.reforge.com"
55
license = "MIT"
66
authors = ["Michael Berkowitz <michael.berkowitz@gmail.com>", "James Kebinger <james.kebinger@reforge.com>"]
77
maintainers = ["Michael Berkowitz <michael.berkowitz@gmail.com>", "James Kebinger <james.kebinger@reforge.com>"]

0 commit comments

Comments
 (0)