but-cli 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.
but_cli-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,70 @@
1
+ Metadata-Version: 2.3
2
+ Name: but-cli
3
+ Version: 0.1.0
4
+ Summary: A useful cli for Blender
5
+ Author: HoppouDev
6
+ Author-email: HoppouDev <me@hoppou.dev>
7
+ Requires-Dist: bpy>=5.2.2
8
+ Requires-Dist: typer>=0.27.2
9
+ Requires-Python: >=3.13
10
+ Description-Content-Type: text/markdown
11
+
12
+ <div align="center">
13
+
14
+ # BUT
15
+
16
+ A Blender utility built to accelerate workflows.
17
+
18
+ <br>
19
+
20
+ [![Built for Blender](https://badges.hoppou.dev/badge?title=Built%20for&label=Blender&color=E87D0D&icon=blender)](https://www.blender.org/)
21
+ [![Built with Python](https://badges.hoppou.dev/badge?title=Built%20with&label=Python&color=3776AB&icon=python)](https://www.python.org/)
22
+ [![Packaged with UV](https://badges.hoppou.dev/badge?title=Packaged%20with&label=UV&color=DE5FE9&icon=uv)](https://docs.astral.sh/uv/)
23
+ [![CI Passing](https://badges.hoppou.dev/ci/Hoppou-Legion-Gateway/but/tests.yml)](https://github.com/Hoppou-Legion-Gateway/but/actions/workflows/tests.yml)
24
+
25
+ </div>
26
+
27
+ <br>
28
+
29
+ ## Install
30
+
31
+ ```sh
32
+ uv tool install --python 3.13 but-cli # bpy only ships wheels for Python 3.13
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ ```sh
38
+ # Show help for command
39
+ uv run but --help
40
+
41
+ # Test
42
+ uv run pytest
43
+
44
+ # Build
45
+ uv build
46
+ ```
47
+
48
+ ## Releasing
49
+
50
+ Bump the version and push to `main`. When `v<version>` doesn't exist yet, the
51
+ release workflow publishes to [PyPI](https://pypi.org/project/but-cli/) and
52
+ then creates the tag and GitHub release; other pushes skip releasing.
53
+
54
+ ```sh
55
+ uv version --bump patch # or minor / major
56
+ git commit -am "chore: release v$(uv version --short)"
57
+ git push
58
+ ```
59
+
60
+ Release notes are generated by [git-cliff](https://git-cliff.org) from the
61
+ [conventional commit](https://www.conventionalcommits.org) messages since the
62
+ previous tag (config: `cliff.toml`). Preview them before bumping:
63
+
64
+ ```sh
65
+ git cliff --unreleased --tag v0.2.0
66
+ ```
67
+
68
+ ## License
69
+
70
+ This project is licensed under the MIT license. Refer to [LICENSE.md](LICENSE.md)
@@ -0,0 +1,59 @@
1
+ <div align="center">
2
+
3
+ # BUT
4
+
5
+ A Blender utility built to accelerate workflows.
6
+
7
+ <br>
8
+
9
+ [![Built for Blender](https://badges.hoppou.dev/badge?title=Built%20for&label=Blender&color=E87D0D&icon=blender)](https://www.blender.org/)
10
+ [![Built with Python](https://badges.hoppou.dev/badge?title=Built%20with&label=Python&color=3776AB&icon=python)](https://www.python.org/)
11
+ [![Packaged with UV](https://badges.hoppou.dev/badge?title=Packaged%20with&label=UV&color=DE5FE9&icon=uv)](https://docs.astral.sh/uv/)
12
+ [![CI Passing](https://badges.hoppou.dev/ci/Hoppou-Legion-Gateway/but/tests.yml)](https://github.com/Hoppou-Legion-Gateway/but/actions/workflows/tests.yml)
13
+
14
+ </div>
15
+
16
+ <br>
17
+
18
+ ## Install
19
+
20
+ ```sh
21
+ uv tool install --python 3.13 but-cli # bpy only ships wheels for Python 3.13
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ ```sh
27
+ # Show help for command
28
+ uv run but --help
29
+
30
+ # Test
31
+ uv run pytest
32
+
33
+ # Build
34
+ uv build
35
+ ```
36
+
37
+ ## Releasing
38
+
39
+ Bump the version and push to `main`. When `v<version>` doesn't exist yet, the
40
+ release workflow publishes to [PyPI](https://pypi.org/project/but-cli/) and
41
+ then creates the tag and GitHub release; other pushes skip releasing.
42
+
43
+ ```sh
44
+ uv version --bump patch # or minor / major
45
+ git commit -am "chore: release v$(uv version --short)"
46
+ git push
47
+ ```
48
+
49
+ Release notes are generated by [git-cliff](https://git-cliff.org) from the
50
+ [conventional commit](https://www.conventionalcommits.org) messages since the
51
+ previous tag (config: `cliff.toml`). Preview them before bumping:
52
+
53
+ ```sh
54
+ git cliff --unreleased --tag v0.2.0
55
+ ```
56
+
57
+ ## License
58
+
59
+ This project is licensed under the MIT license. Refer to [LICENSE.md](LICENSE.md)
@@ -0,0 +1,40 @@
1
+ [project]
2
+ name = "but-cli"
3
+ version = "0.1.0"
4
+ description = "A useful cli for Blender"
5
+ readme = "README.md"
6
+ requires-python = ">=3.13"
7
+ dependencies = [
8
+ "bpy>=5.2.2",
9
+ "typer>=0.27.2",
10
+ ]
11
+
12
+ [[project.authors]]
13
+ name = "HoppouDev"
14
+ email = "me@hoppou.dev"
15
+
16
+ [project.scripts]
17
+ but = "but:main"
18
+
19
+ [dependency-groups]
20
+ dev = ["pytest>=9.1.1"]
21
+
22
+ [build-system]
23
+ requires = ["uv_build>=0.12.19,<0.13.0"]
24
+ build-backend = "uv_build"
25
+
26
+ [tool.uv.build-backend]
27
+ module-name = "but"
28
+
29
+ [tool.pyright]
30
+ venvPath = "."
31
+ venv = ".venv"
32
+ typeCheckingMode = "strict"
33
+
34
+ [tool.ruff]
35
+ line-length = 80
36
+
37
+ [tool.ruff.format]
38
+ quote-style = "double"
39
+ indent-style = "tab"
40
+ line-ending = "lf"
@@ -0,0 +1,40 @@
1
+ [project]
2
+ name = "but-cli"
3
+ version = "0.1.0"
4
+ description = "A useful cli for Blender"
5
+ readme = "README.md"
6
+ requires-python = ">=3.13"
7
+ authors = [{ name = "HoppouDev", email = "me@hoppou.dev" }]
8
+ dependencies = [
9
+ "bpy>=5.2.2",
10
+ "typer>=0.27.2",
11
+ ]
12
+
13
+ [project.scripts]
14
+ but = "but:main"
15
+
16
+ [dependency-groups]
17
+ dev = [
18
+ "pytest>=9.1.1",
19
+ ]
20
+
21
+ [build-system]
22
+ requires = ["uv_build>=0.12.19,<0.13.0"]
23
+ build-backend = "uv_build"
24
+
25
+ [tool.uv.build-backend]
26
+ # PyPI name is `but-cli` (`but` is taken); the import package stays `but`.
27
+ module-name = "but"
28
+
29
+ [tool.pyright]
30
+ venvPath = "."
31
+ venv = ".venv"
32
+ typeCheckingMode = "strict"
33
+
34
+ [tool.ruff]
35
+ line-length = 80
36
+
37
+ [tool.ruff.format]
38
+ quote-style = "double"
39
+ indent-style = "tab"
40
+ line-ending = "lf"
@@ -0,0 +1,13 @@
1
+ import bpy
2
+ from typer import Typer
3
+
4
+ app = Typer()
5
+
6
+
7
+ @app.command()
8
+ def but(file_name: str) -> None:
9
+ bpy.ops.wm.save_as_mainfile(filepath=f"{file_name}.blend")
10
+
11
+
12
+ def main():
13
+ app()