dhis2w-cli 0.23.0__tar.gz → 0.99.0__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,15 +1,17 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dhis2w-cli
3
- Version: 0.23.0
3
+ Version: 0.99.0
4
4
  Summary: d2w command-line interface (Typer) — mounts plugins from dhis2w-core.
5
5
  Author: Morten Hansen
6
6
  Author-email: Morten Hansen <morten@winterop.com>
7
- Requires-Dist: dhis2w-core>=0.23.0,<0.24
7
+ Requires-Dist: dhis2w-core>=0.99.0,<1.1
8
8
  Requires-Dist: typer>=0.26
9
9
  Requires-Dist: rich>=15
10
- Requires-Dist: dhis2w-browser>=0.23.0,<0.24 ; extra == 'browser'
10
+ Requires-Dist: dhis2w-browser>=0.99.0,<1.1 ; extra == 'browser'
11
+ Requires-Dist: textual>=8.2.8 ; extra == 'tui'
11
12
  Requires-Python: >=3.13
12
13
  Provides-Extra: browser
14
+ Provides-Extra: tui
13
15
  Description-Content-Type: text/markdown
14
16
 
15
17
  # dhis2w-cli
@@ -1,18 +1,21 @@
1
1
  [project]
2
2
  name = "dhis2w-cli"
3
- version = "0.23.0"
3
+ version = "0.99.0"
4
4
  description = "d2w command-line interface (Typer) — mounts plugins from dhis2w-core."
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Morten Hansen", email = "morten@winterop.com" }]
7
7
  requires-python = ">=3.13"
8
8
  dependencies = [
9
- "dhis2w-core>=0.23.0,<0.24",
9
+ "dhis2w-core>=0.99.0,<1.1",
10
10
  "typer>=0.26",
11
11
  "rich>=15",
12
12
  ]
13
13
 
14
14
  [project.optional-dependencies]
15
- browser = ["dhis2w-browser>=0.23.0,<0.24"]
15
+ browser = ["dhis2w-browser>=0.99.0,<1.1"]
16
+ tui = [
17
+ "textual>=8.2.8",
18
+ ]
16
19
 
17
20
  [project.scripts]
18
21
  d2w = "dhis2w_cli.main:main"
@@ -59,12 +59,7 @@ def _version_banner() -> str:
59
59
  pkg_version = "unknown"
60
60
  active = resolve_startup_version()
61
61
  env_version = os.environ.get("DHIS2_VERSION", "").strip()
62
- if (
63
- env_version in {"41", "42", "43"}
64
- and f"v{env_version}" == active
65
- or env_version in {"v41", "v42", "v43"}
66
- and env_version == active
67
- ):
62
+ if env_version in {"v41", "v42", "v43"} and env_version == active:
68
63
  source = f"DHIS2_VERSION={env_version!r} env"
69
64
  elif active == DEFAULT_VERSION_KEY:
70
65
  source = "default (no profile.version, no DHIS2_VERSION env)"
File without changes