bash-completion/bash-completion-2.12.0-remove-python2.patch

110 lines
2.7 KiB
Diff
Raw Permalink Normal View History

2024-03-04 13:51:51 +08:00
From 4add64d07eb56f42ce9c9c6255bcbc64dafa9b1c Mon Sep 17 00:00:00 2001
From: yueyuankun <yueyuankun@kylinos.cn>
Date: Mon, 4 Mar 2024 11:14:11 +0800
Subject: [PATCH] bash-completion-2.12.0 remove python2
---
completions/Makefile.am | 11 +++--------
completions/Makefile.in | 11 +++--------
completions/python | 2 +-
3 files changed, 7 insertions(+), 17 deletions(-)
diff --git a/completions/Makefile.am b/completions/Makefile.am
index 8f11291..fae5fc3 100644
--- a/completions/Makefile.am
+++ b/completions/Makefile.am
@@ -788,19 +788,14 @@ CLEANFILES = \
_px \
pxz \
py.test \
- py.test-2 \
py.test-3 \
pydoc3 \
- pylint-2 \
pylint-3 \
pypy \
pypy3 \
pyston \
pyston3 \
- pytest-2 \
pytest-3 \
- python2 \
- python2.7 \
python3 \
python3.3 \
python3.4 \
@@ -1156,13 +1151,13 @@ symlinks: $(DATA)
filebucket puppetca puppetd puppetdoc puppetmasterd puppetqd \
puppetrun ralsh
$(ss) pytest \
- py.test py.test-2 py.test-3 pytest-2 pytest-3
+ py.test py.test-3 pytest-3
$(ss) pydoc \
pydoc3
$(ss) pylint \
- pylint-2 pylint-3
+ pylint-3
$(ss) python \
- micropython pypy pypy3 pyston pyston3 python2 python2.7 \
+ micropython pypy pypy3 pyston pyston3 \
python3 python3.3 python3.4 python3.5 python3.6 python3.7 \
python3.8 python3.9 python3.10 python3.11 python3.12
$(ss) pyvenv \
diff --git a/completions/Makefile.in b/completions/Makefile.in
index 7117553..c2e43f9 100644
--- a/completions/Makefile.in
+++ b/completions/Makefile.in
@@ -1015,19 +1015,14 @@ CLEANFILES = \
_px \
pxz \
py.test \
- py.test-2 \
py.test-3 \
pydoc3 \
- pylint-2 \
pylint-3 \
pypy \
pypy3 \
pyston \
pyston3 \
- pytest-2 \
pytest-3 \
- python2 \
- python2.7 \
python3 \
python3.3 \
python3.4 \
@@ -1600,13 +1595,13 @@ symlinks: $(DATA)
filebucket puppetca puppetd puppetdoc puppetmasterd puppetqd \
puppetrun ralsh
$(ss) pytest \
- py.test py.test-2 py.test-3 pytest-2 pytest-3
+ py.test py.test-3 pytest-3
$(ss) pydoc \
pydoc3
$(ss) pylint \
- pylint-2 pylint-3
+ pylint-3
$(ss) python \
- micropython pypy pypy3 pyston pyston3 python2 python2.7 \
+ micropython pypy pypy3 pyston pyston3 \
python3 python3.3 python3.4 python3.5 python3.6 python3.7 \
python3.8 python3.9 python3.10 python3.11 python3.12
$(ss) pyvenv \
diff --git a/completions/python b/completions/python
index 5bf4b70..91e0f7a 100644
--- a/completions/python
+++ b/completions/python
@@ -119,7 +119,7 @@ _comp_cmd_python()
fi
} &&
complete -F _comp_cmd_python \
- python python2 python2.7 python3 python3.{3..12} \
+ python python3 python3.{3..12} \
pypy pypy3 pyston pyston3 micropython
# ex: filetype=sh
--
2.33.0