pyaether-cli 0.0.3__tar.gz → 0.0.4__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.
Files changed (29) hide show
  1. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/PKG-INFO +1 -1
  2. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/pyproject.toml +1 -1
  3. pyaether_cli-0.0.4/src/aether_cli/__init__.py +1 -0
  4. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/src/aether_cli/build_process.py +3 -1
  5. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/src/aether_cli/cli.py +1 -5
  6. pyaether_cli-0.0.3/src/aether_cli/__init__.py +0 -1
  7. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/.github/CODE_OF_CONDUCT.md +0 -0
  8. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  9. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  10. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  11. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/.github/ISSUE_TEMPLATE/misc.md +0 -0
  12. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  13. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/.github/workflows/build_and_publish.yaml +0 -0
  14. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/.gitignore +0 -0
  15. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/.pre-commit-config.yaml +0 -0
  16. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/.python-version +0 -0
  17. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/CHANGELOG.md +0 -0
  18. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/LICENCE.md +0 -0
  19. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/README.md +0 -0
  20. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/scripts/branch-name-check.sh +0 -0
  21. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/scripts/build.sh +0 -0
  22. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/scripts/publish.sh +0 -0
  23. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/scripts/versioning.py +0 -0
  24. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/src/aether_cli/__main__.py +0 -0
  25. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/src/aether_cli/configs.py +0 -0
  26. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/src/aether_cli/run_server.py +0 -0
  27. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/src/aether_cli/utils.py +0 -0
  28. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/tests/__init__.py +0 -0
  29. {pyaether_cli-0.0.3 → pyaether_cli-0.0.4}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyaether-cli
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: A CLI to build and run dev server for Aether apps.
5
5
  Project-URL: homepage, https://github.com/pyaether/aether-cli
6
6
  Project-URL: repository, https://github.com/pyaether/aether-cli
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyaether-cli"
3
- version = "0.0.3"
3
+ version = "0.0.4"
4
4
  description = "A CLI to build and run dev server for Aether apps."
5
5
  authors = [{ name = "Saurabh Ghanekar", email = "ghanekarsaurabh8@gmail.com" }]
6
6
  license = "BSD-2-Clause"
@@ -0,0 +1 @@
1
+ __version__ = "0.0.4"
@@ -29,7 +29,9 @@ def _update_paths_in_soup(
29
29
  ]:
30
30
  for tag in soup.find_all(tag_name):
31
31
  if attribute in tag.attrs:
32
- if not tag[attribute].startswith(("http://", "https://", "/")):
32
+ if not tag[attribute].startswith(
33
+ ("http://", "https://", "/", "mailto:")
34
+ ):
33
35
  old_path = Path(tag[attribute])
34
36
  if Path("styles") in old_path.parents:
35
37
  new_path = static_css_dir / old_path.relative_to("styles")
@@ -64,7 +64,7 @@ def build(prefix: str, verbose: bool) -> None:
64
64
  console.print(f"Copying {directory_name} from {src} to {dest}")
65
65
  shutil.copytree(src, dest, dirs_exist_ok=True)
66
66
  else:
67
- console.print(f"Project doesn't have a '{src}' directory.")
67
+ console.print(f"Project doesn't have a '{directory_name}' directory.")
68
68
 
69
69
  _copy_dir(configs.static_content_config.assets_dir, static_assets_dir, "assets")
70
70
  _copy_dir(configs.static_content_config.styles_dir, static_css_dir, "styles")
@@ -151,9 +151,6 @@ def run() -> None:
151
151
  server.shutdown()
152
152
  interrupt_event.set()
153
153
 
154
- # original_sigint = signal.getsignal(signal.SIGINT)
155
- # original_sigterm = signal.getsignal(signal.SIGTERM)
156
-
157
154
  signal.signal(signal.SIGINT, shutdown_handler)
158
155
  signal.signal(signal.SIGTERM, shutdown_handler)
159
156
 
@@ -187,7 +184,6 @@ def run() -> None:
187
184
  try:
188
185
  interrupt_event.wait()
189
186
  finally:
190
- # --- Cleanup: Restore original signal handlers ---
191
187
  console.print("[bold red]Server has been shut down.[/bold red]")
192
188
  signal.signal(signal.SIGINT, signal.getsignal(signal.SIGINT))
193
189
  signal.signal(signal.SIGTERM, signal.getsignal(signal.SIGTERM))
@@ -1 +0,0 @@
1
- __version__ = "0.0.3"
File without changes
File without changes
File without changes
File without changes
File without changes