dev-shell 0.9.0__tar.gz → 0.9.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.
- {dev_shell-0.9.0 → dev_shell-0.9.1}/PKG-INFO +5 -1
- {dev_shell-0.9.0 → dev_shell-0.9.1}/README.md +4 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/__init__.py +1 -1
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/command_sets/dev_shell_commands.py +15 -4
- dev_shell-0.9.1/dev_shell/constants.py +12 -0
- dev_shell-0.9.1/dev_shell/tests/constants.py +4 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/tests/test_project_setup.py +4 -4
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/tests/test_source_file.py +3 -2
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell.egg-info/PKG-INFO +5 -1
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell.egg-info/SOURCES.txt +1 -0
- dev_shell-0.9.0/dev_shell/constants.py +0 -21
- {dev_shell-0.9.0 → dev_shell-0.9.1}/.editorconfig +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/.flake8 +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/.github/workflows/tests.yml +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/.gitignore +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/LICENSE +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/__main__.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/base_cmd2_app.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/bootstrap-source.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/command_sets/__init__.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/config.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/dev_shell_app.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/tests/__init__.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/tests/fixtures.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/tests/test_bootstrap.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/tests/test_dev_shell_app.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/tests/test_doctests.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/tests/utils.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/utils/__init__.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/utils/assertion.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/utils/colorful.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell/utils/subprocess_utils.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell.egg-info/dependency_links.txt +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell.egg-info/entry_points.txt +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell.egg-info/requires.txt +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/dev_shell.egg-info/top_level.txt +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/devshell.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/noxfile.py +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/pyproject.toml +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/setup.cfg +0 -0
- {dev_shell-0.9.0 → dev_shell-0.9.1}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: dev-shell
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.1
|
|
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
|
|
@@ -14,6 +14,8 @@ Requires-Dist: cli-base-utilities
|
|
|
14
14
|
|
|
15
15
|
# A "dev-shell" for Python projects ;)
|
|
16
16
|
|
|
17
|
+
**Note: The continuation of this project is uncertain!**
|
|
18
|
+
|
|
17
19
|
[](https://github.com/jedie/dev-shell/actions/workflows/tests.yml)
|
|
18
20
|
[](https://app.codecov.io/github/jedie/dev_shell)
|
|
19
21
|
[](https://pypi.org/project/dev_shell/)
|
|
@@ -120,6 +122,8 @@ See also github test configuration: [.github/workflows/test.yml](https://github.
|
|
|
120
122
|
|
|
121
123
|
* [*dev*](https://github.com/jedie/dev-shell/compare/v0.8.0...main)
|
|
122
124
|
* TBC
|
|
125
|
+
* [0.9.1 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.9.0...v0.9.1)
|
|
126
|
+
* Fix usage as package in external projects
|
|
123
127
|
* [0.9.0 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.8.0...v0.9.0)
|
|
124
128
|
* Replace `poetry` with `uv`
|
|
125
129
|
* [0.8.0 - 2024-04-09](https://github.com/jedie/dev-shell/compare/v0.7.0...v0.8.0)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# A "dev-shell" for Python projects ;)
|
|
2
2
|
|
|
3
|
+
**Note: The continuation of this project is uncertain!**
|
|
4
|
+
|
|
3
5
|
[](https://github.com/jedie/dev-shell/actions/workflows/tests.yml)
|
|
4
6
|
[](https://app.codecov.io/github/jedie/dev_shell)
|
|
5
7
|
[](https://pypi.org/project/dev_shell/)
|
|
@@ -106,6 +108,8 @@ See also github test configuration: [.github/workflows/test.yml](https://github.
|
|
|
106
108
|
|
|
107
109
|
* [*dev*](https://github.com/jedie/dev-shell/compare/v0.8.0...main)
|
|
108
110
|
* TBC
|
|
111
|
+
* [0.9.1 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.9.0...v0.9.1)
|
|
112
|
+
* Fix usage as package in external projects
|
|
109
113
|
* [0.9.0 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.8.0...v0.9.0)
|
|
110
114
|
* Replace `poetry` with `uv`
|
|
111
115
|
* [0.8.0 - 2024-04-09](https://github.com/jedie/dev-shell/compare/v0.7.0...v0.8.0)
|
|
@@ -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
|
|
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=
|
|
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=
|
|
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(
|
|
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)
|
|
@@ -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
|
|
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=
|
|
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=
|
|
15
|
+
check_editor_config(package_root=DEV_SHELL_PACKAGE_ROOT)
|
|
16
16
|
|
|
17
|
-
max_line_length = get_py_max_line_length(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
|
|
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 =
|
|
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.
|
|
3
|
+
Version: 0.9.1
|
|
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
|
|
@@ -14,6 +14,8 @@ Requires-Dist: cli-base-utilities
|
|
|
14
14
|
|
|
15
15
|
# A "dev-shell" for Python projects ;)
|
|
16
16
|
|
|
17
|
+
**Note: The continuation of this project is uncertain!**
|
|
18
|
+
|
|
17
19
|
[](https://github.com/jedie/dev-shell/actions/workflows/tests.yml)
|
|
18
20
|
[](https://app.codecov.io/github/jedie/dev_shell)
|
|
19
21
|
[](https://pypi.org/project/dev_shell/)
|
|
@@ -120,6 +122,8 @@ See also github test configuration: [.github/workflows/test.yml](https://github.
|
|
|
120
122
|
|
|
121
123
|
* [*dev*](https://github.com/jedie/dev-shell/compare/v0.8.0...main)
|
|
122
124
|
* TBC
|
|
125
|
+
* [0.9.1 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.9.0...v0.9.1)
|
|
126
|
+
* Fix usage as package in external projects
|
|
123
127
|
* [0.9.0 - 2025-03-11](https://github.com/jedie/dev-shell/compare/v0.8.0...v0.9.0)
|
|
124
128
|
* Replace `poetry` with `uv`
|
|
125
129
|
* [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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|