prefire 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,27 @@
1
+ # Build artifacts
2
+ build/
3
+ dist/
4
+ *.egg-info/
5
+ .eggs/
6
+
7
+ # Byte-compiled
8
+ __pycache__/
9
+ *.py[cod]
10
+
11
+ # Environments
12
+ .venv/
13
+ venv/
14
+ env/
15
+
16
+ # Tooling caches
17
+ .pytest_cache/
18
+ .ruff_cache/
19
+ .mypy_cache/
20
+ .coverage
21
+ htmlcov/
22
+
23
+ # Editors / OS
24
+ .idea/
25
+ .vscode/
26
+ .DS_Store
27
+ Thumbs.db
prefire-0.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pavel Bartsits
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.
prefire-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,91 @@
1
+ Metadata-Version: 2.5
2
+ Name: prefire
3
+ Version: 0.0.1
4
+ Summary: Placeholder release reserving the prefire name on PyPI.
5
+ Project-URL: Homepage, https://github.com/cxnt/prefire
6
+ Project-URL: Source, https://github.com/cxnt/prefire
7
+ Project-URL: Issues, https://github.com/cxnt/prefire/issues
8
+ Author-email: Pavel Bartsits <pavelbartsits@gmail.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: prefire
12
+ Classifier: Development Status :: 1 - Planning
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Typing :: Typed
22
+ Requires-Python: >=3.9
23
+ Provides-Extra: dev
24
+ Requires-Dist: pytest>=7; extra == 'dev'
25
+ Requires-Dist: ruff>=0.5; extra == 'dev'
26
+ Description-Content-Type: text/markdown
27
+
28
+ # prefire
29
+
30
+ Placeholder release reserving the prefire name on PyPI.
31
+
32
+ > **Status:** not implemented yet. Version 0.0.1 is a placeholder so the name is taken; real functionality lands in a later release.
33
+
34
+ [![PyPI](https://img.shields.io/pypi/v/prefire.svg)](https://pypi.org/project/prefire/)
35
+ [![Python](https://img.shields.io/pypi/pyversions/prefire.svg)](https://pypi.org/project/prefire/)
36
+ [![CI](https://github.com/cxnt/prefire/actions/workflows/ci.yml/badge.svg)](https://github.com/cxnt/prefire/actions/workflows/ci.yml)
37
+
38
+ ## Install
39
+
40
+ ```bash
41
+ pip install prefire
42
+ ```
43
+
44
+ ## Usage
45
+
46
+ ```bash
47
+ prefire --version
48
+ ```
49
+
50
+ ## Development
51
+
52
+ ```bash
53
+ python -m venv .venv
54
+ .venv/bin/pip install -e ".[dev]" # Windows: .venv\Scripts\pip
55
+ pytest
56
+ ruff check .
57
+ ```
58
+
59
+ ## Release
60
+
61
+ Publishing runs on GitHub Actions via [PyPI Trusted Publishing](https://docs.pypi.org/trusted-publishers/),
62
+ so no API token is stored anywhere.
63
+
64
+ ### One-time setup
65
+
66
+ 1. On PyPI, add a *pending publisher* at
67
+ <https://pypi.org/manage/account/publishing/>:
68
+
69
+ | Field | Value |
70
+ | --- | --- |
71
+ | PyPI project name | `prefire` |
72
+ | Owner | `cxnt` |
73
+ | Repository name | `prefire` |
74
+ | Workflow name | `python-publish.yml` |
75
+ | Environment name | `pypi` |
76
+
77
+ 2. In this repository, create the `pypi` environment under
78
+ **Settings → Environments** (optionally add a required reviewer, so a
79
+ release cannot upload without approval).
80
+ 3. Optional: repeat both steps on <https://test.pypi.org> with environment
81
+ name `testpypi` to enable dry-run uploads.
82
+
83
+ ### Cutting a release
84
+
85
+ 1. Bump `__version__` in `src/prefire/__init__.py`.
86
+ 2. Commit and push to `main`.
87
+ 3. Create a GitHub Release with tag `vX.Y.Z` (matching the bumped version).
88
+
89
+ The workflow builds an sdist and wheel, runs `twine check --strict`, verifies
90
+ the tag matches the packaged version, and uploads to PyPI. To dry-run against
91
+ TestPyPI instead, run the **Publish** workflow manually with target `testpypi`.
@@ -0,0 +1,64 @@
1
+ # prefire
2
+
3
+ Placeholder release reserving the prefire name on PyPI.
4
+
5
+ > **Status:** not implemented yet. Version 0.0.1 is a placeholder so the name is taken; real functionality lands in a later release.
6
+
7
+ [![PyPI](https://img.shields.io/pypi/v/prefire.svg)](https://pypi.org/project/prefire/)
8
+ [![Python](https://img.shields.io/pypi/pyversions/prefire.svg)](https://pypi.org/project/prefire/)
9
+ [![CI](https://github.com/cxnt/prefire/actions/workflows/ci.yml/badge.svg)](https://github.com/cxnt/prefire/actions/workflows/ci.yml)
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ pip install prefire
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```bash
20
+ prefire --version
21
+ ```
22
+
23
+ ## Development
24
+
25
+ ```bash
26
+ python -m venv .venv
27
+ .venv/bin/pip install -e ".[dev]" # Windows: .venv\Scripts\pip
28
+ pytest
29
+ ruff check .
30
+ ```
31
+
32
+ ## Release
33
+
34
+ Publishing runs on GitHub Actions via [PyPI Trusted Publishing](https://docs.pypi.org/trusted-publishers/),
35
+ so no API token is stored anywhere.
36
+
37
+ ### One-time setup
38
+
39
+ 1. On PyPI, add a *pending publisher* at
40
+ <https://pypi.org/manage/account/publishing/>:
41
+
42
+ | Field | Value |
43
+ | --- | --- |
44
+ | PyPI project name | `prefire` |
45
+ | Owner | `cxnt` |
46
+ | Repository name | `prefire` |
47
+ | Workflow name | `python-publish.yml` |
48
+ | Environment name | `pypi` |
49
+
50
+ 2. In this repository, create the `pypi` environment under
51
+ **Settings → Environments** (optionally add a required reviewer, so a
52
+ release cannot upload without approval).
53
+ 3. Optional: repeat both steps on <https://test.pypi.org> with environment
54
+ name `testpypi` to enable dry-run uploads.
55
+
56
+ ### Cutting a release
57
+
58
+ 1. Bump `__version__` in `src/prefire/__init__.py`.
59
+ 2. Commit and push to `main`.
60
+ 3. Create a GitHub Release with tag `vX.Y.Z` (matching the bumped version).
61
+
62
+ The workflow builds an sdist and wheel, runs `twine check --strict`, verifies
63
+ the tag matches the packaged version, and uploads to PyPI. To dry-run against
64
+ TestPyPI instead, run the **Publish** workflow manually with target `testpypi`.
@@ -0,0 +1,58 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "prefire"
7
+ description = "Placeholder release reserving the prefire name on PyPI."
8
+ readme = "README.md"
9
+ requires-python = ">=3.9"
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ authors = [{ name = "Pavel Bartsits", email = "pavelbartsits@gmail.com" }]
13
+ keywords = ["prefire"]
14
+ classifiers = [
15
+ "Development Status :: 1 - Planning",
16
+ "Intended Audience :: Developers",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3 :: Only",
19
+ "Programming Language :: Python :: 3.9",
20
+ "Programming Language :: Python :: 3.10",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Programming Language :: Python :: 3.13",
24
+ "Typing :: Typed",
25
+ ]
26
+ dependencies = []
27
+ # Single source of truth: __version__ in src/prefire/__init__.py
28
+ dynamic = ["version"]
29
+
30
+ [project.urls]
31
+ Homepage = "https://github.com/cxnt/prefire"
32
+ Source = "https://github.com/cxnt/prefire"
33
+ Issues = "https://github.com/cxnt/prefire/issues"
34
+
35
+ [project.scripts]
36
+ prefire = "prefire.__main__:main"
37
+
38
+ [project.optional-dependencies]
39
+ dev = ["pytest>=7", "ruff>=0.5"]
40
+
41
+ [tool.hatch.version]
42
+ path = "src/prefire/__init__.py"
43
+
44
+ [tool.hatch.build.targets.wheel]
45
+ packages = ["src/prefire"]
46
+
47
+ [tool.hatch.build.targets.sdist]
48
+ include = ["/src", "/tests", "/README.md", "/LICENSE"]
49
+
50
+ [tool.pytest.ini_options]
51
+ testpaths = ["tests"]
52
+
53
+ [tool.ruff]
54
+ line-length = 100
55
+ src = ["src", "tests"]
56
+
57
+ [tool.ruff.lint]
58
+ select = ["E", "F", "I", "UP", "B"]
@@ -0,0 +1,7 @@
1
+ """Placeholder release reserving the prefire name on PyPI."""
2
+
3
+ from __future__ import annotations
4
+
5
+ __all__ = ["__version__"]
6
+
7
+ __version__ = "0.0.1"
@@ -0,0 +1,32 @@
1
+ """Command-line entry point for prefire."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ from collections.abc import Sequence
7
+
8
+ from . import __version__
9
+
10
+
11
+ def build_parser() -> argparse.ArgumentParser:
12
+ parser = argparse.ArgumentParser(
13
+ prog="prefire",
14
+ description="Placeholder release reserving the prefire name on PyPI.",
15
+ )
16
+ parser.add_argument(
17
+ "--version",
18
+ action="version",
19
+ version=f"%(prog)s {__version__}",
20
+ )
21
+ return parser
22
+
23
+
24
+ def main(argv: Sequence[str] | None = None) -> int:
25
+ parser = build_parser()
26
+ parser.parse_args(argv)
27
+ parser.print_help()
28
+ return 0
29
+
30
+
31
+ if __name__ == "__main__":
32
+ raise SystemExit(main())
File without changes
@@ -0,0 +1,16 @@
1
+ """Smoke tests: enough to prove the package imports and the entry point runs."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import prefire
6
+ from prefire.__main__ import main
7
+
8
+
9
+ def test_version_is_exposed() -> None:
10
+ assert isinstance(prefire.__version__, str)
11
+ assert prefire.__version__
12
+
13
+
14
+ def test_main_returns_zero(capsys) -> None:
15
+ assert main([]) == 0
16
+ assert "prefire" in capsys.readouterr().out