ai-agent-task 0.1.0__tar.gz → 0.1.0.dev1__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: ai-agent-task
3
- Version: 0.1.0
3
+ Version: 0.1.0.dev1
4
4
  Summary: A Python CLI tool built with ConfigArgParse
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/your-username/ai-agent-task
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ai-agent-task"
7
- version = "0.1.0"
7
+ version = "0.1.0.dev1"
8
8
  description = "A Python CLI tool built with ConfigArgParse"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1,14 +1,8 @@
1
1
  import sys
2
- from importlib.metadata import version, PackageNotFoundError
3
2
 
4
3
  import configargparse
5
4
 
6
-
7
- def _get_version() -> str:
8
- try:
9
- return version("ai-agent-task")
10
- except PackageNotFoundError:
11
- return "0.0.0"
5
+ from ai_agent_task import __version__
12
6
 
13
7
 
14
8
  def build_parser() -> configargparse.ArgumentParser:
@@ -21,7 +15,7 @@ def build_parser() -> configargparse.ArgumentParser:
21
15
  "-v",
22
16
  "--version",
23
17
  action="version",
24
- version=f"%(prog)s {_get_version()}",
18
+ version=f"%(prog)s {__version__}",
25
19
  help="显示版本号并退出",
26
20
  )
27
21
  return p
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ai-agent-task
3
- Version: 0.1.0
3
+ Version: 0.1.0.dev1
4
4
  Summary: A Python CLI tool built with ConfigArgParse
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/your-username/ai-agent-task