bcmd 0.6.20__tar.gz → 0.6.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.
Potentially problematic release.
This version of bcmd might be problematic. Click here for more details.
- {bcmd-0.6.20 → bcmd-0.6.21}/PKG-INFO +1 -1
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/docs.py +6 -7
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd.egg-info/PKG-INFO +1 -1
- {bcmd-0.6.20 → bcmd-0.6.21}/pyproject.toml +1 -1
- {bcmd-0.6.20 → bcmd-0.6.21}/MANIFEST.in +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/README.md +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/__init__.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/common/__init__.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/common/func.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/common/secret.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/resources/project/main.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/__init__.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/bin.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/code.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/crypto.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/download.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/image.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/json.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/lib.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/math.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/mirror.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/pdf.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/project.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/proxy.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/time.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/upgrade.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/tasks/wasabi.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd/utils/__init__.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd.egg-info/SOURCES.txt +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd.egg-info/dependency_links.txt +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd.egg-info/entry_points.txt +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd.egg-info/requires.txt +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/bcmd.egg-info/top_level.txt +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/setup.cfg +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/test/__init__.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/test/conftest.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/test/test_pdf.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/test/test_proxy.py +0 -0
- {bcmd-0.6.20 → bcmd-0.6.21}/test/test_wasabi.py +0 -0
|
@@ -47,7 +47,7 @@ async def build(
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
async def init(path: Path):
|
|
50
|
-
global projectPath, docsPath, vitepressDistPath, distPath, deployPath,
|
|
50
|
+
global projectPath, docsPath, vitepressDistPath, distPath, deployPath, zipFile
|
|
51
51
|
|
|
52
52
|
# 初始化目录路径
|
|
53
53
|
projectPath = path
|
|
@@ -62,10 +62,10 @@ async def init(path: Path):
|
|
|
62
62
|
bpath.remove(vitepressDistPath)
|
|
63
63
|
|
|
64
64
|
# 更新配置
|
|
65
|
-
|
|
66
|
-
if not
|
|
67
|
-
btask.abort('部署文件不存在',
|
|
68
|
-
conf.update(await bfile.readToml(
|
|
65
|
+
projectTomlFile = projectPath / 'project.toml'
|
|
66
|
+
if not projectTomlFile.exists():
|
|
67
|
+
btask.abort('部署文件不存在', projectTomlFile)
|
|
68
|
+
conf.update(await bfile.readToml(projectTomlFile))
|
|
69
69
|
|
|
70
70
|
# 整理特殊的字段
|
|
71
71
|
zipFile = distPath / f'{conf['domain']}_{now}.7z'
|
|
@@ -115,8 +115,7 @@ async def vitepressBuild(outputPath: Path):
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
async def makeDeploy(outputPath: Path):
|
|
118
|
-
bpath.copy(
|
|
119
|
-
bpath.remove(outputPath / 'info.toml')
|
|
118
|
+
bpath.copy(deployPath, outputPath)
|
|
120
119
|
|
|
121
120
|
# 删除配置里面加密和删除非字符串的配置,剩下的内容用于替换文件名和文件内容
|
|
122
121
|
dataDict: dict[str, Any] = pickle.loads(pickle.dumps(conf))
|
|
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
|
|
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
|
|
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
|