Skip to content

Commit 355998c

Browse files
authored
Merge pull request #31 from jwodder/click83
Support click v8.3.0
2 parents 31597ec + 7871691 commit 355998c

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v1.2.4 (in development)
2+
-----------------------
3+
- Support click v8.3.0
4+
15
v1.2.3 (2025-08-02)
26
-------------------
37
- Drop support for Python 3.7

docs/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Changelog
44
=========
55

6+
v1.2.4 (in development)
7+
-----------------------
8+
- Support click v8.3.0
9+
10+
611
v1.2.3 (2025-08-02)
712
-------------------
813
- Drop support for Python 3.7

src/pyversion_info/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import requests
3232
from .util import MajorVersion, MicroVersion, MinorVersion, RawDatabase
3333

34-
__version__ = "1.2.3"
34+
__version__ = "1.2.4.dev1"
3535
__author__ = "John Thorvald Wodder II"
3636
__author_email__ = "pyversion-info@varonathe.org"
3737
__license__ = "MIT"

src/pyversion_info/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def main(ctx: click.Context, database: Optional[str]) -> None:
7979
"mode",
8080
flag_value="released",
8181
help="List only released versions [default]",
82-
default=True,
8382
)
8483
@click.option(
8584
"-s",
@@ -91,8 +90,10 @@ def main(ctx: click.Context, database: Optional[str]) -> None:
9190
@click.argument("level", type=click.Choice(["major", "minor", "micro"]))
9291
@click.pass_obj
9392
@map_exc_to_click
94-
def list_cmd(vd: VersionDatabase, level: str, mode: str, py: str) -> None:
93+
def list_cmd(vd: VersionDatabase, level: str, mode: str | None, py: str) -> None:
9594
"""List known versions at the given version level"""
95+
if mode is None:
96+
mode = "released"
9697
info = vd.pypy if py == "pypy" else vd.cpython
9798
func = {
9899
"major": info.major_versions,

0 commit comments

Comments
 (0)