dev-shell 0.9.0rc1__tar.gz → 0.9.1rc1__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 (41) hide show
  1. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/PKG-INFO +3 -1
  2. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/README.md +2 -0
  3. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/__init__.py +1 -1
  4. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/command_sets/dev_shell_commands.py +15 -4
  5. dev_shell-0.9.1rc1/dev_shell/constants.py +12 -0
  6. dev_shell-0.9.1rc1/dev_shell/tests/constants.py +4 -0
  7. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/tests/test_project_setup.py +4 -4
  8. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/tests/test_source_file.py +3 -2
  9. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell.egg-info/PKG-INFO +3 -1
  10. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell.egg-info/SOURCES.txt +1 -0
  11. dev_shell-0.9.0rc1/dev_shell/constants.py +0 -21
  12. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/.editorconfig +0 -0
  13. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/.flake8 +0 -0
  14. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/.github/workflows/tests.yml +0 -0
  15. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/.gitignore +0 -0
  16. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/LICENSE +0 -0
  17. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/__main__.py +0 -0
  18. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/base_cmd2_app.py +0 -0
  19. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/bootstrap-source.py +0 -0
  20. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/command_sets/__init__.py +0 -0
  21. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/config.py +0 -0
  22. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/dev_shell_app.py +0 -0
  23. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/tests/__init__.py +0 -0
  24. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/tests/fixtures.py +0 -0
  25. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/tests/test_bootstrap.py +0 -0
  26. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/tests/test_dev_shell_app.py +0 -0
  27. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/tests/test_doctests.py +0 -0
  28. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/tests/utils.py +0 -0
  29. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/utils/__init__.py +0 -0
  30. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/utils/assertion.py +0 -0
  31. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/utils/colorful.py +0 -0
  32. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell/utils/subprocess_utils.py +0 -0
  33. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell.egg-info/dependency_links.txt +0 -0
  34. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell.egg-info/entry_points.txt +0 -0
  35. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell.egg-info/requires.txt +0 -0
  36. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/dev_shell.egg-info/top_level.txt +0 -0
  37. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/devshell.py +0 -0
  38. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/noxfile.py +0 -0
  39. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/pyproject.toml +0 -0
  40. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/setup.cfg +0 -0
  41. {dev_shell-0.9.0rc1 → dev_shell-0.9.1rc1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: dev-shell
3
- Version: 0.9.0rc1
3
+ Version: 0.9.1rc1
4
4
  Summary: Developer shell for easy startup...
5
5
  Author-email: Jens Diemer <dev-shell@jensdiemer.de>
6
6
  License: GPL-3.0-or-later
@@ -120,6 +120,8 @@ See also github test configuration: [.github/workflows/test.yml](https://github.
120
120
 
121
121
  * [*dev*](https://github.com/jedie/dev-shell/compare/v0.8.0...main)
122
122
  * TBC
123
+ * [0.9.1 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.9.0...v0.9.1)
124
+ * Fix usage as package in external projects
123
125
  * [0.9.0 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.8.0...v0.9.0)
124
126
  * Replace `poetry` with `uv`
125
127
  * [0.8.0 - 2024-04-09](https://github.com/jedie/dev-shell/compare/v0.7.0...v0.8.0)
@@ -106,6 +106,8 @@ See also github test configuration: [.github/workflows/test.yml](https://github.
106
106
 
107
107
  * [*dev*](https://github.com/jedie/dev-shell/compare/v0.8.0...main)
108
108
  * TBC
109
+ * [0.9.1 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.9.0...v0.9.1)
110
+ * Fix usage as package in external projects
109
111
  * [0.9.0 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.8.0...v0.9.0)
110
112
  * Replace `poetry` with `uv`
111
113
  * [0.8.0 - 2024-04-09](https://github.com/jedie/dev-shell/compare/v0.7.0...v0.8.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.9.0.rc1'
7
+ __version__ = '0.9.1rc1'
8
8
  __author__ = 'Jens Diemer <dev-shell@jensdiemer.de>'
@@ -12,7 +12,7 @@ from cmd2 import Cmd2ArgumentParser, with_argparser
12
12
  import dev_shell
13
13
  from dev_shell import __version__
14
14
  from dev_shell.command_sets import DevShellBaseCommandSet
15
- from dev_shell.constants import PACKAGE_ROOT
15
+ from dev_shell.constants import DEV_SHELL_PKG_PATH
16
16
  from dev_shell.utils.colorful import bright_green
17
17
  from dev_shell.utils.subprocess_utils import verbose_check_call
18
18
 
@@ -82,17 +82,24 @@ class DevShellCommandSet(DevShellBaseCommandSet):
82
82
  """
83
83
  run_coverage()
84
84
 
85
+ def do_install(self, statement: cmd2.Statement):
86
+ """
87
+ Install current project as editable via pip
88
+ """
89
+ tools_executor = ToolsExecutor(cwd=self.config.base_path)
90
+ tools_executor.verbose_check_call('pip', 'install', '-e', '.')
91
+
85
92
  def do_update(self, statement: cmd2.Statement):
86
93
  """
87
94
  Call "poetry update" to update all dependencies in .venv
88
95
  """
89
- tools_executor = ToolsExecutor(cwd=PACKAGE_ROOT)
96
+ tools_executor = ToolsExecutor(cwd=self.config.base_path)
90
97
 
91
98
  tools_executor.verbose_check_call('pip', 'install', '-U', 'pip')
92
99
  tools_executor.verbose_check_call('pip', 'install', '-U', 'uv')
93
100
  tools_executor.verbose_check_call('uv', 'lock', '--upgrade')
94
101
 
95
- run_pip_audit(base_path=PACKAGE_ROOT)
102
+ run_pip_audit(base_path=self.config.base_path)
96
103
 
97
104
  # Install new dependencies in current .venv:
98
105
  tools_executor.verbose_check_call('uv', 'sync')
@@ -128,7 +135,11 @@ class DevShellCommandSet(DevShellBaseCommandSet):
128
135
  """
129
136
  run_unittest_cli(verbose=False, exit_after_run=False) # Don't publish a broken state
130
137
 
131
- publish_package(module=dev_shell, package_path=PACKAGE_ROOT, distribution_name='dev-shell')
138
+ publish_package(
139
+ module=dev_shell,
140
+ package_path=DEV_SHELL_PKG_PATH.parent,
141
+ distribution_name='dev-shell',
142
+ )
132
143
 
133
144
  def do_version(self, statement: cmd2.Statement):
134
145
  print(__version__)
@@ -0,0 +1,12 @@
1
+ from pathlib import Path
2
+
3
+ from bx_py_utils.path import assert_is_file
4
+
5
+ import dev_shell
6
+
7
+
8
+ DEV_SHELL_PKG_PATH = Path(dev_shell.__file__).parent.resolve()
9
+
10
+ # The source file path for external projects:
11
+ BOOTSTRAP_SOURCE_FILE = DEV_SHELL_PKG_PATH / 'bootstrap-source.py'
12
+ assert_is_file(BOOTSTRAP_SOURCE_FILE)
@@ -0,0 +1,4 @@
1
+ from dev_shell.constants import DEV_SHELL_PKG_PATH
2
+
3
+
4
+ DEV_SHELL_PACKAGE_ROOT = DEV_SHELL_PKG_PATH.parent
@@ -3,16 +3,16 @@ from unittest import TestCase
3
3
  from cli_base.cli_tools.code_style import assert_code_style
4
4
  from manageprojects.test_utils.project_setup import check_editor_config, get_py_max_line_length
5
5
 
6
- from dev_shell.constants import PACKAGE_ROOT
6
+ from dev_shell.tests.constants import DEV_SHELL_PACKAGE_ROOT
7
7
 
8
8
 
9
9
  class ProjectSetupTestCase(TestCase):
10
10
  def test_code_style(self):
11
- return_code = assert_code_style(package_root=PACKAGE_ROOT)
11
+ return_code = assert_code_style(package_root=DEV_SHELL_PACKAGE_ROOT)
12
12
  self.assertEqual(return_code, 0, 'Code style error, see output above!')
13
13
 
14
14
  def test_check_editor_config(self):
15
- check_editor_config(package_root=PACKAGE_ROOT)
15
+ check_editor_config(package_root=DEV_SHELL_PACKAGE_ROOT)
16
16
 
17
- max_line_length = get_py_max_line_length(package_root=PACKAGE_ROOT)
17
+ max_line_length = get_py_max_line_length(package_root=DEV_SHELL_PACKAGE_ROOT)
18
18
  self.assertEqual(max_line_length, 119)
@@ -4,13 +4,14 @@ import subprocess
4
4
  import sys
5
5
  from unittest import TestCase
6
6
 
7
- from dev_shell.constants import BOOTSTRAP_SOURCE_FILE, PACKAGE_ROOT
7
+ from dev_shell.constants import BOOTSTRAP_SOURCE_FILE
8
+ from dev_shell.tests.constants import DEV_SHELL_PACKAGE_ROOT
8
9
  from dev_shell.utils.assertion import assert_is_file
9
10
 
10
11
 
11
12
  class SourceFileTestCase(TestCase):
12
13
  def test_source_file_is_up2date(self):
13
- own_bootstrap_file = PACKAGE_ROOT / 'devshell.py'
14
+ own_bootstrap_file = DEV_SHELL_PACKAGE_ROOT / 'devshell.py'
14
15
  assert_is_file(own_bootstrap_file)
15
16
 
16
17
  are_the_same = filecmp.cmp(own_bootstrap_file, BOOTSTRAP_SOURCE_FILE, shallow=False)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: dev-shell
3
- Version: 0.9.0rc1
3
+ Version: 0.9.1rc1
4
4
  Summary: Developer shell for easy startup...
5
5
  Author-email: Jens Diemer <dev-shell@jensdiemer.de>
6
6
  License: GPL-3.0-or-later
@@ -120,6 +120,8 @@ See also github test configuration: [.github/workflows/test.yml](https://github.
120
120
 
121
121
  * [*dev*](https://github.com/jedie/dev-shell/compare/v0.8.0...main)
122
122
  * TBC
123
+ * [0.9.1 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.9.0...v0.9.1)
124
+ * Fix usage as package in external projects
123
125
  * [0.9.0 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.8.0...v0.9.0)
124
126
  * Replace `poetry` with `uv`
125
127
  * [0.8.0 - 2024-04-09](https://github.com/jedie/dev-shell/compare/v0.7.0...v0.8.0)
@@ -24,6 +24,7 @@ dev_shell.egg-info/top_level.txt
24
24
  dev_shell/command_sets/__init__.py
25
25
  dev_shell/command_sets/dev_shell_commands.py
26
26
  dev_shell/tests/__init__.py
27
+ dev_shell/tests/constants.py
27
28
  dev_shell/tests/fixtures.py
28
29
  dev_shell/tests/test_bootstrap.py
29
30
  dev_shell/tests/test_dev_shell_app.py
@@ -1,21 +0,0 @@
1
- import sys
2
- from pathlib import Path
3
-
4
-
5
- PACKAGE_ROOT = Path(__file__).parent.parent.resolve()
6
- assert Path(PACKAGE_ROOT / 'dev_shell').is_dir(), f'Path wrong: {PACKAGE_ROOT}'
7
-
8
-
9
- if sys.platform == 'win32': # wtf
10
- BIN_NAME = 'Scripts'
11
- else:
12
- BIN_NAME = 'bin'
13
-
14
- VENV_PATH = PACKAGE_ROOT / '.venv'
15
-
16
- BIN_PATH = VENV_PATH / BIN_NAME
17
- assert BIN_PATH.is_dir()
18
-
19
-
20
- # The source file path for external projects:
21
- BOOTSTRAP_SOURCE_FILE = PACKAGE_ROOT / 'dev_shell' / 'bootstrap-source.py'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes