Skip to content

Commit 49d71cc

Browse files
Managorkbdharun
andauthoredMar 28, 2025··
feat: update for v3.4.0 release (#269)
Signed-off-by: K.B.Dharun Krishna <[email protected]> Co-authored-by: K.B.Dharun Krishna <[email protected]>
1 parent 3661908 commit 49d71cc

File tree

7 files changed

+49
-18
lines changed

7 files changed

+49
-18
lines changed
 

‎.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
os: ['ubuntu-latest', 'ubuntu-24.04-arm']
148148

149149
steps:
150-
- uses: actions/checkout@v4
150+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
151151

152152
- uses: canonical/action-build@3bdaa03e1ba6bf59a65f84a751d943d549a54e79 # v1.3.0
153153
id: snapcraft-build

‎CHANGELOG.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
11
# Changelog
22

3+
## 3.4.0 (03/28/2025)
4+
5+
### Breaking
6+
7+
* Drop support for EOL Python 3.8 version.
8+
9+
### Bugfixes
10+
11+
* Fix broken `--render` option (thanks [@acuteenvy](https://github.com/acuteenvy))
12+
* Fix duplicate platform information shown in pages like `du`, `cd`, `w` (thanks [@sellisd](https://github.com/sellisd))
13+
* Only install `colorama` dependency in Windows (thanks [@hukkin](https://github.com/hukkin))
14+
15+
### Features
16+
17+
* Add support for displaying pages with long/short option placeholders using `--long-options`/`--short-options` flags or [TLDR_OPTIONS variable](https://github.com/tldr-pages/tldr-python-client#command-options) (thanks [@Managor](https://github.com/Managor))
18+
* Add `--clear-cache`/`-k` option to clear tldr's local cache (thanks [@patricedenis](https://github.com/patricedenis) and [@vitorhcl](https://github.com/vitorhcl))
19+
* Add support to stylize text inside backticks when appearing in example descriptions (thanks [@kyluca](https://github.com/kyluca))
20+
* Add support for specifying a certificate bundle with [TLDR_CERT variable](https://github.com/tldr-pages/tldr-python-client#ssl-inspection) (thanks [@jtcbrule](https://github.com/jtcbrule), [@CleanMachine1](https://github.com/CleanMachine1), and [@vitorhcl](https://github.com/vitorhcl))
21+
* Package build for the project has been migrated from using `setup.py` (with `setuptools` backend) to `pyproject.toml` (with Hatch backend) (thanks [@kbdharun](https://github.com/kbdharun))
22+
* Update package metadata in `pyproject.toml` (thanks [@kbdharun](https://github.com/kbdharun))
23+
* Add trusted publisher support to securely publish `tldr` package to PyPI directly from the repository's confined environment (thanks [@kbdharun](https://github.com/kbdharun))
24+
* Add support for [Client Specification v2.3](https://github.com/tldr-pages/tldr/releases/tag/v2.3)
25+
326
## 3.3.0 (06/29/2024)
427

5-
## Breaking
28+
### Breaking
629

730
* Drop support for EOL versions Python 3.6 and Python 3.7.
831

‎README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![CodeQL](https://github.com/tldr-pages/tldr-python-client/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/tldr-pages/tldr-python-client/actions/workflows/github-code-scanning/codeql)
66
[![Snap Release](https://snapcraft.io/tldr/badge.svg)](https://snapcraft.io/tldr)
77

8-
Python command-line client for [tldr pages](https://github.com/tldr-pages/tldr).
8+
🐍 Official Python command-line client for [tldr pages](https://github.com/tldr-pages/tldr) 📚.
99

1010
![Tldr Python client displaying the tar page](https://raw.github.com/tldr-pages/tldr-python-client/main/images/tldr-dark.png)
1111

@@ -123,6 +123,7 @@ tldr --clear-cache
123123
```bash
124124
# bash
125125
tldr --print-completion bash | sudo tee "$BASH_COMPLETION_COMPAT_DIR"/tldr
126+
126127
# zsh (it is recommended to check where zsh/site-functions directory is located)
127128
## for macOS:
128129
tldr --print-completion zsh | sudo tee /usr/local/share/zsh/site-functions/_tldr
@@ -196,4 +197,4 @@ can either use the `--source` flag when using tldr or by specifying the followin
196197

197198
### Command options
198199

199-
Pages might contain `{{[*|*]}}` patterns to let the client decide whether to show shortform or longform versions of options. This can be configured with `TLDR_OPTIONS`, which accepts values `short`, `long` and `both`
200+
Pages might contain `{{[*|*]}}` patterns to let the client decide whether to show shortform or longform versions of options. This can be configured with `TLDR_OPTIONS`, which accepts values `short`, `long` and `both`.

‎docs/man/tldr.1

+17-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2727
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
2929
..
30-
.TH "TLDR" "1" "Jun 29, 2024" "" "tldr"
30+
.TH "TLDR" "1" "Mar 28, 2025" "" "tldr"
3131
.SH NAME
32-
tldr \- tldr 3.3.0
32+
tldr \- tldr 3.4.0
3333
.sp
3434
Python command line client for tldr
3535

@@ -61,6 +61,11 @@ Update the local cache of pages and exit
6161
.sp
6262
Default: False
6363
.TP
64+
.B \-k, \-\-clear\-cache
65+
Delete the local cache of pages and exit
66+
.sp
67+
Default: False
68+
.TP
6469
.B \-p, \-\-platform
6570
Possible choices: android, freebsd, linux, netbsd, openbsd, osx, sunos, windows, common
6671
.sp
@@ -92,6 +97,16 @@ Just print the plain page file.
9297
.sp
9398
Default: False
9499
.TP
100+
.B \-\-short\-options
101+
Display shortform options over longform
102+
.sp
103+
Default: False
104+
.TP
105+
.B \-\-long\-options
106+
Display longform options over shortform
107+
.sp
108+
Default: False
109+
.TP
95110
.B \-\-print\-completion
96111
Possible choices: bash, zsh, tcsh
97112
.sp

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
55
[project]
66
name = "tldr"
77
dynamic = ["version"]
8-
description = "Python command line client for tldr."
8+
description = "Official Python command line client for tldr pages."
99
readme = "README.md"
1010
license = "MIT"
1111
requires-python = "~=3.9"

‎snap/snapcraft.yaml

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: tldr
22
base: core24
3-
version: '3.3.0'
3+
version: '3.4.0'
44
summary: tldr python client
5-
description: Python command-line client for tldr pages.
5+
description: Official Python command-line client for tldr pages.
66

77
grade: stable
88
confinement: strict
@@ -31,14 +31,6 @@ parts:
3131
build-environment:
3232
- PATH: ${CRAFT_PART_INSTALL}/bin:${PATH}
3333
- PYTHONPATH: ${CRAFT_PART_INSTALL}/lib/python3.12/site-packages
34-
override-pull: |
35-
craftctl default
36-
override-build: |
37-
craftctl default
38-
cd $CRAFT_PART_SRC/docs
39-
make man
40-
mkdir -p $CRAFT_PART_INSTALL/share/man/man1
41-
cp -r $CRAFT_PART_SRC/docs/man/tldr.1 $CRAFT_PART_INSTALL/share/man/man1/tldr.1
4234
python-packages:
4335
- Sphinx
4436
- sphinx-argparse

‎tldr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import shtab
1919
import shutil
2020

21-
__version__ = "3.3.0"
21+
__version__ = "3.4.0"
2222
__client_specification__ = "2.3"
2323

2424
REQUEST_HEADERS = {'User-Agent': 'tldr-python-client'}

0 commit comments

Comments
 (0)
Please sign in to comment.