zt-devops-cli 0.1.3__tar.gz → 0.1.5__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.3
3
+ Version: 0.1.5
4
4
  Summary: DevOps 平台迭代管理 CLI
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -76,5 +76,5 @@ devops sprint done --project k64352 --sprint-id <id>
76
76
  ```
77
77
 
78
78
  ## 配置
79
- - cookie 缓存:`~/.devops-cli/cookies.json`
80
- - 配置文件:`~/.devops-cli/config.yaml`
79
+ - cookie 缓存:`~/.zt-devops-cli/cookies.json`
80
+ - 配置文件:`~/.zt-devops-cli/config.yaml`
@@ -65,5 +65,5 @@ devops sprint done --project k64352 --sprint-id <id>
65
65
  ```
66
66
 
67
67
  ## 配置
68
- - cookie 缓存:`~/.devops-cli/cookies.json`
69
- - 配置文件:`~/.devops-cli/config.yaml`
68
+ - cookie 缓存:`~/.zt-devops-cli/cookies.json`
69
+ - 配置文件:`~/.zt-devops-cli/config.yaml`
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "zt-devops-cli"
7
- version = "0.1.3"
7
+ version = "0.1.5"
8
8
  description = "DevOps 平台迭代管理 CLI"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -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.3
3
+ Version: 0.1.5
4
4
  Summary: DevOps 平台迭代管理 CLI
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -76,5 +76,5 @@ devops sprint done --project k64352 --sprint-id <id>
76
76
  ```
77
77
 
78
78
  ## 配置
79
- - cookie 缓存:`~/.devops-cli/cookies.json`
80
- - 配置文件:`~/.devops-cli/config.yaml`
79
+ - cookie 缓存:`~/.zt-devops-cli/cookies.json`
80
+ - 配置文件:`~/.zt-devops-cli/config.yaml`
File without changes