Skip to content

Commit

Permalink
updated dev dependencies and made fixes for running on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertBlackhart committed Jul 31, 2024
1 parent 6d4de04 commit 3eb13ba
Show file tree
Hide file tree
Showing 21 changed files with 1,865 additions and 1,719 deletions.
1,008 changes: 441 additions & 567 deletions poetry.lock

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "recline"
version = "2024.6"
version = "2024.7"
description = "Writing argparse-based command line applications can become tedious, repetitive, and difficult to do right. Relax and let this library free you from that burden."
license = "BSD-3-Clause"
authors = ["NetApp <[email protected]>"]
Expand All @@ -21,16 +21,16 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.7.2,<4"
windows-curses = {version = "^2.3.0", markers = "sys_platform == 'win32'"}
python = ">=3.9.0,<4"
windows-curses = {version = "^2.3.3", markers = "sys_platform == 'win32'"}
pyreadline3 = {version = "^3.4.1", markers = "sys_platform == 'win32'"}

[tool.poetry.dev-dependencies]
pudb = "^2022.1.3"
pylint = "^2.15.8"
pytest = "^7.2.0"
pytest-cov = "^4.0.0"
sphinx = "^5.3.0"
sphinx-rtd-theme = "^1.1.1"
sphinxcontrib-apidoc = "^0.3.0"
importlib-metadata = "^5.1.0"
pudb = "^2024.1.2"
pylint = "^3.2.6"
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
sphinx = "^7.4.7"
sphinx-rtd-theme = "^2.0.0"
sphinxcontrib-apidoc = "^0.5.0"
importlib-metadata = "^8.2.0"
13 changes: 10 additions & 3 deletions recline/repl/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,18 @@ def track_command_history(filename: str) -> None:

def setup_tab_complete() -> None:
"""Set up the readline library to hook into our command completer"""

readline.set_completer_delims("")
if sys.platform != "win32":
if sys.platform == "linux":
# pyreadline3 (used for windows) doesn't implement this
# libedit (default for macos) implements this but never calls it (broken)
readline.set_completion_display_matches_hook(completer.match_command_hook)
readline.set_completer(completer.CommandCompleter(commands.COMMAND_REGISTRY).completer)
readline.parse_and_bind("tab: complete")
if readline.__doc__ and "libedit" in readline.__doc__:
# macos doesn't use GNU readline, but BSD libedit instead
readline.parse_and_bind("bind '\t' rl_complete")
readline.parse_and_bind("bind '^R' em-inc-search-prev")
else:
readline.parse_and_bind("tab: complete")
readline.parse_and_bind("set show-all-if-ambiguous on")
readline.parse_and_bind("set bell-style none")
177 changes: 0 additions & 177 deletions recline/vendor/argcomplete/LICENSE.rst

This file was deleted.

Loading

0 comments on commit 3eb13ba

Please sign in to comment.