git4subeditor 0.1.20__tar.gz → 0.1.21__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.
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git4subeditor
3
- Version: 0.1.20
4
- Summary: Convert Barotrauma .sub submarine files into Git-friendly text
5
- Keywords: barotrauma,submarine,git,modding
3
+ Version: 0.1.21
4
+ Summary: Convert Barotrauma .sub files into a text format suitable for Git version tracking
5
+ Keywords: barotrauma,barotrauma-modding,barotrauma-tools,git
6
6
  Author: Yinjie
7
7
  License-Expression: MIT
8
8
  License-File: LICENSE
@@ -21,6 +21,9 @@ Description-Content-Type: text/markdown
21
21
  # Git4SubEditor
22
22
  > Git for Submarine Editor
23
23
 
24
+ [![GitHub](https://img.shields.io/badge/GitHub-Git4SubEditor-181717?logo=github)](https://github.com/Yinjie1/Git4SubEditor)
25
+ [![PyPI](https://img.shields.io/pypi/v/git4subeditor?logo=pypi)](https://pypi.org/project/git4subeditor/)
26
+
24
27
  一个 CLI 工具, 把 Barotrauma 的 `.sub` 潜艇文件转换为适合 Git 版本追踪的文本格式, 也支持将其转回 `.sub` 文件.
25
28
 
26
29
  > [!warning]
@@ -69,37 +72,35 @@ Description-Content-Type: text/markdown
69
72
 
70
73
  ### 1. 安装 Git for Windows
71
74
  直接到 Git [官网](https://git-scm.com/install/windows)上下载
72
- ### 2. 安装 Python 环境(可选)
73
- 安装包管理工具 [uv](https://docs.astral.sh/uv/), 打开 CMD/PowerShell:
75
+ ### 2. 安装 Python 包管理器
76
+ 建议使用包管理器 [uv](https://docs.astral.sh/uv/), 打开 CMD/PowerShell:
74
77
  ```bash
75
78
  winget install uv
76
79
  # 检查是否安装成功
77
80
  uv --version
78
81
  ```
79
- uv 默认把解释器/包/工具都装在C盘, 如果想改安装目录, 可以改环境变量`UV_CACHE_DIR`, `UV_PYTHON_INSTALL_DIR`, `UV_TOOL_BIN_DIR`, `UV_TOOL_DIR`, 运行以下命令检查是否修改成功:
80
- ```bash
81
- uv python dir
82
- uv cache dir
83
- uv tool dir
84
- ```
85
- 运行以下命令并重启终端, 来把`UV_TOOL_BIN_DIR`添加到PATH:
86
- ```bash
87
- uv tool update-shell
88
- ```
89
82
  安装一个 Python 解释器:
90
83
  ```bash
91
84
  # 最后一个是版本, 版本不要太低
92
85
  uv python install 3.15
93
86
  ```
94
87
  ### 3. 安装 Git4SubEditor
95
- 从 GitHub 安装到 uv 的独立工具环境, 不会污染 Python 全局环境:
96
-
88
+ 运行以下命令进行安装:
97
89
  ```bash
98
- uv tool install "git4subeditor @ git+https://github.com/Yinjie1/Git4SubEditor.git"
90
+ uv tool install git4subeditor
99
91
  # 检查是否安装成功
100
92
  uv tool list
101
93
  git4subeditor --version
102
94
  ```
95
+ 如果提示找不到命令, 运行以下命令并重启终端后再次尝试:
96
+ ```bash
97
+ uv tool update-shell
98
+ ```
99
+ 升级和卸载:
100
+ ```bash
101
+ uv tool upgrade git4subeditor
102
+ uv tool uninstall git4subeditor
103
+ ```
103
104
 
104
105
  ---
105
106
 
@@ -1,6 +1,9 @@
1
1
  # Git4SubEditor
2
2
  > Git for Submarine Editor
3
3
 
4
+ [![GitHub](https://img.shields.io/badge/GitHub-Git4SubEditor-181717?logo=github)](https://github.com/Yinjie1/Git4SubEditor)
5
+ [![PyPI](https://img.shields.io/pypi/v/git4subeditor?logo=pypi)](https://pypi.org/project/git4subeditor/)
6
+
4
7
  一个 CLI 工具, 把 Barotrauma 的 `.sub` 潜艇文件转换为适合 Git 版本追踪的文本格式, 也支持将其转回 `.sub` 文件.
5
8
 
6
9
  > [!warning]
@@ -49,37 +52,35 @@
49
52
 
50
53
  ### 1. 安装 Git for Windows
51
54
  直接到 Git [官网](https://git-scm.com/install/windows)上下载
52
- ### 2. 安装 Python 环境(可选)
53
- 安装包管理工具 [uv](https://docs.astral.sh/uv/), 打开 CMD/PowerShell:
55
+ ### 2. 安装 Python 包管理器
56
+ 建议使用包管理器 [uv](https://docs.astral.sh/uv/), 打开 CMD/PowerShell:
54
57
  ```bash
55
58
  winget install uv
56
59
  # 检查是否安装成功
57
60
  uv --version
58
61
  ```
59
- uv 默认把解释器/包/工具都装在C盘, 如果想改安装目录, 可以改环境变量`UV_CACHE_DIR`, `UV_PYTHON_INSTALL_DIR`, `UV_TOOL_BIN_DIR`, `UV_TOOL_DIR`, 运行以下命令检查是否修改成功:
60
- ```bash
61
- uv python dir
62
- uv cache dir
63
- uv tool dir
64
- ```
65
- 运行以下命令并重启终端, 来把`UV_TOOL_BIN_DIR`添加到PATH:
66
- ```bash
67
- uv tool update-shell
68
- ```
69
62
  安装一个 Python 解释器:
70
63
  ```bash
71
64
  # 最后一个是版本, 版本不要太低
72
65
  uv python install 3.15
73
66
  ```
74
67
  ### 3. 安装 Git4SubEditor
75
- 从 GitHub 安装到 uv 的独立工具环境, 不会污染 Python 全局环境:
76
-
68
+ 运行以下命令进行安装:
77
69
  ```bash
78
- uv tool install "git4subeditor @ git+https://github.com/Yinjie1/Git4SubEditor.git"
70
+ uv tool install git4subeditor
79
71
  # 检查是否安装成功
80
72
  uv tool list
81
73
  git4subeditor --version
82
74
  ```
75
+ 如果提示找不到命令, 运行以下命令并重启终端后再次尝试:
76
+ ```bash
77
+ uv tool update-shell
78
+ ```
79
+ 升级和卸载:
80
+ ```bash
81
+ uv tool upgrade git4subeditor
82
+ uv tool uninstall git4subeditor
83
+ ```
83
84
 
84
85
  ---
85
86
 
@@ -4,16 +4,16 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "git4subeditor"
7
- version = "0.1.20"
8
- description = "Convert Barotrauma .sub submarine files into Git-friendly text"
7
+ version = "0.1.21"
8
+ description = "Convert Barotrauma .sub files into a text format suitable for Git version tracking"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.13"
11
11
  dependencies = ["prompt_toolkit>=3.0"]
12
12
  keywords = [
13
13
  "barotrauma",
14
- "submarine",
14
+ "barotrauma-modding",
15
+ "barotrauma-tools",
15
16
  "git",
16
- "modding",
17
17
  ]
18
18
  classifiers = [
19
19
  "Programming Language :: Python :: 3",
@@ -4,12 +4,12 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "git4subeditor"
7
- version = "0.1.20"
8
- description = "Convert Barotrauma .sub submarine files into Git-friendly text"
7
+ version = "0.1.21"
8
+ description = "Convert Barotrauma .sub files into a text format suitable for Git version tracking"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.13"
11
11
  dependencies = ["prompt_toolkit>=3.0"]
12
- keywords = ["barotrauma", "submarine", "git", "modding"]
12
+ keywords = ["barotrauma", "barotrauma-modding", "barotrauma-tools", "git"]
13
13
  classifiers = [
14
14
  "Programming Language :: Python :: 3",
15
15
  "Programming Language :: Python :: 3.13",
@@ -38,4 +38,4 @@ __all__ = [
38
38
  "validate_xml",
39
39
  ]
40
40
 
41
- __version__ = "0.1.20"
41
+ __version__ = "0.1.21"
File without changes