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.
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/PKG-INFO +19 -18
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/README.md +16 -15
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/pyproject.toml +4 -4
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/pyproject.toml.orig +3 -3
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/__init__.py +1 -1
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/LICENSE +0 -0
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/__main__.py +0 -0
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/cli.py +0 -0
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/gitformat.py +0 -0
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/l10n.py +0 -0
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/locales/cn.xml +0 -0
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/locales/en.xml +0 -0
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/locales/ru.xml +0 -0
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/repl.py +0 -0
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/subfile.py +0 -0
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/utils.py +0 -0
- {git4subeditor-0.1.20 → git4subeditor-0.1.21}/src/git4subeditor/workspace.py +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: git4subeditor
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: Convert Barotrauma .sub
|
|
5
|
-
Keywords: barotrauma,
|
|
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
|
+
[](https://github.com/Yinjie1/Git4SubEditor)
|
|
25
|
+
[](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
|
-
|
|
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
|
-
|
|
96
|
-
|
|
88
|
+
运行以下命令进行安装:
|
|
97
89
|
```bash
|
|
98
|
-
uv tool install
|
|
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
|
+
[](https://github.com/Yinjie1/Git4SubEditor)
|
|
5
|
+
[](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
|
-
|
|
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
|
-
|
|
76
|
-
|
|
68
|
+
运行以下命令进行安装:
|
|
77
69
|
```bash
|
|
78
|
-
uv tool install
|
|
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.
|
|
8
|
-
description = "Convert Barotrauma .sub
|
|
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
|
-
"
|
|
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.
|
|
8
|
-
description = "Convert Barotrauma .sub
|
|
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", "
|
|
12
|
+
keywords = ["barotrauma", "barotrauma-modding", "barotrauma-tools", "git"]
|
|
13
13
|
classifiers = [
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
15
15
|
"Programming Language :: Python :: 3.13",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|