but-cli 0.1.0__tar.gz → 0.1.2__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.2/PKG-INFO ADDED
@@ -0,0 +1,88 @@
1
+ Metadata-Version: 2.3
2
+ Name: but-cli
3
+ Version: 0.1.2
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: loguru>=0.7.3
9
+ Requires-Dist: rich>=15.0.0
10
+ Requires-Dist: typer>=0.27.2
11
+ Requires-Python: >=3.13
12
+ Description-Content-Type: text/markdown
13
+
14
+ <div align="center">
15
+
16
+ # BUT
17
+
18
+ A Blender utility built to accelerate workflows.
19
+
20
+ <br>
21
+
22
+ [![Built for Blender](https://img.shields.io/badge/built%20for-Blender-E87D0D?style=for-the-badge&logo=blender&logoColor=white)](https://www.blender.org/)
23
+ [![Built with Python](https://img.shields.io/badge/built%20with-Python-3776AB?style=for-the-badge&logo=python&logoColor=white)](https://www.python.org/)
24
+ [![Packaged with uv](https://img.shields.io/badge/packaged%20with-uv-DE5FE9?style=for-the-badge&logo=uv&logoColor=white)](https://docs.astral.sh/uv/)
25
+ [![Published to PyPI](https://img.shields.io/badge/published%20to-PyPI-3775A9?style=for-the-badge&logo=pypi&logoColor=white)](https://pypi.org/project/but-cli/)
26
+ [![CI](https://img.shields.io/github/actions/workflow/status/Hoppou-Legion-Gateway/but/tests.yml?branch=main&style=for-the-badge&logo=githubactions&logoColor=white&label=CI)](https://github.com/Hoppou-Legion-Gateway/but/actions/workflows/tests.yml)
27
+
28
+ </div>
29
+
30
+ <br>
31
+
32
+ ## Features
33
+
34
+ - Empty blender project creation
35
+
36
+ ## Requirements
37
+
38
+ Ensure that you meet following minimum requirements before installing:
39
+
40
+ - Python 3.13.\*
41
+ - Blender >= 5.2.2
42
+ - Unity >= 2019.2.1f1
43
+
44
+ > [!NOTE]
45
+ > Unity is only required to install the Unity package
46
+
47
+ ## Install
48
+
49
+ ```sh
50
+ uv tool install --python 3.13 but-cli
51
+ ```
52
+
53
+ ## Usage
54
+
55
+ ```sh
56
+ # Show help for command
57
+ uv run but --help
58
+
59
+ # Test
60
+ uv run pytest
61
+
62
+ # Build
63
+ uv build
64
+ ```
65
+
66
+ ## Releasing
67
+
68
+ Bump the version and push to `main`. When `v<version>` doesn't exist yet, the
69
+ release workflow publishes to [PyPI](https://pypi.org/project/but-cli/) and
70
+ then creates the tag and GitHub release.
71
+
72
+ ```sh
73
+ uv version --bump patch # or minor / major
74
+ git commit -am "chore: release v$(uv version --short)"
75
+ git push
76
+ ```
77
+
78
+ Release notes are generated by [git-cliff](https://git-cliff.org) from the
79
+ [conventional commit](https://www.conventionalcommits.org) messages since the
80
+ previous tag (config: `cliff.toml`). Preview them before bumping:
81
+
82
+ ```sh
83
+ git cliff --unreleased --tag v0.2.0
84
+ ```
85
+
86
+ ## License
87
+
88
+ This project is licensed under the MIT license. Refer to [LICENSE.md](LICENSE.md)
@@ -0,0 +1,75 @@
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://img.shields.io/badge/built%20for-Blender-E87D0D?style=for-the-badge&logo=blender&logoColor=white)](https://www.blender.org/)
10
+ [![Built with Python](https://img.shields.io/badge/built%20with-Python-3776AB?style=for-the-badge&logo=python&logoColor=white)](https://www.python.org/)
11
+ [![Packaged with uv](https://img.shields.io/badge/packaged%20with-uv-DE5FE9?style=for-the-badge&logo=uv&logoColor=white)](https://docs.astral.sh/uv/)
12
+ [![Published to PyPI](https://img.shields.io/badge/published%20to-PyPI-3775A9?style=for-the-badge&logo=pypi&logoColor=white)](https://pypi.org/project/but-cli/)
13
+ [![CI](https://img.shields.io/github/actions/workflow/status/Hoppou-Legion-Gateway/but/tests.yml?branch=main&style=for-the-badge&logo=githubactions&logoColor=white&label=CI)](https://github.com/Hoppou-Legion-Gateway/but/actions/workflows/tests.yml)
14
+
15
+ </div>
16
+
17
+ <br>
18
+
19
+ ## Features
20
+
21
+ - Empty blender project creation
22
+
23
+ ## Requirements
24
+
25
+ Ensure that you meet following minimum requirements before installing:
26
+
27
+ - Python 3.13.\*
28
+ - Blender >= 5.2.2
29
+ - Unity >= 2019.2.1f1
30
+
31
+ > [!NOTE]
32
+ > Unity is only required to install the Unity package
33
+
34
+ ## Install
35
+
36
+ ```sh
37
+ uv tool install --python 3.13 but-cli
38
+ ```
39
+
40
+ ## Usage
41
+
42
+ ```sh
43
+ # Show help for command
44
+ uv run but --help
45
+
46
+ # Test
47
+ uv run pytest
48
+
49
+ # Build
50
+ uv build
51
+ ```
52
+
53
+ ## Releasing
54
+
55
+ Bump the version and push to `main`. When `v<version>` doesn't exist yet, the
56
+ release workflow publishes to [PyPI](https://pypi.org/project/but-cli/) and
57
+ then creates the tag and GitHub release.
58
+
59
+ ```sh
60
+ uv version --bump patch # or minor / major
61
+ git commit -am "chore: release v$(uv version --short)"
62
+ git push
63
+ ```
64
+
65
+ Release notes are generated by [git-cliff](https://git-cliff.org) from the
66
+ [conventional commit](https://www.conventionalcommits.org) messages since the
67
+ previous tag (config: `cliff.toml`). Preview them before bumping:
68
+
69
+ ```sh
70
+ git cliff --unreleased --tag v0.2.0
71
+ ```
72
+
73
+ ## License
74
+
75
+ This project is licensed under the MIT license. Refer to [LICENSE.md](LICENSE.md)
@@ -1,11 +1,13 @@
1
1
  [project]
2
2
  name = "but-cli"
3
- version = "0.1.0"
3
+ version = "0.1.2"
4
4
  description = "A useful cli for Blender"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
7
7
  dependencies = [
8
8
  "bpy>=5.2.2",
9
+ "loguru>=0.7.3",
10
+ "rich>=15.0.0",
9
11
  "typer>=0.27.2",
10
12
  ]
11
13
 
@@ -17,7 +19,10 @@ email = "me@hoppou.dev"
17
19
  but = "but:main"
18
20
 
19
21
  [dependency-groups]
20
- dev = ["pytest>=9.1.1"]
22
+ dev = [
23
+ "fake-bpy-module-latest>=20261002",
24
+ "pytest>=9.1.1",
25
+ ]
21
26
 
22
27
  [build-system]
23
28
  requires = ["uv_build>=0.12.19,<0.13.0"]
@@ -1,12 +1,14 @@
1
1
  [project]
2
2
  name = "but-cli"
3
- version = "0.1.0"
3
+ version = "0.1.2"
4
4
  description = "A useful cli for Blender"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
7
7
  authors = [{ name = "HoppouDev", email = "me@hoppou.dev" }]
8
8
  dependencies = [
9
9
  "bpy>=5.2.2",
10
+ "loguru>=0.7.3",
11
+ "rich>=15.0.0",
10
12
  "typer>=0.27.2",
11
13
  ]
12
14
 
@@ -15,6 +17,7 @@ but = "but:main"
15
17
 
16
18
  [dependency-groups]
17
19
  dev = [
20
+ "fake-bpy-module-latest>=20261002",
18
21
  "pytest>=9.1.1",
19
22
  ]
20
23
 
@@ -1,4 +1,3 @@
1
- import bpy
2
1
  from typer import Typer
3
2
 
4
3
  app = Typer()
@@ -6,6 +5,10 @@ app = Typer()
6
5
 
7
6
  @app.command()
8
7
  def but(file_name: str) -> None:
8
+ # Imported here, not at module level: importing bpy boots Blender (~0.3s),
9
+ # which `--help` and argument errors don't need.
10
+ import bpy
11
+
9
12
  bpy.ops.wm.save_as_mainfile(filepath=f"{file_name}.blend")
10
13
 
11
14
 
but_cli-0.1.0/PKG-INFO DELETED
@@ -1,70 +0,0 @@
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)
but_cli-0.1.0/README.md DELETED
@@ -1,59 +0,0 @@
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)