Skip to content

Commit 7a88a15

Browse files
uzunenescursoragent
andcommitted
chore: PyPI workflow use PYPI_API_TOKEN, license SPDX
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 73a846d commit 7a88a15

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Publish visgate-sdk to PyPI on GitHub Release.
2-
# Uses PyPI trusted publisher (no token needed).
3-
# Setup: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
2+
#
3+
# Authentication (in order of preference):
4+
# 1. PyPI trusted publisher (recommended, no secrets needed)
5+
# Setup: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
6+
# 2. PYPI_API_TOKEN secret (fallback)
47
name: Publish to PyPI
58

69
on:
@@ -10,8 +13,9 @@ on:
1013
jobs:
1114
publish:
1215
runs-on: ubuntu-latest
16+
environment: pypi
1317
permissions:
14-
id-token: write # Required for trusted publishing
18+
id-token: write
1519

1620
steps:
1721
- uses: actions/checkout@v4
@@ -29,3 +33,5 @@ jobs:
2933

3034
- name: Publish to PyPI
3135
uses: pypa/gh-action-pypi-publish@release/v1
36+
with:
37+
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ name = "visgate-sdk"
77
version = "0.2.2"
88
description = "Python client for Visgate API — unified vision AI gateway (Fal, Replicate, Runway)."
99
readme = "README.md"
10-
license = { text = "MIT" }
10+
license = "MIT"
1111
requires-python = ">=3.9"
1212
authors = [{ name = "uzunenes", email = "uzun.ens@gmail.com" }]
1313
keywords = ["visgate", "ai", "vision", "api", "fal", "replicate", "runway"]
1414
classifiers = [
1515
"Development Status :: 4 - Beta",
1616
"Intended Audience :: Developers",
17-
"License :: OSI Approved :: MIT License",
1817
"Programming Language :: Python :: 3",
1918
"Programming Language :: Python :: 3.9",
2019
"Programming Language :: Python :: 3.10",

0 commit comments

Comments
 (0)