Skip to content

Commit 57ee24f

Browse files
committed
refactor: unify package name to astrocli (npm + PyPI)
1 parent 06fe51e commit 57ee24f

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

npx-entry.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function needInstall() {
6363
return true;
6464
}
6565

66-
const check = spawnSync(venvPython, ["-m", "pip", "show", "astroquery-cli"], {
66+
const check = spawnSync(venvPython, ["-m", "pip", "show", "astrocli"], {
6767
stdio: "ignore",
6868
});
6969
return check.status !== 0;
@@ -74,18 +74,18 @@ function ensureCliInstalled() {
7474
return;
7575
}
7676

77-
log.info("正在安装/更新 astroquery-cli 到本地虚拟环境……");
77+
log.info("正在安装/更新 astrocli 到本地虚拟环境……");
7878
const install = tryCommand(venvPython, [
7979
"-m",
8080
"pip",
8181
"install",
8282
"--upgrade",
8383
"pip",
84-
"astroquery-cli",
84+
"astrocli",
8585
]);
8686

8787
if (install.status !== 0) {
88-
fail("安装 astroquery-cli 失败,请检查网络或 PyPI 访问。");
88+
fail("安装 astrocli 失败,请检查网络或 PyPI 访问。");
8989
}
9090
}
9191

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
2-
"name": "astroquery-cli",
3-
"version": "1.3.0",
2+
"name": "astrocli",
3+
"version": "1.4.0",
44
"description": "Command-line interface for querying astronomical databases via astroquery",
55
"bin": {
6-
"astroquery-cli": "./npx-entry.js",
7-
"aqc": "./npx-entry.js",
8-
"astrocli": "./npx-entry.js"
6+
"astrocli": "./npx-entry.js",
7+
"aqc": "./npx-entry.js"
98
},
109
"type": "module",
1110
"license": "BSD-3-Clause",

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
2-
name = "aqc-cli"
3-
version = "1.3.0"
2+
name = "astrocli"
3+
version = "1.4.0"
44
description = "CLI for astroquery modules with autocompletion and multi-language support."
55
authors = ["inoribea <inoribea@outlook.com>"]
66
license = "BSD-3-Clause"
@@ -32,8 +32,8 @@ Repository = "https://github.com/inoribea/astroquery-cli"
3232
Issues = "https://github.com/inoribea/astroquery-cli/issues"
3333

3434
[tool.poetry.scripts]
35-
aqc = "src.main:cli"
3635
astrocli = "src.main:cli"
36+
aqc = "src.main:cli"
3737

3838
[build-system]
3939
requires = ["poetry-core"]

0 commit comments

Comments
 (0)