python-codex 0.0.1__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,81 @@
1
+ name: publish
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ repository:
7
+ description: Publish target repository
8
+ required: true
9
+ default: testpypi
10
+ type: choice
11
+ options:
12
+ - testpypi
13
+ - pypi
14
+ release:
15
+ types: [published]
16
+ push:
17
+ tags:
18
+ - "v*"
19
+
20
+ jobs:
21
+ build:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - name: Check out repository
25
+ uses: actions/checkout@v4
26
+
27
+ - name: Set up Python
28
+ uses: actions/setup-python@v5
29
+ with:
30
+ python-version: "3.12"
31
+
32
+ - name: Build distributions
33
+ run: |
34
+ python -m pip install --upgrade build
35
+ python -m build
36
+
37
+ - name: Upload distributions
38
+ uses: actions/upload-artifact@v4
39
+ with:
40
+ name: python-package-distributions
41
+ path: dist/
42
+
43
+ publish-testpypi:
44
+ if: github.event_name == 'workflow_dispatch' && inputs.repository == 'testpypi'
45
+ needs: build
46
+ runs-on: ubuntu-latest
47
+ permissions:
48
+ id-token: write
49
+ environment:
50
+ name: testpypi
51
+ url: https://test.pypi.org/p/python-codex
52
+ steps:
53
+ - name: Download distributions
54
+ uses: actions/download-artifact@v4
55
+ with:
56
+ name: python-package-distributions
57
+ path: dist/
58
+
59
+ - name: Publish to TestPyPI
60
+ uses: pypa/gh-action-pypi-publish@release/v1
61
+ with:
62
+ repository-url: https://test.pypi.org/legacy/
63
+
64
+ publish-pypi:
65
+ if: github.event_name == 'release' || github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.repository == 'pypi')
66
+ needs: build
67
+ runs-on: ubuntu-latest
68
+ permissions:
69
+ id-token: write
70
+ environment:
71
+ name: pypi
72
+ url: https://pypi.org/p/python-codex
73
+ steps:
74
+ - name: Download distributions
75
+ uses: actions/download-artifact@v4
76
+ with:
77
+ name: python-package-distributions
78
+ path: dist/
79
+
80
+ - name: Publish to PyPI
81
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,7 @@
1
+ __pycache__/
2
+ *.pyc
3
+ *.pyo
4
+ *.pyd
5
+ build/
6
+ dist/
7
+ *.egg-info/
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.4
2
+ Name: python-codex
3
+ Version: 0.0.1
4
+ Summary: Placeholder initial release for python-codex.
5
+ Project-URL: Homepage, https://github.com/Randomizez/pycodex
6
+ Project-URL: Issues, https://github.com/Randomizez/pycodex/issues
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+
10
+ # python-codex
11
+
12
+ This repository is intentionally starting with a minimal placeholder release for
13
+ the `python-codex` package and a GitHub Actions-based PyPI publishing pipeline.
14
+
15
+ ## What is included
16
+
17
+ - a minimal importable package: `pycodex`
18
+ - a GitHub Actions workflow at `.github/workflows/publish.yml`
19
+ - Trusted Publishing-ready jobs for both TestPyPI and PyPI
20
+
21
+ ## Release flow
22
+
23
+ - `workflow_dispatch` with `repository=testpypi` publishes to TestPyPI
24
+ - `workflow_dispatch` with `repository=pypi` publishes to PyPI
25
+ - publishing a GitHub Release triggers the PyPI publish job
26
+
27
+ ## Before the first publish
28
+
29
+ Configure Trusted Publishing on TestPyPI/PyPI for this GitHub repository and
30
+ workflow.
@@ -0,0 +1,21 @@
1
+ # python-codex
2
+
3
+ This repository is intentionally starting with a minimal placeholder release for
4
+ the `python-codex` package and a GitHub Actions-based PyPI publishing pipeline.
5
+
6
+ ## What is included
7
+
8
+ - a minimal importable package: `pycodex`
9
+ - a GitHub Actions workflow at `.github/workflows/publish.yml`
10
+ - Trusted Publishing-ready jobs for both TestPyPI and PyPI
11
+
12
+ ## Release flow
13
+
14
+ - `workflow_dispatch` with `repository=testpypi` publishes to TestPyPI
15
+ - `workflow_dispatch` with `repository=pypi` publishes to PyPI
16
+ - publishing a GitHub Release triggers the PyPI publish job
17
+
18
+ ## Before the first publish
19
+
20
+ Configure Trusted Publishing on TestPyPI/PyPI for this GitHub repository and
21
+ workflow.
@@ -0,0 +1,3 @@
1
+ """Placeholder package for the initial pycodex release."""
2
+
3
+ __version__ = "0.0.1"
@@ -0,0 +1,18 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "python-codex"
7
+ version = "0.0.1"
8
+ description = "Placeholder initial release for python-codex."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ dependencies = []
12
+
13
+ [project.urls]
14
+ Homepage = "https://github.com/Randomizez/pycodex"
15
+ Issues = "https://github.com/Randomizez/pycodex/issues"
16
+
17
+ [tool.hatch.build.targets.wheel]
18
+ packages = ["pycodex"]