Skip to content

Commit e7cecc7

Browse files
fabio-rovaiclaude
andcommitted
ci(python): PyPI release workflow via Trusted Publishing; bump Rust crate to 1.0.0
- python-release.yml publishes python/ (open-ontologies-lite) to PyPI on py-v* tags using OIDC Trusted Publishing (no stored token) - Rust crate 0.1.11 -> 1.0.0 for the first stable dual-stack release Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 36c0dc2 commit e7cecc7

3 files changed

Lines changed: 48 additions & 2 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Python Release
2+
3+
# Publishes the python/ bridge (open-ontologies-lite) to PyPI on a py-v* tag,
4+
# e.g. `git tag py-v0.1.1 && git push origin py-v0.1.1`.
5+
#
6+
# Uses PyPI Trusted Publishing (OIDC): no API token is stored. Configure once at
7+
# https://pypi.org/manage/project/open-ontologies-lite/settings/publishing/
8+
# Owner: fabio-rovai | Repo: open-ontologies
9+
# Workflow: python-release.yml | Environment: pypi
10+
on:
11+
push:
12+
tags: ['py-v*']
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: astral-sh/setup-uv@v5
23+
- name: Build wheel + sdist
24+
working-directory: python
25+
run: uv build
26+
- name: Check metadata
27+
working-directory: python
28+
run: uvx twine check dist/*
29+
- uses: actions/upload-artifact@v4
30+
with:
31+
name: dist
32+
path: python/dist/
33+
34+
publish:
35+
needs: build
36+
runs-on: ubuntu-latest
37+
environment: pypi
38+
permissions:
39+
id-token: write # OIDC token for Trusted Publishing; no secret needed
40+
steps:
41+
- uses: actions/download-artifact@v4
42+
with:
43+
name: dist
44+
path: dist/
45+
- name: Publish to PyPI
46+
uses: pypa/gh-action-pypi-publish@release/v1

‎Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "open-ontologies"
3-
version = "0.1.11"
3+
version = "1.0.0"
44
edition = "2024"
55
description = "AI-native ontology engine — standalone MCP server"
66
license = "MIT"

0 commit comments

Comments
 (0)