ae-shell 0.3.2__tar.gz → 0.3.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.
@@ -1,4 +1,4 @@
1
- <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.project_tpls v0.3.56 -->
1
+ <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.project_tpls v0.3.57 -->
2
2
  ### GNU GENERAL PUBLIC LICENSE
3
3
 
4
4
  Version 3, 29 June 2007
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ae_shell
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: ae namespace module portion shell: shell execution and environment helpers
5
5
  Home-page: https://gitlab.com/ae-group/ae_shell
6
6
  Author: AndiEcker
@@ -27,7 +27,7 @@ Requires-Dist: aedev_project_tpls; extra == "dev"
27
27
  Requires-Dist: ae_ae; extra == "dev"
28
28
  Requires-Dist: anybadge; extra == "dev"
29
29
  Requires-Dist: coverage-badge; extra == "dev"
30
- Requires-Dist: aedev_git_repo_manager; extra == "dev"
30
+ Requires-Dist: aedev_project_manager; extra == "dev"
31
31
  Requires-Dist: flake8; extra == "dev"
32
32
  Requires-Dist: mypy; extra == "dev"
33
33
  Requires-Dist: pylint; extra == "dev"
@@ -40,7 +40,7 @@ Provides-Extra: docs
40
40
  Provides-Extra: tests
41
41
  Requires-Dist: anybadge; extra == "tests"
42
42
  Requires-Dist: coverage-badge; extra == "tests"
43
- Requires-Dist: aedev_git_repo_manager; extra == "tests"
43
+ Requires-Dist: aedev_project_manager; extra == "tests"
44
44
  Requires-Dist: flake8; extra == "tests"
45
45
  Requires-Dist: mypy; extra == "tests"
46
46
  Requires-Dist: pylint; extra == "tests"
@@ -63,15 +63,15 @@ Dynamic: provides-extra
63
63
  Dynamic: requires-python
64
64
  Dynamic: summary
65
65
 
66
- <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.96 -->
67
- <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
68
- # shell 0.3.2
66
+ <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.97 -->
67
+ <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.19 -->
68
+ # shell 0.3.4
69
69
 
70
70
  [![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/develop?logo=python)](
71
71
  https://gitlab.com/ae-group/ae_shell)
72
72
  [![LatestPyPIrelease](
73
- https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/release?logo=python)](
74
- https://gitlab.com/ae-group/ae_shell/-/tree/release)
73
+ https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/release0.3.4?logo=python)](
74
+ https://gitlab.com/ae-group/ae_shell/-/tree/release0.3.4)
75
75
  [![PyPIVersions](https://img.shields.io/pypi/v/ae_shell)](
76
76
  https://pypi.org/project/ae-shell/#history)
77
77
 
@@ -1,12 +1,12 @@
1
- <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.96 -->
2
- <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
3
- # shell 0.3.2
1
+ <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.97 -->
2
+ <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.19 -->
3
+ # shell 0.3.4
4
4
 
5
5
  [![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/develop?logo=python)](
6
6
  https://gitlab.com/ae-group/ae_shell)
7
7
  [![LatestPyPIrelease](
8
- https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/release?logo=python)](
9
- https://gitlab.com/ae-group/ae_shell/-/tree/release)
8
+ https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/release0.3.4?logo=python)](
9
+ https://gitlab.com/ae-group/ae_shell/-/tree/release0.3.4)
10
10
  [![PyPIVersions](https://img.shields.io/pypi/v/ae_shell)](
11
11
  https://pypi.org/project/ae-shell/#history)
12
12
 
@@ -182,6 +182,7 @@ this section includes various other utility functions and classes.
182
182
  - :data:`STDERR_BEG_MARKER`: marker used in the console output for the beginning of stderr output.
183
183
  - :data:`STDERR_END_MARKER`: marker used in the console output for the end of stderr output.
184
184
  """
185
+ # pylint: disable=too-many-lines
185
186
  import os
186
187
  import pprint
187
188
  import shlex
@@ -203,7 +204,7 @@ from ae.core import main_app_instance
203
204
  from ae.console import MAIN_SECTION_NAME, ConsoleApp # type: ignore
204
205
 
205
206
 
206
- __version__ = '0.3.2'
207
+ __version__ = '0.3.4'
207
208
 
208
209
 
209
210
  COMMIT_MSG_FILE_NAME = '.commit_msg.txt' #: name of the file containing the commit message
@@ -1203,7 +1204,7 @@ def sh_exit_if_git_err(err_code: int, command_line: str,
1203
1204
  main_app = get_main_app()
1204
1205
  git_debug = main_app.verbose
1205
1206
  git_trace_vars = ('GIT_TRACE', 'GIT_TRACE_PACK_ACCESS', 'GIT_TRACE_PACKET', 'GIT_TRACE_SETUP')
1206
- env_vars = {}
1207
+ env_vars = {'GIT_TERMINAL_PROMPT': "0"}
1207
1208
  if git_debug:
1208
1209
  env_vars['GIT_CURL_VERBOSE'] = "1"
1209
1210
  env_vars['GIT_MERGE_VERBOSITY'] = "5"
@@ -1212,7 +1213,7 @@ def sh_exit_if_git_err(err_code: int, command_line: str,
1212
1213
 
1213
1214
  cl_err = sh_exit_if_exec_err(err_code, command_line,
1214
1215
  extra_args=extra_args, lines_output=lines_output, exit_on_err=exit_on_err,
1215
- env_vars={**os.environ.copy(), **env_vars} if env_vars else None)
1216
+ env_vars={**os.environ, **env_vars})
1216
1217
 
1217
1218
  if log_files := sh_logs(log_enable_dir=log_enable_dir, log_name_prefix='git'):
1218
1219
  sh_log(command_line, extra_args=extra_args, cl_err=cl_err, lines_output=lines_output, log_file_paths=log_files)
@@ -1257,10 +1258,11 @@ def sh_log(comment_or_command: str, extra_args: Iterable[str] = (), cl_err: int
1257
1258
  (f" * {cl_err=}" + sep if cl_err else "") +
1258
1259
  (" " + (sep + " ").join(lines_output) + sep if lines_output else ""))
1259
1260
 
1260
- while "glpat-" in log_lines: # hide the gitlab private token, e.g. from git-push-urls with authentication
1261
- start = log_lines.index("glpat-")
1262
- end = log_lines.index("@gitlab.com", start)
1263
- log_lines = log_lines[:start] + "private-token-" + log_lines[end - 3:]
1261
+ for tok_beg, tok_end in (('glpat-', '@gitlab.com'), ('ghp_', '@github.com')):
1262
+ while tok_beg in log_lines: # hide the gitlab private token, e.g. from git-push-urls with authentication
1263
+ start = log_lines.index(tok_beg)
1264
+ end = log_lines.index(tok_end, start)
1265
+ log_lines = log_lines[:start] + "private-token-" + log_lines[end - 3:]
1264
1266
 
1265
1267
  for log_path in log_file_paths or sh_logs(log_name_prefix=log_name_prefix):
1266
1268
  write_file(log_path, log_lines, extra_mode='a')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ae_shell
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: ae namespace module portion shell: shell execution and environment helpers
5
5
  Home-page: https://gitlab.com/ae-group/ae_shell
6
6
  Author: AndiEcker
@@ -27,7 +27,7 @@ Requires-Dist: aedev_project_tpls; extra == "dev"
27
27
  Requires-Dist: ae_ae; extra == "dev"
28
28
  Requires-Dist: anybadge; extra == "dev"
29
29
  Requires-Dist: coverage-badge; extra == "dev"
30
- Requires-Dist: aedev_git_repo_manager; extra == "dev"
30
+ Requires-Dist: aedev_project_manager; extra == "dev"
31
31
  Requires-Dist: flake8; extra == "dev"
32
32
  Requires-Dist: mypy; extra == "dev"
33
33
  Requires-Dist: pylint; extra == "dev"
@@ -40,7 +40,7 @@ Provides-Extra: docs
40
40
  Provides-Extra: tests
41
41
  Requires-Dist: anybadge; extra == "tests"
42
42
  Requires-Dist: coverage-badge; extra == "tests"
43
- Requires-Dist: aedev_git_repo_manager; extra == "tests"
43
+ Requires-Dist: aedev_project_manager; extra == "tests"
44
44
  Requires-Dist: flake8; extra == "tests"
45
45
  Requires-Dist: mypy; extra == "tests"
46
46
  Requires-Dist: pylint; extra == "tests"
@@ -63,15 +63,15 @@ Dynamic: provides-extra
63
63
  Dynamic: requires-python
64
64
  Dynamic: summary
65
65
 
66
- <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.96 -->
67
- <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
68
- # shell 0.3.2
66
+ <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.97 -->
67
+ <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.19 -->
68
+ # shell 0.3.4
69
69
 
70
70
  [![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/develop?logo=python)](
71
71
  https://gitlab.com/ae-group/ae_shell)
72
72
  [![LatestPyPIrelease](
73
- https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/release?logo=python)](
74
- https://gitlab.com/ae-group/ae_shell/-/tree/release)
73
+ https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/release0.3.4?logo=python)](
74
+ https://gitlab.com/ae-group/ae_shell/-/tree/release0.3.4)
75
75
  [![PyPIVersions](https://img.shields.io/pypi/v/ae_shell)](
76
76
  https://pypi.org/project/ae-shell/#history)
77
77
 
@@ -4,7 +4,7 @@ aedev_project_tpls
4
4
  ae_ae
5
5
  anybadge
6
6
  coverage-badge
7
- aedev_git_repo_manager
7
+ aedev_project_manager
8
8
  flake8
9
9
  mypy
10
10
  pylint
@@ -19,7 +19,7 @@ types-setuptools
19
19
  [tests]
20
20
  anybadge
21
21
  coverage-badge
22
- aedev_git_repo_manager
22
+ aedev_project_manager
23
23
  flake8
24
24
  mypy
25
25
  pylint
@@ -1,4 +1,4 @@
1
- # THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.project_tpls v0.3.56
1
+ # THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.project_tpls v0.3.57
2
2
  [build-system]
3
3
  requires = ["setuptools>=42", "wheel"]
4
4
  build-backend = "setuptools.build_meta"
@@ -1,4 +1,4 @@
1
- # THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.project_tpls v0.3.56
1
+ # THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.project_tpls v0.3.57
2
2
  """ setup of ae namespace module portion shell: shell execution and environment helpers. """
3
3
  # noinspection PyUnresolvedReferences
4
4
  import sys
@@ -15,23 +15,23 @@ setup_kwargs = {
15
15
  'Programming Language :: Python :: 3.9', 'Topic :: Software Development :: Libraries :: Python Modules',
16
16
  'Typing :: Typed'],
17
17
  'description': 'ae namespace module portion shell: shell execution and environment helpers',
18
- 'extras_require': { 'dev': [ 'aedev_project_tpls', 'ae_ae', 'anybadge', 'coverage-badge', 'aedev_git_repo_manager', 'flake8',
18
+ 'extras_require': { 'dev': [ 'aedev_project_tpls', 'ae_ae', 'anybadge', 'coverage-badge', 'aedev_project_manager', 'flake8',
19
19
  'mypy', 'pylint', 'pytest', 'pytest-cov', 'pytest-django', 'typing', 'types-setuptools'],
20
20
  'docs': [],
21
- 'tests': [ 'anybadge', 'coverage-badge', 'aedev_git_repo_manager', 'flake8', 'mypy', 'pylint', 'pytest',
21
+ 'tests': [ 'anybadge', 'coverage-badge', 'aedev_project_manager', 'flake8', 'mypy', 'pylint', 'pytest',
22
22
  'pytest-cov', 'pytest-django', 'typing', 'types-setuptools']},
23
23
  'install_requires': [],
24
24
  'keywords': ['configuration', 'development', 'environment', 'productivity'],
25
25
  'license': 'GPL-3.0-or-later',
26
- 'long_description': ('<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.96 -->\n'
27
- '<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->\n'
28
- '# shell 0.3.2\n'
26
+ 'long_description': ('<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.97 -->\n'
27
+ '<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.19 -->\n'
28
+ '# shell 0.3.4\n'
29
29
  '\n'
30
30
  '[![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/develop?logo=python)](\n'
31
31
  ' https://gitlab.com/ae-group/ae_shell)\n'
32
32
  '[![LatestPyPIrelease](\n'
33
- ' https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/release?logo=python)](\n'
34
- ' https://gitlab.com/ae-group/ae_shell/-/tree/release)\n'
33
+ ' https://img.shields.io/gitlab/pipeline/ae-group/ae_shell/release0.3.4?logo=python)](\n'
34
+ ' https://gitlab.com/ae-group/ae_shell/-/tree/release0.3.4)\n'
35
35
  '[![PyPIVersions](https://img.shields.io/pypi/v/ae_shell)](\n'
36
36
  ' https://pypi.org/project/ae-shell/#history)\n'
37
37
  '\n'
@@ -108,7 +108,7 @@ setup_kwargs = {
108
108
  'Source': 'https://ae.readthedocs.io/en/latest/_modules/ae/shell.html'},
109
109
  'python_requires': '>=3.9',
110
110
  'url': 'https://gitlab.com/ae-group/ae_shell',
111
- 'version': '0.3.2',
111
+ 'version': '0.3.4',
112
112
  'zip_safe': True,
113
113
  }
114
114
 
File without changes
File without changes