dev-shell 0.11.0__tar.gz → 0.11.1__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 (37) hide show
  1. {dev_shell-0.11.0 → dev_shell-0.11.1}/PKG-INFO +6 -4
  2. {dev_shell-0.11.0 → dev_shell-0.11.1}/README.md +5 -3
  3. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/__init__.py +1 -1
  4. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/utils/subprocess_utils.py +20 -1
  5. {dev_shell-0.11.0 → dev_shell-0.11.1}/.editorconfig +0 -0
  6. {dev_shell-0.11.0 → dev_shell-0.11.1}/.github/workflows/tests.yml +0 -0
  7. {dev_shell-0.11.0 → dev_shell-0.11.1}/.gitignore +0 -0
  8. {dev_shell-0.11.0 → dev_shell-0.11.1}/.idea/.gitignore +0 -0
  9. {dev_shell-0.11.0 → dev_shell-0.11.1}/.pre-commit-config.yaml +0 -0
  10. {dev_shell-0.11.0 → dev_shell-0.11.1}/.pre-commit-hooks.yaml +0 -0
  11. {dev_shell-0.11.0 → dev_shell-0.11.1}/.run/Template Python tests.run.xml +0 -0
  12. {dev_shell-0.11.0 → dev_shell-0.11.1}/.run/Unittests __all__.run.xml +0 -0
  13. {dev_shell-0.11.0 → dev_shell-0.11.1}/LICENSE +0 -0
  14. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/__main__.py +0 -0
  15. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/base_cmd2_app.py +0 -0
  16. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/bootstrap-source.py +0 -0
  17. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/command_sets/__init__.py +0 -0
  18. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/command_sets/dev_shell_commands.py +0 -0
  19. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/config.py +0 -0
  20. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/constants.py +0 -0
  21. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/dev_shell_app.py +0 -0
  22. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/tests/__init__.py +0 -0
  23. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/tests/constants.py +0 -0
  24. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/tests/fixtures.py +0 -0
  25. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/tests/test_bootstrap.py +0 -0
  26. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/tests/test_dev_shell_app.py +0 -0
  27. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/tests/test_doctests.py +0 -0
  28. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/tests/test_project_setup.py +0 -0
  29. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/tests/test_readme.py +0 -0
  30. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/tests/test_readme_history.py +0 -0
  31. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/tests/test_source_file.py +0 -0
  32. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/utils/__init__.py +0 -0
  33. {dev_shell-0.11.0 → dev_shell-0.11.1}/dev_shell/utils/colorful.py +0 -0
  34. {dev_shell-0.11.0 → dev_shell-0.11.1}/devshell.py +0 -0
  35. {dev_shell-0.11.0 → dev_shell-0.11.1}/dist/.gitignore +0 -0
  36. {dev_shell-0.11.0 → dev_shell-0.11.1}/noxfile.py +0 -0
  37. {dev_shell-0.11.0 → dev_shell-0.11.1}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dev-shell
3
- Version: 0.11.0
3
+ Version: 0.11.1
4
4
  Summary: Developer shell for easy startup...
5
5
  Project-URL: Documentation, https://github.com/jedie/dev-shell
6
6
  Project-URL: Source, https://github.com/jedie/dev-shell
@@ -88,6 +88,8 @@ See also:
88
88
 
89
89
  [comment]: <> (✂✂✂ auto generated history start ✂✂✂)
90
90
 
91
+ * [v0.11.1](https://github.com/jedie/dev-shell/compare/v0.11.0...v0.11.1)
92
+ * 2026-06-11 - fix _print_info() if Path instance pass as arguments
91
93
  * [v0.11.0](https://github.com/jedie/dev-shell/compare/v0.10.2...v0.11.0)
92
94
  * 2026-06-11 - Remove uv.lock from this repo: It's a library not a project
93
95
  * 2026-06-11 - nox: reuse venv
@@ -104,12 +106,12 @@ See also:
104
106
  * 2026-02-19 - Bugfix colorful helpers if a Path instance should be printed.
105
107
  * [v0.10.1](https://github.com/jedie/dev-shell/compare/v0.10.0...v0.10.1)
106
108
  * 2026-02-10 - Bugfix text color styles
107
- * [v0.10.0](https://github.com/jedie/dev-shell/compare/v0.9.1...v0.10.0)
108
- * 2026-02-10 - Cleanup
109
- * 2026-02-09 - Update project
110
109
 
111
110
  <details><summary>Expand older history entries ...</summary>
112
111
 
112
+ * [v0.10.0](https://github.com/jedie/dev-shell/compare/v0.9.1...v0.10.0)
113
+ * 2026-02-10 - Cleanup
114
+ * 2026-02-09 - Update project
113
115
  * [v0.9.1](https://github.com/jedie/dev-shell/compare/v0.9.0...v0.9.1)
114
116
  * 2025-03-11 - Fix usage as package in external projects
115
117
  * [v0.9.0](https://github.com/jedie/dev-shell/compare/v0.8.0...v0.9.0)
@@ -71,6 +71,8 @@ See also:
71
71
 
72
72
  [comment]: <> (✂✂✂ auto generated history start ✂✂✂)
73
73
 
74
+ * [v0.11.1](https://github.com/jedie/dev-shell/compare/v0.11.0...v0.11.1)
75
+ * 2026-06-11 - fix _print_info() if Path instance pass as arguments
74
76
  * [v0.11.0](https://github.com/jedie/dev-shell/compare/v0.10.2...v0.11.0)
75
77
  * 2026-06-11 - Remove uv.lock from this repo: It's a library not a project
76
78
  * 2026-06-11 - nox: reuse venv
@@ -87,12 +89,12 @@ See also:
87
89
  * 2026-02-19 - Bugfix colorful helpers if a Path instance should be printed.
88
90
  * [v0.10.1](https://github.com/jedie/dev-shell/compare/v0.10.0...v0.10.1)
89
91
  * 2026-02-10 - Bugfix text color styles
90
- * [v0.10.0](https://github.com/jedie/dev-shell/compare/v0.9.1...v0.10.0)
91
- * 2026-02-10 - Cleanup
92
- * 2026-02-09 - Update project
93
92
 
94
93
  <details><summary>Expand older history entries ...</summary>
95
94
 
95
+ * [v0.10.0](https://github.com/jedie/dev-shell/compare/v0.9.1...v0.10.0)
96
+ * 2026-02-10 - Cleanup
97
+ * 2026-02-09 - Update project
96
98
  * [v0.9.1](https://github.com/jedie/dev-shell/compare/v0.9.0...v0.9.1)
97
99
  * 2025-03-11 - Fix usage as package in external projects
98
100
  * [v0.9.0](https://github.com/jedie/dev-shell/compare/v0.8.0...v0.9.0)
@@ -4,5 +4,5 @@ Developer shell for easy startup...
4
4
  """
5
5
 
6
6
  # See https://packaging.python.org/en/latest/specifications/version-specifiers/
7
- __version__ = '0.11.0'
7
+ __version__ = '0.11.1'
8
8
  __author__ = 'Jens Diemer <dev-shell@jensdiemer.de>'
@@ -3,6 +3,7 @@ import shlex
3
3
  import shutil
4
4
  import subprocess
5
5
  import sys
6
+ from collections.abc import Iterable
6
7
  from pathlib import Path
7
8
 
8
9
  from bx_py_utils.path import assert_is_dir
@@ -60,13 +61,31 @@ def make_relative_path(path, relative_to):
60
61
  return path
61
62
 
62
63
 
64
+ def shlex_join_plus(args: Iterable) -> str:
65
+ """
66
+ Like shlex.join(), but also accepts Path objects.
67
+
68
+ >>> shlex_join_plus(['echo', Path('/tmp/my dir')])
69
+ "echo '/tmp/my dir'"
70
+ """
71
+
72
+ def path_to_str(parts):
73
+ for part in parts:
74
+ if isinstance(part, Path):
75
+ yield str(part)
76
+ else:
77
+ yield part
78
+
79
+ return shlex.join(path_to_str(args))
80
+
81
+
63
82
  def _print_info(popenargs, *, cwd, kwargs):
64
83
  print()
65
84
  print('_' * 100)
66
85
 
67
86
  if len(popenargs) > 1:
68
87
  command, *args = popenargs
69
- args = shlex.join(args)
88
+ args = shlex_join_plus(args)
70
89
  else:
71
90
  command = popenargs[0]
72
91
  args = ''
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes