commit-updater 0.1.0__tar.gz → 0.3.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.
@@ -0,0 +1,77 @@
1
+ Metadata-Version: 2.4
2
+ Name: commit-updater
3
+ Version: 0.3.0
4
+ Summary: Update Podfile.lock component commits from local git repos and push
5
+ Author: Aron
6
+ License: MIT
7
+ Keywords: cocoapods,podfile,git,lockfile
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Environment :: Console
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.8
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Software Development :: Version Control
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+
21
+ # CommitUpdater
22
+
23
+ 用于在主工程中批量更新 `Podfile.lock` 里的组件 commit,并自动提交推送主工程仓库。
24
+
25
+ ## 功能概述
26
+
27
+ - 拉取主工程最新代码
28
+ - 获取组件仓库最新 commit
29
+ - 更新 `Podfile.lock` 中对应组件的 `:commit:`
30
+ - 自动提交并推送主工程改动
31
+
32
+ ## 安装
33
+
34
+ ### 本地安装
35
+
36
+ ```bash
37
+ cd CommitUpdater
38
+ pip install -e .
39
+ ```
40
+
41
+ 安装后会提供命令:`bbcu`
42
+
43
+ ### 外网安装
44
+
45
+ 发布到 PyPI 后,可直接安装:
46
+
47
+ ```bash
48
+ pip install commit-updater
49
+ # pip命令没有找到,使用 python3 -m pip 命令安装
50
+ python3 -m pip install commit-updater
51
+ # 已安装更新
52
+ python3 -m pip install -U commit-updater
53
+ ```
54
+
55
+ ## 使用方式
56
+
57
+ 进入包含 `Podfile.lock` 的主工程目录后执行:
58
+
59
+ ```bash
60
+ bbcu BBUnlock BBEngine
61
+ # 如果命令没有找到,查询安装位置,把安装路径中lib文件夹平级的bin文件夹添加到PATH中重新试下
62
+ python3 -m pip show commit-updater
63
+ ```
64
+
65
+ 也可以更新单个组件:
66
+
67
+ ```bash
68
+ bbcu BBUnlock
69
+ ```
70
+
71
+ ## 适用场景
72
+
73
+ 适用于基于 CocoaPods 管理组件依赖、并使用 `Podfile.lock` 锁定 commit 的工程。
74
+
75
+ ## 更多说明
76
+
77
+ 实现细节、PyCharm 运行说明、提交规则、发布流程和维护注意事项见:`DEVELOPMENT.md`
@@ -0,0 +1,57 @@
1
+ # CommitUpdater
2
+
3
+ 用于在主工程中批量更新 `Podfile.lock` 里的组件 commit,并自动提交推送主工程仓库。
4
+
5
+ ## 功能概述
6
+
7
+ - 拉取主工程最新代码
8
+ - 获取组件仓库最新 commit
9
+ - 更新 `Podfile.lock` 中对应组件的 `:commit:`
10
+ - 自动提交并推送主工程改动
11
+
12
+ ## 安装
13
+
14
+ ### 本地安装
15
+
16
+ ```bash
17
+ cd CommitUpdater
18
+ pip install -e .
19
+ ```
20
+
21
+ 安装后会提供命令:`bbcu`
22
+
23
+ ### 外网安装
24
+
25
+ 发布到 PyPI 后,可直接安装:
26
+
27
+ ```bash
28
+ pip install commit-updater
29
+ # pip命令没有找到,使用 python3 -m pip 命令安装
30
+ python3 -m pip install commit-updater
31
+ # 已安装更新
32
+ python3 -m pip install -U commit-updater
33
+ ```
34
+
35
+ ## 使用方式
36
+
37
+ 进入包含 `Podfile.lock` 的主工程目录后执行:
38
+
39
+ ```bash
40
+ bbcu BBUnlock BBEngine
41
+ # 如果命令没有找到,查询安装位置,把安装路径中lib文件夹平级的bin文件夹添加到PATH中重新试下
42
+ python3 -m pip show commit-updater
43
+ ```
44
+
45
+ 也可以更新单个组件:
46
+
47
+ ```bash
48
+ bbcu BBUnlock
49
+ ```
50
+
51
+ ## 适用场景
52
+
53
+ 适用于基于 CocoaPods 管理组件依赖、并使用 `Podfile.lock` 锁定 commit 的工程。
54
+
55
+ ## 更多说明
56
+
57
+ 实现细节、PyCharm 运行说明、提交规则、发布流程和维护注意事项见:`DEVELOPMENT.md`
@@ -0,0 +1,77 @@
1
+ Metadata-Version: 2.4
2
+ Name: commit-updater
3
+ Version: 0.3.0
4
+ Summary: Update Podfile.lock component commits from local git repos and push
5
+ Author: Aron
6
+ License: MIT
7
+ Keywords: cocoapods,podfile,git,lockfile
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Environment :: Console
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.8
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Software Development :: Version Control
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+
21
+ # CommitUpdater
22
+
23
+ 用于在主工程中批量更新 `Podfile.lock` 里的组件 commit,并自动提交推送主工程仓库。
24
+
25
+ ## 功能概述
26
+
27
+ - 拉取主工程最新代码
28
+ - 获取组件仓库最新 commit
29
+ - 更新 `Podfile.lock` 中对应组件的 `:commit:`
30
+ - 自动提交并推送主工程改动
31
+
32
+ ## 安装
33
+
34
+ ### 本地安装
35
+
36
+ ```bash
37
+ cd CommitUpdater
38
+ pip install -e .
39
+ ```
40
+
41
+ 安装后会提供命令:`bbcu`
42
+
43
+ ### 外网安装
44
+
45
+ 发布到 PyPI 后,可直接安装:
46
+
47
+ ```bash
48
+ pip install commit-updater
49
+ # pip命令没有找到,使用 python3 -m pip 命令安装
50
+ python3 -m pip install commit-updater
51
+ # 已安装更新
52
+ python3 -m pip install -U commit-updater
53
+ ```
54
+
55
+ ## 使用方式
56
+
57
+ 进入包含 `Podfile.lock` 的主工程目录后执行:
58
+
59
+ ```bash
60
+ bbcu BBUnlock BBEngine
61
+ # 如果命令没有找到,查询安装位置,把安装路径中lib文件夹平级的bin文件夹添加到PATH中重新试下
62
+ python3 -m pip show commit-updater
63
+ ```
64
+
65
+ 也可以更新单个组件:
66
+
67
+ ```bash
68
+ bbcu BBUnlock
69
+ ```
70
+
71
+ ## 适用场景
72
+
73
+ 适用于基于 CocoaPods 管理组件依赖、并使用 `Podfile.lock` 锁定 commit 的工程。
74
+
75
+ ## 更多说明
76
+
77
+ 实现细节、PyCharm 运行说明、提交规则、发布流程和维护注意事项见:`DEVELOPMENT.md`
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ bbcu = CommitUpdater.main:main
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "commit-updater"
7
- version = "0.1.0"
7
+ version = "0.3.0"
8
8
  description = "Update Podfile.lock component commits from local git repos and push"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -25,7 +25,7 @@ classifiers = [
25
25
  ]
26
26
 
27
27
  [project.scripts]
28
- commit-updater = "CommitUpdater.main:main"
28
+ bbcu = "CommitUpdater.main:main"
29
29
 
30
30
  [tool.setuptools]
31
31
  packages = ["CommitUpdater"]
@@ -1,128 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: commit-updater
3
- Version: 0.1.0
4
- Summary: Update Podfile.lock component commits from local git repos and push
5
- Author: Aron
6
- License: MIT
7
- Keywords: cocoapods,podfile,git,lockfile
8
- Classifier: Development Status :: 4 - Beta
9
- Classifier: Environment :: Console
10
- Classifier: Intended Audience :: Developers
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Programming Language :: Python :: 3.12
17
- Classifier: Topic :: Software Development :: Version Control
18
- Requires-Python: >=3.8
19
- Description-Content-Type: text/markdown
20
-
21
- # CommitUpdater
22
-
23
- 用于在主工程中批量更新 `Podfile.lock` 里的组件 commit,并自动提交推送主工程仓库。
24
-
25
- ## 功能概述
26
-
27
- - 拉取主工程最新代码(`git pull`)
28
- - 根据组件名定位本地组件仓库路径
29
- - 获取组件仓库最新 commit(`git fetch` + `git rev-parse HEAD`)
30
- - 更新主工程 `Podfile.lock` 对应组件的 `:commit:`
31
- - 自动执行 `git add Podfile.lock`、`git commit`、`git push`
32
-
33
- ## 目录说明
34
-
35
- - `main.py`:入口脚本(命令行参数解析)
36
- - `MainProjUpdater.py`:主流程编排(pull、更新、提交推送)
37
- - `ComponentGitFinder.py`:组件本地仓库路径查找
38
- - `CommitFetcher.py`:获取组件仓库最新 commit
39
- - `LockFileUpdater.py`:更新 `Podfile.lock` 里的 commit
40
-
41
- ## 组件路径查找规则
42
-
43
- `ComponentGitFinder` 会优先按以下方式定位组件目录:
44
-
45
- 1. 如果初始化时传入 `repo_root`,直接拼接 `repo_root/component_name`
46
- 2. 否则自动读取主工程下的开发者配置目录:
47
- - `cocoapods/Member_modules/*.rb`
48
- - 从各配置文件的 `:pathes => [...]` 解析本地仓库根目录
49
- - 依次检查 `<repo_root>/<component_name>` 是否存在
50
- - 找到即返回对应路径
51
-
52
- 已适配以下 `:pathes` 写法:
53
- - 多行数组
54
- - 行内或独立行注释(`# ...`)
55
- - 单引号/双引号路径
56
-
57
- ## 安装与使用
58
-
59
- ### 方式一:pip 安装(推荐,独立包)
60
-
61
- `pyproject.toml` 位于 `CommitUpdater` 目录,可将该目录作为独立包根目录安装,并得到全局命令 `commit-updater`:
62
-
63
- ```bash
64
- # 在 CommitUpdater 目录
65
- cd CommitUpdater
66
- pip install -e .
67
-
68
- # 之后可在任意目录执行(需先 cd 到含 Podfile.lock 的主工程目录)
69
- commit-updater BBUnlock BBEngine
70
- ```
71
-
72
- 发布到 PyPI 后,他人可直接:
73
-
74
- ```bash
75
- pip install commit-updater
76
- commit-updater BBUnlock BBEngine
77
- ```
78
-
79
- ### 方式二:不安装,在仓库根目录运行
80
-
81
- 在仓库根目录(`BBScriptToolBundle`)执行:
82
-
83
- ```bash
84
- python3 -m CommitUpdater.main BBUnlock BBEngine
85
- ```
86
-
87
- 或直接运行脚本:
88
-
89
- ```bash
90
- python3 CommitUpdater/main.py BBUnlock BBEngine
91
- ```
92
-
93
- ## PyCharm 运行注意事项
94
-
95
- 若使用 PyCharm 直接运行脚本,且 `Working directory` 设置不正确,可能出现:
96
-
97
- - `No module named 'CommitUpdater.MainProjUpdater'`
98
- - `'CommitUpdater' is not a package`
99
-
100
- 推荐方案:
101
-
102
- - 在 PyCharm 里使用 **Module name** 运行:`CommitUpdater.main`
103
- - Working directory 设为项目根目录:`BBScriptToolBundle`
104
-
105
- ## 提交信息规则
106
-
107
- - 单组件更新:`[update] <component>`
108
- - 多组件更新:`[update] Multiple components: <comp1>, <comp2>, ...`
109
-
110
- ## 发布(维护者)
111
-
112
- 打包与上传 PyPI(需先安装 `build`、`twine`):
113
-
114
- ```bash
115
- # 在 CommitUpdater 目录
116
- cd CommitUpdater
117
- python3 -m build
118
- twine upload dist/*
119
- ```
120
-
121
- 若使用私有 PyPI,将 `twine upload` 目标改为对应 index。单独发布 CommitUpdater 时,直接复制整个 `CommitUpdater` 目录到新仓库根目录即可,在该目录执行上述命令即可。
122
-
123
- ## 注意事项
124
-
125
- - `MainProjUpdater` 会自动执行提交和推送,请确保主工程分支、权限和远程状态正确
126
- - `LockFileUpdater` 遇到 `:branch:` 配置会跳过该组件更新
127
- - 运行前请确保主工程目录下存在 `Podfile.lock`
128
- - 当前 `main.py` 中有 `isTest` 测试入口,正式使用命令行时请保持 `isTest = False`
@@ -1,108 +0,0 @@
1
- # CommitUpdater
2
-
3
- 用于在主工程中批量更新 `Podfile.lock` 里的组件 commit,并自动提交推送主工程仓库。
4
-
5
- ## 功能概述
6
-
7
- - 拉取主工程最新代码(`git pull`)
8
- - 根据组件名定位本地组件仓库路径
9
- - 获取组件仓库最新 commit(`git fetch` + `git rev-parse HEAD`)
10
- - 更新主工程 `Podfile.lock` 对应组件的 `:commit:`
11
- - 自动执行 `git add Podfile.lock`、`git commit`、`git push`
12
-
13
- ## 目录说明
14
-
15
- - `main.py`:入口脚本(命令行参数解析)
16
- - `MainProjUpdater.py`:主流程编排(pull、更新、提交推送)
17
- - `ComponentGitFinder.py`:组件本地仓库路径查找
18
- - `CommitFetcher.py`:获取组件仓库最新 commit
19
- - `LockFileUpdater.py`:更新 `Podfile.lock` 里的 commit
20
-
21
- ## 组件路径查找规则
22
-
23
- `ComponentGitFinder` 会优先按以下方式定位组件目录:
24
-
25
- 1. 如果初始化时传入 `repo_root`,直接拼接 `repo_root/component_name`
26
- 2. 否则自动读取主工程下的开发者配置目录:
27
- - `cocoapods/Member_modules/*.rb`
28
- - 从各配置文件的 `:pathes => [...]` 解析本地仓库根目录
29
- - 依次检查 `<repo_root>/<component_name>` 是否存在
30
- - 找到即返回对应路径
31
-
32
- 已适配以下 `:pathes` 写法:
33
- - 多行数组
34
- - 行内或独立行注释(`# ...`)
35
- - 单引号/双引号路径
36
-
37
- ## 安装与使用
38
-
39
- ### 方式一:pip 安装(推荐,独立包)
40
-
41
- `pyproject.toml` 位于 `CommitUpdater` 目录,可将该目录作为独立包根目录安装,并得到全局命令 `commit-updater`:
42
-
43
- ```bash
44
- # 在 CommitUpdater 目录
45
- cd CommitUpdater
46
- pip install -e .
47
-
48
- # 之后可在任意目录执行(需先 cd 到含 Podfile.lock 的主工程目录)
49
- commit-updater BBUnlock BBEngine
50
- ```
51
-
52
- 发布到 PyPI 后,他人可直接:
53
-
54
- ```bash
55
- pip install commit-updater
56
- commit-updater BBUnlock BBEngine
57
- ```
58
-
59
- ### 方式二:不安装,在仓库根目录运行
60
-
61
- 在仓库根目录(`BBScriptToolBundle`)执行:
62
-
63
- ```bash
64
- python3 -m CommitUpdater.main BBUnlock BBEngine
65
- ```
66
-
67
- 或直接运行脚本:
68
-
69
- ```bash
70
- python3 CommitUpdater/main.py BBUnlock BBEngine
71
- ```
72
-
73
- ## PyCharm 运行注意事项
74
-
75
- 若使用 PyCharm 直接运行脚本,且 `Working directory` 设置不正确,可能出现:
76
-
77
- - `No module named 'CommitUpdater.MainProjUpdater'`
78
- - `'CommitUpdater' is not a package`
79
-
80
- 推荐方案:
81
-
82
- - 在 PyCharm 里使用 **Module name** 运行:`CommitUpdater.main`
83
- - Working directory 设为项目根目录:`BBScriptToolBundle`
84
-
85
- ## 提交信息规则
86
-
87
- - 单组件更新:`[update] <component>`
88
- - 多组件更新:`[update] Multiple components: <comp1>, <comp2>, ...`
89
-
90
- ## 发布(维护者)
91
-
92
- 打包与上传 PyPI(需先安装 `build`、`twine`):
93
-
94
- ```bash
95
- # 在 CommitUpdater 目录
96
- cd CommitUpdater
97
- python3 -m build
98
- twine upload dist/*
99
- ```
100
-
101
- 若使用私有 PyPI,将 `twine upload` 目标改为对应 index。单独发布 CommitUpdater 时,直接复制整个 `CommitUpdater` 目录到新仓库根目录即可,在该目录执行上述命令即可。
102
-
103
- ## 注意事项
104
-
105
- - `MainProjUpdater` 会自动执行提交和推送,请确保主工程分支、权限和远程状态正确
106
- - `LockFileUpdater` 遇到 `:branch:` 配置会跳过该组件更新
107
- - 运行前请确保主工程目录下存在 `Podfile.lock`
108
- - 当前 `main.py` 中有 `isTest` 测试入口,正式使用命令行时请保持 `isTest = False`
@@ -1,128 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: commit-updater
3
- Version: 0.1.0
4
- Summary: Update Podfile.lock component commits from local git repos and push
5
- Author: Aron
6
- License: MIT
7
- Keywords: cocoapods,podfile,git,lockfile
8
- Classifier: Development Status :: 4 - Beta
9
- Classifier: Environment :: Console
10
- Classifier: Intended Audience :: Developers
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Programming Language :: Python :: 3.12
17
- Classifier: Topic :: Software Development :: Version Control
18
- Requires-Python: >=3.8
19
- Description-Content-Type: text/markdown
20
-
21
- # CommitUpdater
22
-
23
- 用于在主工程中批量更新 `Podfile.lock` 里的组件 commit,并自动提交推送主工程仓库。
24
-
25
- ## 功能概述
26
-
27
- - 拉取主工程最新代码(`git pull`)
28
- - 根据组件名定位本地组件仓库路径
29
- - 获取组件仓库最新 commit(`git fetch` + `git rev-parse HEAD`)
30
- - 更新主工程 `Podfile.lock` 对应组件的 `:commit:`
31
- - 自动执行 `git add Podfile.lock`、`git commit`、`git push`
32
-
33
- ## 目录说明
34
-
35
- - `main.py`:入口脚本(命令行参数解析)
36
- - `MainProjUpdater.py`:主流程编排(pull、更新、提交推送)
37
- - `ComponentGitFinder.py`:组件本地仓库路径查找
38
- - `CommitFetcher.py`:获取组件仓库最新 commit
39
- - `LockFileUpdater.py`:更新 `Podfile.lock` 里的 commit
40
-
41
- ## 组件路径查找规则
42
-
43
- `ComponentGitFinder` 会优先按以下方式定位组件目录:
44
-
45
- 1. 如果初始化时传入 `repo_root`,直接拼接 `repo_root/component_name`
46
- 2. 否则自动读取主工程下的开发者配置目录:
47
- - `cocoapods/Member_modules/*.rb`
48
- - 从各配置文件的 `:pathes => [...]` 解析本地仓库根目录
49
- - 依次检查 `<repo_root>/<component_name>` 是否存在
50
- - 找到即返回对应路径
51
-
52
- 已适配以下 `:pathes` 写法:
53
- - 多行数组
54
- - 行内或独立行注释(`# ...`)
55
- - 单引号/双引号路径
56
-
57
- ## 安装与使用
58
-
59
- ### 方式一:pip 安装(推荐,独立包)
60
-
61
- `pyproject.toml` 位于 `CommitUpdater` 目录,可将该目录作为独立包根目录安装,并得到全局命令 `commit-updater`:
62
-
63
- ```bash
64
- # 在 CommitUpdater 目录
65
- cd CommitUpdater
66
- pip install -e .
67
-
68
- # 之后可在任意目录执行(需先 cd 到含 Podfile.lock 的主工程目录)
69
- commit-updater BBUnlock BBEngine
70
- ```
71
-
72
- 发布到 PyPI 后,他人可直接:
73
-
74
- ```bash
75
- pip install commit-updater
76
- commit-updater BBUnlock BBEngine
77
- ```
78
-
79
- ### 方式二:不安装,在仓库根目录运行
80
-
81
- 在仓库根目录(`BBScriptToolBundle`)执行:
82
-
83
- ```bash
84
- python3 -m CommitUpdater.main BBUnlock BBEngine
85
- ```
86
-
87
- 或直接运行脚本:
88
-
89
- ```bash
90
- python3 CommitUpdater/main.py BBUnlock BBEngine
91
- ```
92
-
93
- ## PyCharm 运行注意事项
94
-
95
- 若使用 PyCharm 直接运行脚本,且 `Working directory` 设置不正确,可能出现:
96
-
97
- - `No module named 'CommitUpdater.MainProjUpdater'`
98
- - `'CommitUpdater' is not a package`
99
-
100
- 推荐方案:
101
-
102
- - 在 PyCharm 里使用 **Module name** 运行:`CommitUpdater.main`
103
- - Working directory 设为项目根目录:`BBScriptToolBundle`
104
-
105
- ## 提交信息规则
106
-
107
- - 单组件更新:`[update] <component>`
108
- - 多组件更新:`[update] Multiple components: <comp1>, <comp2>, ...`
109
-
110
- ## 发布(维护者)
111
-
112
- 打包与上传 PyPI(需先安装 `build`、`twine`):
113
-
114
- ```bash
115
- # 在 CommitUpdater 目录
116
- cd CommitUpdater
117
- python3 -m build
118
- twine upload dist/*
119
- ```
120
-
121
- 若使用私有 PyPI,将 `twine upload` 目标改为对应 index。单独发布 CommitUpdater 时,直接复制整个 `CommitUpdater` 目录到新仓库根目录即可,在该目录执行上述命令即可。
122
-
123
- ## 注意事项
124
-
125
- - `MainProjUpdater` 会自动执行提交和推送,请确保主工程分支、权限和远程状态正确
126
- - `LockFileUpdater` 遇到 `:branch:` 配置会跳过该组件更新
127
- - 运行前请确保主工程目录下存在 `Podfile.lock`
128
- - 当前 `main.py` 中有 `isTest` 测试入口,正式使用命令行时请保持 `isTest = False`
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- commit-updater = CommitUpdater.main:main
File without changes
File without changes