sparkrelay-py 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,54 @@
1
+
2
+ name: Publish Python package to PyPI
3
+
4
+ on:
5
+ push:
6
+ tags:
7
+ - "v*"
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ build:
14
+ name: Build package
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout repository
18
+ uses: actions/checkout@v4
19
+
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v5
22
+ with:
23
+ python-version: "3.x"
24
+
25
+ - name: Install build tools
26
+ run: python -m pip install --upgrade build
27
+
28
+ - name: Build distributions
29
+ run: python -m build
30
+
31
+ - name: Upload build artifacts
32
+ uses: actions/upload-artifact@v4
33
+ with:
34
+ name: python-package
35
+ path: dist/
36
+
37
+ publish:
38
+ name: Publish to PyPI
39
+ needs: build
40
+ runs-on: ubuntu-latest
41
+ environment:
42
+ name: pypi
43
+ url: https://pypi.org/p/sparkrelay-py
44
+ permissions:
45
+ id-token: write
46
+ steps:
47
+ - name: Download build artifacts
48
+ uses: actions/download-artifact@v4
49
+ with:
50
+ name: python-package
51
+ path: dist/
52
+
53
+ - name: Publish package
54
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,7 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ .venv/
5
+ dist/
6
+ build/
7
+ .pytest_cache/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Panghu1102
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 2.5
2
+ Name: sparkrelay-py
3
+ Version: 0.1.0
4
+ Summary: Python package for SparkRelay (initial scaffold)
5
+ Author: Panghu1102
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Classifier: Programming Language :: Python :: 3
9
+ Requires-Python: >=3.9
10
+ Description-Content-Type: text/markdown
11
+
12
+ # sparkrelay-py
13
+
14
+ Initial packaging scaffold for SparkRelay. No functional API has been implemented yet.
15
+
16
+ ## Development
17
+
18
+ ```bash
19
+ python -m pip install -e .
20
+ python -c "import sparkrelay; print(sparkrelay.__version__)"
21
+ python -m pip install build
22
+ python -m build
23
+ ```
24
+
25
+ ## PyPI publishing
26
+
27
+ Configure PyPI trusted publisher: project `sparkrelay-py`, owner `Panghu1102`, repository `sparkrelay-py`, workflow `publish.yml`, environment `pypi`. Create the matching GitHub Actions environment.
28
+
29
+ When ready, update versions in `pyproject.toml` and `src/sparkrelay/__init__.py`, then push a matching tag like `v0.1.0`. Do not publish this placeholder package before adding the actual implementation.
@@ -0,0 +1,18 @@
1
+ # sparkrelay-py
2
+
3
+ Initial packaging scaffold for SparkRelay. No functional API has been implemented yet.
4
+
5
+ ## Development
6
+
7
+ ```bash
8
+ python -m pip install -e .
9
+ python -c "import sparkrelay; print(sparkrelay.__version__)"
10
+ python -m pip install build
11
+ python -m build
12
+ ```
13
+
14
+ ## PyPI publishing
15
+
16
+ Configure PyPI trusted publisher: project `sparkrelay-py`, owner `Panghu1102`, repository `sparkrelay-py`, workflow `publish.yml`, environment `pypi`. Create the matching GitHub Actions environment.
17
+
18
+ When ready, update versions in `pyproject.toml` and `src/sparkrelay/__init__.py`, then push a matching tag like `v0.1.0`. Do not publish this placeholder package before adding the actual implementation.
@@ -0,0 +1,17 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.26"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "sparkrelay-py"
7
+ version = "0.1.0"
8
+ description = "Python package for SparkRelay (initial scaffold)"
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = "MIT"
12
+ authors = [{ name = "Panghu1102" }]
13
+ classifiers = ["Programming Language :: Python :: 3"]
14
+ dependencies = []
15
+
16
+ [tool.hatch.build.targets.wheel]
17
+ packages = ["src/sparkrelay"]
@@ -0,0 +1,8 @@
1
+ """A small demonstration package for SparkRelay."""
2
+
3
+ __version__ = "0.1.0"
4
+
5
+
6
+ def hello(name: str = "world") -> str:
7
+ """Return a friendly greeting."""
8
+ return f"Hello, {name}! From SparkRelay."