anipy-cli 3.5.6__tar.gz → 3.5.8__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 anipy-cli might be problematic. Click here for more details.

Files changed (26) hide show
  1. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/PKG-INFO +2 -2
  2. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/pyproject.toml +2 -2
  3. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/__init__.py +1 -1
  4. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/config.py +11 -3
  5. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/README.md +0 -0
  6. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/arg_parser.py +0 -0
  7. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/cli.py +0 -0
  8. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/clis/__init__.py +0 -0
  9. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/clis/base_cli.py +0 -0
  10. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/clis/binge_cli.py +0 -0
  11. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/clis/default_cli.py +0 -0
  12. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/clis/download_cli.py +0 -0
  13. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/clis/history_cli.py +0 -0
  14. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/clis/mal_cli.py +0 -0
  15. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/clis/seasonal_cli.py +0 -0
  16. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/colors.py +0 -0
  17. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/discord.py +0 -0
  18. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/download_component.py +0 -0
  19. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/mal_proxy.py +0 -0
  20. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/menus/__init__.py +0 -0
  21. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/menus/base_menu.py +0 -0
  22. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/menus/mal_menu.py +0 -0
  23. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/menus/menu.py +0 -0
  24. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/menus/seasonal_menu.py +0 -0
  25. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/prompts.py +0 -0
  26. {anipy_cli-3.5.6 → anipy_cli-3.5.8}/src/anipy_cli/util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: anipy-cli
3
- Version: 3.5.6
3
+ Version: 3.5.8
4
4
  Summary: Watch and Download anime from the comfort of your Terminal
5
5
  License: GPL-3.0
6
6
  Keywords: anime,cli
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
- Requires-Dist: anipy-api (>=3.5.6,<4.0.0)
17
+ Requires-Dist: anipy-api (>=3.5.8,<4.0.0)
18
18
  Requires-Dist: appdirs (>=1.4.4,<2.0.0)
19
19
  Requires-Dist: inquirerpy (>=0.3.4,<0.4.0)
20
20
  Requires-Dist: pypresence (>=4.3.0,<5.0.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "anipy-cli"
3
- version = "3.5.6"
3
+ version = "3.5.8"
4
4
  description = "Watch and Download anime from the comfort of your Terminal"
5
5
  authors = ["sdaqo <sdaqo.dev@protonmail.com>"]
6
6
  license = "GPL-3.0"
@@ -20,7 +20,7 @@ yaspin = "^3.0.2"
20
20
  inquirerpy = "^0.3.4"
21
21
  appdirs = "^1.4.4"
22
22
  pypresence = "^4.3.0"
23
- anipy-api = "^3.5.6"
23
+ anipy-api = "^3.5.8"
24
24
 
25
25
  [tool.poetry.scripts]
26
26
  anipy-cli = "anipy_cli.cli:run_cli"
@@ -1,2 +1,2 @@
1
1
  __appname__ = "anipy-cli"
2
- __version__ = "3.5.6"
2
+ __version__ = "3.5.8"
@@ -12,6 +12,8 @@ from anipy_cli import __appname__, __version__
12
12
 
13
13
 
14
14
  class Config:
15
+ _EXPAND_PATHS = True
16
+
15
17
  def __init__(self):
16
18
  self._config_file, self._yaml_conf = Config._read_config()
17
19
 
@@ -72,7 +74,7 @@ class Config:
72
74
 
73
75
  For an updated list of providers look here: https://sdaqo.github.io/anipy-cli/availabilty
74
76
 
75
- Supported providers (as of $version): allanime, animekai
77
+ Supported providers (as of $version): allanime, animekai (animekai is not functional for now)
76
78
 
77
79
  Examples:
78
80
  providers:
@@ -410,7 +412,10 @@ class Config:
410
412
  # os.path.expanduser is equivalent to Path().expanduser()
411
413
  # But because pathlib doesn't have expandvars(), we resort
412
414
  # to using the os module inside the Path constructor
413
- return Path(os.path.expandvars(path)).expanduser()
415
+ if self._EXPAND_PATHS:
416
+ return Path(os.path.expandvars(path)).expanduser()
417
+
418
+ return Path(path)
414
419
  except RuntimeError:
415
420
  return fallback
416
421
 
@@ -424,6 +429,8 @@ class Config:
424
429
  def _create_config(self):
425
430
  self._get_config_path().mkdir(exist_ok=True, parents=True)
426
431
  self._config_file.touch()
432
+
433
+ self._EXPAND_PATHS = False
427
434
 
428
435
  dump = ""
429
436
  # generate config based on attrs and default values of config class
@@ -448,7 +455,8 @@ class Config:
448
455
  + yaml.dump({attribute: val}, indent=4, default_flow_style=False)
449
456
  + "\n"
450
457
  )
451
-
458
+
459
+ self._EXPAND_PATHS = True
452
460
  self._config_file.write_text(dump)
453
461
 
454
462
  @staticmethod
File without changes