Skip to content

Commit 3fec52f

Browse files
MischaPanchMichael Panchenko
authored andcommitted
Test release to pypi
1 parent 62cce5d commit 3fec52f

File tree

4 files changed

+59
-33
lines changed

4 files changed

+59
-33
lines changed

.github/workflows/publish.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Publish Python Package
2+
3+
on:
4+
# release:
5+
# types: [created]
6+
# Temporary on push to main, for testing
7+
push:
8+
branches:
9+
- main
10+
11+
env:
12+
# Set this to true manually in the GitHub workflow UI if you want to publish to PyPI
13+
# Will always publish to testpypi
14+
PUBLISH_TO_PYPI: false
15+
16+
jobs:
17+
publish:
18+
name: Publish to TestPyPI and optionally PyPI
19+
runs-on: ubuntu-latest
20+
21+
permissions:
22+
id-token: write # Required for trusted publishing
23+
contents: read
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
29+
- name: Install the latest version of uv
30+
uses: astral-sh/setup-uv@v6
31+
with:
32+
version: "latest"
33+
34+
- name: Build package
35+
run: uv build
36+
37+
- name: Upload artifacts to GitHub Release
38+
if: env.PUBLISH_TO_PYPI == 'true'
39+
uses: softprops/action-gh-release@v2
40+
with:
41+
files: |
42+
dist/*.tar.gz
43+
dist/*.whl
44+
45+
- name: Publish to TestPyPI
46+
run: uv publish --index testpypi
47+
48+
- name: Publish to PyPI (conditional)
49+
if: env.PUBLISH_TO_PYPI == 'true'
50+
run: uv publish

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ build-backend = "hatchling.build"
33
requires = ["hatchling"]
44

55
[project]
6-
name = "serena"
7-
version = "0.1.0"
6+
name = "serena-agent"
7+
version = "2025.07.20"
88
description = ""
99
authors = [{ name = "Oraios AI", email = "info@oraios-ai.de" }]
1010
readme = "README.md"
@@ -36,6 +36,12 @@ dependencies = [
3636
"anthropic>=0.54.0",
3737
]
3838

39+
[[tool.uv.index]]
40+
name = "testpypi"
41+
url = "https://test.pypi.org/simple/"
42+
publish-url = "https://test.pypi.org/legacy/"
43+
explicit = true
44+
3945
[project.scripts]
4046
serena = "serena.cli:top_level"
4147
serena-mcp-server = "serena.cli:start_mcp_server"

src/serena/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2025-06-21"
1+
__version__ = "2025.07.20"
22

33
import logging
44

0 commit comments

Comments
 (0)