cmd2 2.5.0__py3-none-any.whl → 2.5.2__py3-none-any.whl

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.
cmd2/cmd2.py CHANGED
@@ -128,6 +128,13 @@ from .parsing import (
128
128
  StatementParser,
129
129
  shlex_split,
130
130
  )
131
+
132
+ # NOTE: When using gnureadline with Python 3.13, start_ipython needs to be imported before any readline-related stuff
133
+ try:
134
+ from IPython import start_ipython # type: ignore[import]
135
+ except ImportError:
136
+ pass
137
+
131
138
  from .rl_utils import (
132
139
  RlType,
133
140
  rl_escape_prompt,
@@ -4629,9 +4636,13 @@ class Cmd(cmd.Cmd):
4629
4636
  # Detect whether IPython is installed
4630
4637
  try:
4631
4638
  import traitlets.config.loader as TraitletsLoader # type: ignore[import]
4632
- from IPython import ( # type: ignore[import]
4633
- start_ipython,
4634
- )
4639
+
4640
+ # Allow users to install ipython from a cmd2 prompt when needed and still have ipy command work
4641
+ try:
4642
+ start_ipython # noqa F823
4643
+ except NameError:
4644
+ from IPython import start_ipython # type: ignore[import]
4645
+
4635
4646
  from IPython.terminal.interactiveshell import ( # type: ignore[import]
4636
4647
  TerminalInteractiveShell,
4637
4648
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cmd2
3
- Version: 2.5.0
3
+ Version: 2.5.2
4
4
  Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
5
5
  Home-page: https://github.com/python-cmd2/cmd2
6
6
  Author: Catherine Devlin
@@ -29,38 +29,38 @@ Description-Content-Type: text/markdown
29
29
  License-File: LICENSE
30
30
  Requires-Dist: pyperclip
31
31
  Requires-Dist: wcwidth
32
- Requires-Dist: pyreadline3; sys_platform == "win32"
32
+ Requires-Dist: pyreadline3 ; sys_platform=='win32'
33
33
  Provides-Extra: dev
34
- Requires-Dist: codecov; extra == "dev"
35
- Requires-Dist: doc8; extra == "dev"
36
- Requires-Dist: invoke; extra == "dev"
37
- Requires-Dist: mypy; extra == "dev"
38
- Requires-Dist: nox; extra == "dev"
39
- Requires-Dist: pytest-cov; extra == "dev"
40
- Requires-Dist: pytest-mock; extra == "dev"
41
- Requires-Dist: pytest>=4.6; extra == "dev"
42
- Requires-Dist: ruff; extra == "dev"
43
- Requires-Dist: sphinx; extra == "dev"
44
- Requires-Dist: sphinx-autobuild; extra == "dev"
45
- Requires-Dist: sphinx-rtd-theme; extra == "dev"
46
- Requires-Dist: twine; extra == "dev"
34
+ Requires-Dist: codecov ; extra == 'dev'
35
+ Requires-Dist: doc8 ; extra == 'dev'
36
+ Requires-Dist: invoke ; extra == 'dev'
37
+ Requires-Dist: mypy ; extra == 'dev'
38
+ Requires-Dist: nox ; extra == 'dev'
39
+ Requires-Dist: pytest >=4.6 ; extra == 'dev'
40
+ Requires-Dist: pytest-cov ; extra == 'dev'
41
+ Requires-Dist: pytest-mock ; extra == 'dev'
42
+ Requires-Dist: sphinx ; extra == 'dev'
43
+ Requires-Dist: sphinx-rtd-theme ; extra == 'dev'
44
+ Requires-Dist: sphinx-autobuild ; extra == 'dev'
45
+ Requires-Dist: ruff ; extra == 'dev'
46
+ Requires-Dist: twine ; extra == 'dev'
47
47
  Provides-Extra: docs
48
- Requires-Dist: setuptools; extra == "docs"
49
- Requires-Dist: setuptools-scm; extra == "docs"
50
- Requires-Dist: sphinx; extra == "docs"
51
- Requires-Dist: sphinx-autobuild; extra == "docs"
52
- Requires-Dist: sphinx-rtd-theme; extra == "docs"
48
+ Requires-Dist: setuptools ; extra == 'docs'
49
+ Requires-Dist: setuptools-scm ; extra == 'docs'
50
+ Requires-Dist: sphinx ; extra == 'docs'
51
+ Requires-Dist: sphinx-rtd-theme ; extra == 'docs'
52
+ Requires-Dist: sphinx-autobuild ; extra == 'docs'
53
53
  Provides-Extra: test
54
- Requires-Dist: codecov; extra == "test"
55
- Requires-Dist: coverage; extra == "test"
56
- Requires-Dist: pytest; extra == "test"
57
- Requires-Dist: pytest-cov; extra == "test"
58
- Requires-Dist: pytest-mock; extra == "test"
59
- Requires-Dist: gnureadline; sys_platform == "darwin" and extra == "test"
54
+ Requires-Dist: codecov ; extra == 'test'
55
+ Requires-Dist: coverage ; extra == 'test'
56
+ Requires-Dist: pytest ; extra == 'test'
57
+ Requires-Dist: pytest-cov ; extra == 'test'
58
+ Requires-Dist: pytest-mock ; extra == 'test'
59
+ Requires-Dist: gnureadline ; (sys_platform == "darwin") and extra == 'test'
60
60
  Provides-Extra: validate
61
- Requires-Dist: mypy; extra == "validate"
62
- Requires-Dist: ruff; extra == "validate"
63
- Requires-Dist: types-setuptools; extra == "validate"
61
+ Requires-Dist: mypy ; extra == 'validate'
62
+ Requires-Dist: ruff ; extra == 'validate'
63
+ Requires-Dist: types-setuptools ; extra == 'validate'
64
64
 
65
65
  <h1 align="center">cmd2 : immersive interactive command line applications</h1>
66
66
 
@@ -3,7 +3,7 @@ cmd2/ansi.py,sha256=BasPj_Wla0cEyjpe_zu-cn24CgVdSXK3sfxknLM1WcY,32203
3
3
  cmd2/argparse_completer.py,sha256=6z0zmODqM7vhQhI0c6JUvCmR2V4qfdWQEyTZeNIea8c,36505
4
4
  cmd2/argparse_custom.py,sha256=bbAYRr79ZSJWGchd7trmRQDHWAsSJaW0dTQMp65Mrv4,57806
5
5
  cmd2/clipboard.py,sha256=7EISono76d7djj17hbvR9cCTB7jVGSBkUjgVQiMyUjE,549
6
- cmd2/cmd2.py,sha256=V5Wjr3PVhyAgxGaf93Qir76ojy2IZFFlDuNUH5istD4,261033
6
+ cmd2/cmd2.py,sha256=fAw7vGAwjw0-3rWL2uUsm-MWEpQXhKxbmLdUhwf_K-4,261420
7
7
  cmd2/command_definition.py,sha256=jm15jQoskQLn5vhvxJinvjHg0KYhzydDU67Dkl734z4,6592
8
8
  cmd2/constants.py,sha256=O5SfjAZGgCl5-IxuHqBMmgbG3HhllxIcZBtkzzLYohA,1865
9
9
  cmd2/decorators.py,sha256=wM0PtalUseDfJVVQV2LkbZbqkZad2XudRiCmARCBWWs,20658
@@ -17,8 +17,8 @@ cmd2/rl_utils.py,sha256=HVPdNjuYyU67-XerPUJArmzhohzI1ABrZhU9cLc-EIs,11538
17
17
  cmd2/table_creator.py,sha256=qoxt9s3MxQkfSkp4cIPFMlVzC7kRjUU55p0ow7pFQus,47544
18
18
  cmd2/transcript.py,sha256=I0sD38RbG79Qz9GXIlfh1pHSNmWBTY2SLZAKEdSLWI4,9182
19
19
  cmd2/utils.py,sha256=M6Ojtq3QQ7NbuvgIcxmhEaN2o-OcxkI_LAXZIxu7DF4,49383
20
- cmd2-2.5.0.dist-info/LICENSE,sha256=QXrW0Z0merk9mncyUkn-sgRxhT8_o1dL5HEaBNH47Q4,1099
21
- cmd2-2.5.0.dist-info/METADATA,sha256=Tzpgq5IrlMhVx2B8BzdzowdZu3VZQuDV59m5Sq0IOYM,12106
22
- cmd2-2.5.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
23
- cmd2-2.5.0.dist-info/top_level.txt,sha256=gJbOJmyrARwLhm5diXAtzlNQdxbDZ8iRJ8HJi65_5hg,5
24
- cmd2-2.5.0.dist-info/RECORD,,
20
+ cmd2-2.5.2.dist-info/LICENSE,sha256=QXrW0Z0merk9mncyUkn-sgRxhT8_o1dL5HEaBNH47Q4,1099
21
+ cmd2-2.5.2.dist-info/METADATA,sha256=IO61KMLQi8_KrUDkJeqikYq3R3bwWVFQ2EtMM92BWXg,12135
22
+ cmd2-2.5.2.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
23
+ cmd2-2.5.2.dist-info/top_level.txt,sha256=gJbOJmyrARwLhm5diXAtzlNQdxbDZ8iRJ8HJi65_5hg,5
24
+ cmd2-2.5.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.44.0)
2
+ Generator: setuptools (75.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
File without changes