zt-devops-cli 0.1.1__tar.gz → 0.1.4__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zt-devops-cli
3
- Version: 0.1.1
3
+ Version: 0.1.4
4
4
  Summary: DevOps 平台迭代管理 CLI
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -21,10 +21,16 @@ twine upload dist/*
21
21
  ```
22
22
 
23
23
  ## 安装
24
+ * 源码安装
24
25
  ```bash
25
26
  pip install -e .
26
27
  ```
27
28
 
29
+ * pip安装
30
+ ```bash
31
+ pipx install zt-devops-cli
32
+ ```
33
+
28
34
  ## 使用
29
35
 
30
36
  ### 登陆
@@ -10,10 +10,16 @@ twine upload dist/*
10
10
  ```
11
11
 
12
12
  ## 安装
13
+ * 源码安装
13
14
  ```bash
14
15
  pip install -e .
15
16
  ```
16
17
 
18
+ * pip安装
19
+ ```bash
20
+ pipx install zt-devops-cli
21
+ ```
22
+
17
23
  ## 使用
18
24
 
19
25
  ### 登陆
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "zt-devops-cli"
7
- version = "0.1.1"
7
+ version = "0.1.4"
8
8
  description = "DevOps 平台迭代管理 CLI"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -16,7 +16,7 @@ dependencies = [
16
16
  ]
17
17
 
18
18
  [project.scripts]
19
- devops-cli = "devops_cli.cli:main"
19
+ zt-devops-cli = "devops_cli.cli:main"
20
20
 
21
21
  [tool.pytest.ini_options]
22
22
  testpaths = ["tests"]
@@ -58,8 +58,8 @@ def get_auth_cookies() -> dict:
58
58
 
59
59
  def open_login_page(page) -> bool:
60
60
  """自动登录 - 尝试读取环境变量自动填写账号密码"""
61
- username = os.environ.get("DEVOPS_USERNAME")
62
- password = os.environ.get("DEVOPS_PASSWORD")
61
+ username = os.environ.get("ZT_SSO_USERNAME")
62
+ password = os.environ.get("ZT_SSO_PASSWORD")
63
63
 
64
64
  if not username or not password:
65
65
  return False
@@ -249,7 +249,7 @@ def list_sprint(ctx, project):
249
249
  )
250
250
  return
251
251
  render_table(
252
- headers=["迭代名称", "迭代ID", "开始时间", "结束时间", "迭代状态", "提测时间", "测试开始时间", "测试完成时间","验收完成", "负责人"],
252
+ headers=["迭代名称", "迭代ID", "开始时间", "结束时间", "迭代状态", "提测时间", "测试开始时间", "测试完成时间","验收完成", "开发负责人", "测试负责人", "验收负责人"],
253
253
  rows=[
254
254
  [
255
255
  s.get("title"),
@@ -9,7 +9,7 @@ import yaml
9
9
  class Config:
10
10
  """配置类"""
11
11
 
12
- CONFIG_DIR = Path.home() / ".devops-cli"
12
+ CONFIG_DIR = Path.home() / ".zt-devops-cli"
13
13
  COOKIE_FILE = CONFIG_DIR / "cookies.json"
14
14
  CONFIG_FILE = CONFIG_DIR / "config.yaml"
15
15
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zt-devops-cli
3
- Version: 0.1.1
3
+ Version: 0.1.4
4
4
  Summary: DevOps 平台迭代管理 CLI
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -21,10 +21,16 @@ twine upload dist/*
21
21
  ```
22
22
 
23
23
  ## 安装
24
+ * 源码安装
24
25
  ```bash
25
26
  pip install -e .
26
27
  ```
27
28
 
29
+ * pip安装
30
+ ```bash
31
+ pipx install zt-devops-cli
32
+ ```
33
+
28
34
  ## 使用
29
35
 
30
36
  ### 登陆
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ zt-devops-cli = devops_cli.cli:main
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- devops-cli = devops_cli.cli:main
File without changes