Skip to content

Commit bdc2fce

Browse files
committed
feat: test release
1 parent 23cc339 commit bdc2fce

File tree

4 files changed

+76
-10
lines changed

4 files changed

+76
-10
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
12+
jobs:
13+
build-and-publish:
14+
runs-on: ubuntu-latest
15+
environment: release
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v3
24+
25+
- name: Set up Python
26+
run: uv python install
27+
28+
- name: Install dependencies
29+
run: uv sync --group dev
30+
31+
- name: Build package
32+
run: uv build
33+
34+
- name: Publish to PyPI
35+
uses: pypa/gh-action-pypi-publish@release/v1
36+
37+
- name: Create GitHub Release
38+
uses: softprops/action-gh-release@v2
39+
with:
40+
generate_release_notes: true

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
# python-openstackmcp-server
22
openstack mcp server
3+
4+
## Table of Contents
5+
6+
- [Overview](#overview)
7+
- [Features](#features)
8+
- [Installation](#installation)
9+
- [Configuration](#configuration)
10+
- [Usage](#usage)
11+
- [License](#license)
12+
- [Contributing](#contributing)

pyproject.toml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "python-openstackmcp-server"
3-
version = "0.1.0"
3+
dynamic = ["version"]
44
description = "A MCP server providing OpenStack services for MCP clients"
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -14,22 +14,23 @@ dependencies = [
1414
dev = [
1515
"ruff>=0.12.5",
1616
"pre-commit>=4.2.0",
17+
"setuptools-scm>=9.2.0",
1718
]
1819
test = [
1920
"pytest>=8.4.1",
2021
]
2122

2223

2324
[build-system]
24-
requires = [
25-
"hatchling",
26-
]
27-
build-backend = "hatchling.build"
25+
requires = ["setuptools>=61.0", "setuptools-scm"]
26+
build-backend = "setuptools.build_meta"
27+
28+
[tool.setuptools_scm]
29+
write_to = "src/openstack_mcp_server/_version.py"
30+
31+
[tool.setuptools.packages.find]
32+
where = ["src"]
2833

29-
[tool.hatch.build.targets.wheel]
30-
packages = [
31-
"src/openstack_mcp_server",
32-
]
3334

3435
[tool.pytest.ini_options]
3536
testpaths = [

uv.lock

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

0 commit comments

Comments
 (0)