Skip to content

Commit f288a04

Browse files
authored
Merge pull request #1 from acoruss/fix/add-rp
fix: add release please and build-publish workflow
2 parents 82f748f + 41ee20e commit f288a04

6 files changed

Lines changed: 151 additions & 3 deletions

File tree

.github/release-please-config.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"release-type": "python",
3+
"packages": {
4+
".": {
5+
"package-name": "gavaconnect-sdk-python"
6+
}
7+
},
8+
"changelog-sections": [
9+
{
10+
"type": "feat",
11+
"section": "Features"
12+
},
13+
{
14+
"type": "fix",
15+
"section": "Bug Fixes"
16+
},
17+
{
18+
"type": "chore",
19+
"section": "Miscellaneous",
20+
"hidden": false
21+
},
22+
{
23+
"type": "docs",
24+
"section": "Documentation",
25+
"hidden": false
26+
},
27+
{
28+
"type": "style",
29+
"section": "Styling",
30+
"hidden": true
31+
},
32+
{
33+
"type": "refactor",
34+
"section": "Code Refactoring",
35+
"hidden": false
36+
},
37+
{
38+
"type": "perf",
39+
"section": "Performance Improvements",
40+
"hidden": false
41+
},
42+
{
43+
"type": "test",
44+
"section": "Tests",
45+
"hidden": true
46+
},
47+
{
48+
"type": "build",
49+
"section": "Build System",
50+
"hidden": true
51+
},
52+
{
53+
"type": "ci",
54+
"section": "Continuous Integration",
55+
"hidden": true
56+
}
57+
]
58+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.0"
3+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Release, Build and Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
release_created: ${{ steps.release.outputs.release_created }}
18+
tag_name: ${{ steps.release.outputs.tag_name }}
19+
steps:
20+
- name: Release Please
21+
id: release
22+
uses: googleapis/release-please-action@v4
23+
with:
24+
config-file: .github/release-please-config.json
25+
manifest-file: .github/release-please-manifest.json
26+
27+
build-and-publish:
28+
needs: release-please
29+
if: ${{ needs.release-please.outputs.release_created }}
30+
runs-on: ubuntu-latest
31+
environment: pypi
32+
permissions:
33+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v4
37+
38+
- name: Set up Python
39+
uses: actions/setup-python@v5
40+
with:
41+
python-version: "3.13"
42+
43+
- name: Install uv
44+
uses: astral-sh/setup-uv@v4
45+
with:
46+
enable-cache: true
47+
48+
- name: Install dependencies
49+
run: uv sync
50+
51+
- name: Build distribution
52+
run: uv build
53+
54+
- name: Publish to PyPI
55+
uses: pypa/gh-action-pypi-publish@release/v1
56+
with:
57+
verbose: true

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
## [0.1.0] - 2025-08-20
4+
5+
### Features
6+
7+
- Initial release of GavaConnect SDK for Python

pyproject.toml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,32 @@
11
[project]
22
name = "gavaconnect-sdk-python"
33
version = "0.1.0"
4-
description = "Add your description here"
4+
description = "Python SDK for GavaConnect API"
55
readme = "README.md"
66
authors = [
77
{ name = "Musale Martin", email = "martinmshale@gmail.com" }
88
]
99
requires-python = ">=3.13"
1010
dependencies = []
11+
license = { text = "MIT" }
12+
keywords = ["gavaconnect", "sdk", "api"]
13+
classifiers = [
14+
"Development Status :: 3 - Alpha",
15+
"Intended Audience :: Developers",
16+
"License :: OSI Approved :: MIT License",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3.13",
19+
]
20+
21+
[project.urls]
22+
Homepage = "https://github.com/acoruss/gavaconnect-sdk-python"
23+
Repository = "https://github.com/acoruss/gavaconnect-sdk-python"
24+
Documentation = "https://github.com/acoruss/gavaconnect-sdk-python#readme"
25+
Issues = "https://github.com/acoruss/gavaconnect-sdk-python/issues"
1126

1227
[project.scripts]
1328
gavaconnect-sdk-python = "gavaconnect_sdk_python:main"
1429

1530
[build-system]
16-
requires = ["uv_build>=0.8.0,<0.9"]
17-
build-backend = "uv_build"
31+
requires = ["hatchling"]
32+
build-backend = "hatchling.build"

uv.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)