cgwt 0.1.0__py3-none-any.whl
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.
- cgwt/__init__.py +1 -0
- cgwt/cli.py +13 -0
- cgwt-0.1.0.dist-info/METADATA +41 -0
- cgwt-0.1.0.dist-info/RECORD +7 -0
- cgwt-0.1.0.dist-info/WHEEL +4 -0
- cgwt-0.1.0.dist-info/entry_points.txt +3 -0
- cgwt-0.1.0.dist-info/licenses/LICENSE +21 -0
cgwt/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""CLI tool to manage git worktrees."""
|
cgwt/cli.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Command-line entry point."""
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
from importlib.metadata import version
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def main(argv: list[str] | None = None) -> int:
|
|
8
|
+
"""Run the cgwt command line."""
|
|
9
|
+
parser = argparse.ArgumentParser(prog="cgwt", description="Manage git worktrees.")
|
|
10
|
+
parser.add_argument("--version", action="version", version=f"cgwt {version('cgwt')}")
|
|
11
|
+
parser.parse_args(argv)
|
|
12
|
+
parser.print_help()
|
|
13
|
+
return 0
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cgwt
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: CLI tool to manage git worktrees, with a behavior that is modifiable with a configuration file.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Classifier: Environment :: Console
|
|
8
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
9
|
+
Requires-Python: >=3.12
|
|
10
|
+
Project-URL: Repository, https://github.com/sylmarien/cgwt
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
# cgwt
|
|
14
|
+
|
|
15
|
+
CLI tool to manage git worktrees, with a behavior that is modifiable with a configuration file.
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
uv tool install cgwt
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`pipx install cgwt` works too. cgwt requires Python 3.12 or later.
|
|
24
|
+
|
|
25
|
+
## Development
|
|
26
|
+
|
|
27
|
+
[uv](https://docs.astral.sh/uv/) manages the environment.
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
uv sync
|
|
31
|
+
uv run ruff check
|
|
32
|
+
uv run ruff format --check
|
|
33
|
+
uv run mypy
|
|
34
|
+
uv run pytest
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
pytest fails when line or branch coverage is below 100%.
|
|
38
|
+
|
|
39
|
+
## Release
|
|
40
|
+
|
|
41
|
+
The version lives in `pyproject.toml`. To release, run the Release workflow from the Actions tab and choose the version part to bump. The workflow bumps the version, tags the commit, publishes to PyPI, and creates a GitHub release.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
cgwt/__init__.py,sha256=t1kJHWbElPu3bhkpPLsJcEQ9r9_4qiC11EBaocN8U1Y,40
|
|
2
|
+
cgwt/cli.py,sha256=aGXL7eCY94iR99VkfiSLmAdJsHvkF92kPvIDbi-2xVo,417
|
|
3
|
+
cgwt-0.1.0.dist-info/licenses/LICENSE,sha256=Giuyc4C51f_S6HrS6dHoqObZR76kzgYkqYbmNe7_wGg,1071
|
|
4
|
+
cgwt-0.1.0.dist-info/WHEEL,sha256=R1d3uUTbmXM1FHXH_itQashbrqrOSVj-hvBCpmkIIGE,81
|
|
5
|
+
cgwt-0.1.0.dist-info/entry_points.txt,sha256=GI3eLuRj4tpMDh1HK9QlUb8te5oqExevfD-t7IQduNo,40
|
|
6
|
+
cgwt-0.1.0.dist-info/METADATA,sha256=9Vy90l8ub8085qIwBQR5DeJIBocLOG0tIC3KjJRns7U,1110
|
|
7
|
+
cgwt-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Maxime Schmitt
|
|
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.
|