Skip to content

Commit 9bfd0f3

Browse files
Drop python3.9 support and add python3.14
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent d4b658f commit 9bfd0f3

File tree

4 files changed

+6
-19
lines changed

4 files changed

+6
-19
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ jobs:
6565
parameters:
6666
job_name: ubuntu24_test_all_supported_click_versions
6767
image_name: ubuntu-24.04
68-
python_versions: ["3.9", "3.10", "3.11", "3.12", "3.13"]
68+
python_versions: ["3.10", "3.11", "3.12", "3.13", "3.14"]
6969
test_suites:
7070
click_versions: |
71-
for clk_ver in 8.2.0 8.2.1 8.1.8 8.1.7 8.1.6 8.1.5 8.1.4 8.1.3 8.1.2 8.1.1 8.1.0 8.0.4 8.0.2 8.0.3 8.0.1 7.1.2 7.1.1 7.1 6.7;
71+
for clk_ver in 8.3.0 8.2.0 8.2.1 8.1.8 8.1.7 8.1.6 8.1.5 8.1.4 8.1.3 8.1.2 8.1.1 8.1.0 8.0.4 8.0.2 8.0.3 8.0.1 7.1.2 7.1.1 7.1 6.7;
7272
do
7373
venv/bin/pip install click==$clk_ver;
7474
venv/bin/pytest -vvs tests/test_cliutils_progressbar.py;

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ beautifulsoup4==4.13.4
33
certifi==2025.4.26
44
chardet==5.2.0
55
charset-normalizer==3.4.2
6-
click==8.2.1;python_version>='3.10'
7-
click==8.1.8;python_version<'3.10'
6+
click==8.3.0
87
idna==3.10
98
pip==25.1.1
109
PyYAML==6.0.2

setup.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ license_files =
3131
commoncode.ABOUT
3232

3333
[options]
34-
python_requires = >=3.9
34+
python_requires = >=3.10
3535
package_dir =
3636
=src
3737
packages = find:
@@ -44,8 +44,7 @@ install_requires =
4444
attrs >= 18.1,!=20.1.0;python_version<'3.11'
4545
attrs >= 22.1.0;python_version>='3.11'
4646
Beautifulsoup4[chardet] >= 4.13.0
47-
click >= 6.7, !=7.0;python_version<'3.10'
48-
click >= 8.2.0;python_version>='3.10'
47+
click >= 8.2.0
4948
requests[use_chardet_on_py3] >= 2.7.0
5049
saneyaml >= 0.5.2
5150
text_unidecode >= 1.0

src/commoncode/cliutils.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -177,20 +177,9 @@ def format_options(self, ctx, formatter):
177177
formatter.write_dl(sorted_records)
178178

179179

180-
class CompatProgressBar(ProgressBar):
181-
# TODO Remove when dropping support for Python 3.9 or Click 8.1.
182-
@property
183-
def is_hidden(self) -> bool:
184-
return self.hidden
185-
186-
@is_hidden.setter
187-
def is_hidden(self, value: bool) -> None:
188-
self.hidden = value
189-
190-
191180
# overriden and copied from Click to work around Click woes for
192181
# https://github.com/aboutcode-org/scancode-toolkit/issues/2583
193-
class DebuggedProgressBar(CompatProgressBar):
182+
class DebuggedProgressBar(ProgressBar):
194183
# overriden and copied from Click to work around Click woes for
195184
# https://github.com/aboutcode-org/scancode-toolkit/issues/2583
196185
def make_step(self, n_steps):

0 commit comments

Comments
 (0)