Skip to content

Commit f05384f

Browse files
committed
experiment with upgrading click
removing "less" in the build step
1 parent 9379f4e commit f05384f

4 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

28+
- name: Install less pager
29+
run: sudo apt-get install less
30+
2831
- name: Start MySQL
2932
run: |
3033
sudo /etc/init.d/mysql start
@@ -42,6 +45,10 @@ jobs:
4245
env:
4346
PYTEST_PASSWORD: root
4447
PYTEST_HOST: 127.0.0.1
45-
TERM: xterm
48+
TERM: dumb
49+
PAGER: ''
50+
# EDITOR: touch
51+
# LESS: -RXF
52+
PYTHONUNBUFFERED: 1
4653
run: |
4754
uv run tox -e py${{ matrix.python-version }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [{ name = "Mycli Core Team", email = "mycli-dev@googlegroups.com" }]
99
urls = { homepage = "http://mycli.net" }
1010

1111
dependencies = [
12-
"click >= 7.0,<8.1.8",
12+
"click >= 7.0",
1313
"cryptography >= 1.0.0",
1414
"Pygments>=1.6",
1515
"prompt_toolkit>=3.0.6,<4.0.0",

test/myclirc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ auto_vertical_output = False
9797
keyword_casing = auto
9898

9999
# disabled pager on startup
100-
enable_pager = True
100+
enable_pager = False
101101

102102
# Choose a specific pager
103-
pager = less
103+
pager = ''
104104

105105
# Custom colors for the completion menu, toolbar, etc.
106106
[colors]

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ passenv = PYTEST_HOST
99
PYTEST_PASSWORD
1010
PYTEST_PORT
1111
PYTEST_CHARSET
12+
PYTHONUNBUFFERED
13+
TERM
14+
PAGER
15+
LESS_IS_MORE
16+
LESS
17+
EDITOR
1218
commands = uv pip install -e .[dev,ssh]
1319
coverage run -m pytest -v test
1420
coverage report -m

0 commit comments

Comments
 (0)