twc-cli 2.13.1__tar.gz → 2.13.2__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.

Potentially problematic release.


This version of twc-cli might be problematic. Click here for more details.

Files changed (35) hide show
  1. {twc_cli-2.13.1 → twc_cli-2.13.2}/PKG-INFO +2 -1
  2. {twc_cli-2.13.1 → twc_cli-2.13.2}/pyproject.toml +3 -1
  3. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/__version__.py +1 -1
  4. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/server.py +4 -1
  5. {twc_cli-2.13.1 → twc_cli-2.13.2}/CHANGELOG.md +0 -0
  6. {twc_cli-2.13.1 → twc_cli-2.13.2}/COPYING +0 -0
  7. {twc_cli-2.13.1 → twc_cli-2.13.2}/README.md +0 -0
  8. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/__init__.py +0 -0
  9. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/__main__.py +0 -0
  10. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/api/__init__.py +0 -0
  11. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/api/base.py +0 -0
  12. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/api/client.py +0 -0
  13. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/api/exceptions.py +0 -0
  14. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/api/types.py +0 -0
  15. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/apiwrap.py +0 -0
  16. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/__init__.py +0 -0
  17. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/account.py +0 -0
  18. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/apps.py +0 -0
  19. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/balancer.py +0 -0
  20. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/common.py +0 -0
  21. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/config.py +0 -0
  22. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/database.py +0 -0
  23. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/domain.py +0 -0
  24. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/firewall.py +0 -0
  25. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/floating_ip.py +0 -0
  26. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/image.py +0 -0
  27. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/kubernetes.py +0 -0
  28. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/project.py +0 -0
  29. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/ssh_key.py +0 -0
  30. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/storage.py +0 -0
  31. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/commands/vpc.py +0 -0
  32. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/fmt.py +0 -0
  33. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/typerx.py +0 -0
  34. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/utils.py +0 -0
  35. {twc_cli-2.13.1 → twc_cli-2.13.2}/twc/vars.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: twc-cli
3
- Version: 2.13.1
3
+ Version: 2.13.2
4
4
  Summary: Timeweb Cloud Command Line Interface.
5
5
  License: MIT
6
6
  Author: ge
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
15
  Classifier: Programming Language :: Python :: 3.13
16
+ Requires-Dist: click (<8.2.0)
16
17
  Requires-Dist: colorama (>=0.4.6,<0.5.0)
17
18
  Requires-Dist: pygments (>=2.18.0,<3.0.0)
18
19
  Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "twc-cli"
3
- version = "2.13.1"
3
+ version = "2.13.2"
4
4
  description = "Timeweb Cloud Command Line Interface."
5
5
  authors = ["ge <dev@timeweb.cloud>"]
6
6
  homepage = "https://github.com/timeweb-cloud/twc"
@@ -19,6 +19,7 @@ colorama = "^0.4.6"
19
19
  toml = "^0.10.2"
20
20
  pyyaml = "^6.0.1"
21
21
  pygments = "^2.18.0"
22
+ click = "<8.2.0" # force old click to avoid typer/click compatibility issue
22
23
 
23
24
  [tool.poetry.group.dev.dependencies]
24
25
  black = "^24.4.2"
@@ -48,4 +49,5 @@ disable = [
48
49
  "duplicate-code",
49
50
  "invalid-name",
50
51
  "missing-function-docstring",
52
+ "too-many-positional-arguments",
51
53
  ]
@@ -12,5 +12,5 @@
12
12
  import sys
13
13
 
14
14
 
15
- __version__ = "2.13.1"
15
+ __version__ = "2.13.2"
16
16
  __pyversion__ = sys.version.replace("\n", "")
@@ -1270,7 +1270,10 @@ def server_list_presets(
1270
1270
  ):
1271
1271
  """List configuration presets."""
1272
1272
  if region:
1273
- filters = f"{filters},location:{region}"
1273
+ if filters:
1274
+ filters = f"{filters},location:{region.value}"
1275
+ else:
1276
+ filters = f"location:{region.value}"
1274
1277
  client = create_client(config, profile)
1275
1278
  response = client.get_server_presets()
1276
1279
  fmt.printer(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes