Skip to content

Commit 2954fcc

Browse files
authored
Merge branch 'master' into master
2 parents 65da27f + b0661de commit 2954fcc

28 files changed

+473
-149
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ jobs:
66
build:
77
runs-on: ${{ matrix.os }}
88
strategy:
9+
fail-fast: false
910
matrix:
1011
os: [windows-latest, ubuntu-latest, macos-latest]
11-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
12-
include:
13-
- { os: ubuntu-latest, python-version: "3.7" }
14-
- { os: windows-latest, python-version: "3.7" }
15-
- { os: macos-12, python-version: "3.7" }
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
13+
exclude:
14+
- { os: windows-latest, python-version: "3.13" }
1615
defaults:
1716
run:
1817
shell: bash
@@ -22,6 +21,7 @@ jobs:
2221
uses: actions/setup-python@v5
2322
with:
2423
python-version: ${{ matrix.python-version }}
24+
allow-prereleases: true
2525
- name: Install and configure Poetry
2626
# TODO: workaround for https://github.com/snok/install-poetry/issues/94
2727
uses: snok/install-poetry@v1.3.4

CHANGELOG.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,31 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
98
## Unreleased
109

10+
11+
### Changed
12+
13+
- Rich will display tracebacks with finely grained error locations on python 3.11+ https://github.com/Textualize/rich/pull/3486
14+
15+
16+
### Fixed
17+
18+
- Fixed issue with Segment._split_cells https://github.com/Textualize/rich/pull/3506
19+
20+
### Added
21+
22+
- Add a new `column` object `IterationSpeedColumn`. https://github.com/Textualize/rich/pull/3332
23+
24+
## [13.8.1] - 2024-09-10
25+
26+
### Fixed
27+
28+
- Added support for Python 3.13 https://github.com/Textualize/rich/pull/3481
29+
- Fixed infinite loop when appending Text to same instance https://github.com/Textualize/rich/pull/3480
30+
31+
## [13.8.0] - 2024-08-26
32+
1133
### Fixed
1234

1335
- Fixed `Table` rendering of box elements so "footer" elements truly appear at bottom of table, "mid" elements in main table body.
@@ -17,6 +39,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1739
- Progress track thread is now a daemon thread https://github.com/Textualize/rich/pull/3402
1840
- Fixed cached hash preservation upon clearing meta and links https://github.com/Textualize/rich/issues/2942
1941
- Fixed overriding the `background_color` of `Syntax` not including padding https://github.com/Textualize/rich/issues/3295
42+
- Fixed pretty printing of dataclasses with a default repr in Python 3.13 https://github.com/Textualize/rich/pull/3455
43+
- Fixed selective enabling of highlighting when disabled in the `Console` https://github.com/Textualize/rich/issues/3419
44+
- Fixed BrokenPipeError writing an error message https://github.com/Textualize/rich/pull/3468
45+
- Fixed superfluous space above Markdown tables https://github.com/Textualize/rich/pull/3469
46+
- Fixed issue with record and capture interaction https://github.com/Textualize/rich/pull/3470
47+
- Fixed control codes breaking in `append_tokens` https://github.com/Textualize/rich/pull/3471
48+
- Fixed exception pretty printing a dataclass with missing fields https://github.com/Textualize/rich/pull/3472
2049

2150
### Changed
2251

@@ -30,7 +59,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3059

3160
- Adds a `case_sensitive` parameter to `prompt.Prompt`. This determines if the
3261
response is treated as case-sensitive. Defaults to `True`.
33-
- Add a new `column` object `IterationSpeedColumn`. https://github.com/Textualize/rich/pull/3332
62+
- Added `Console.on_broken_pipe` https://github.com/Textualize/rich/pull/3468
3463

3564
## [13.7.1] - 2024-02-28
3665

@@ -2053,6 +2082,8 @@ Major version bump for a breaking change to `Text.stylize signature`, which corr
20532082

20542083
- First official release, API still to be stabilized
20552084

2085+
[13.8.1]: https://github.com/textualize/rich/compare/v13.8.0...v13.8.1
2086+
[13.8.0]: https://github.com/textualize/rich/compare/v13.7.1...v13.8.0
20562087
[13.7.1]: https://github.com/textualize/rich/compare/v13.7.0...v13.7.1
20572088
[13.7.0]: https://github.com/textualize/rich/compare/v13.6.0...v13.7.0
20582089
[13.6.0]: https://github.com/textualize/rich/compare/v13.5.3...v13.6.0

CONTRIBUTORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ The following people have contributed to the development of Rich:
6363
- [Tushar Sadhwani](https://github.com/tusharsadhwani)
6464
- [Luca Salvarani](https://github.com/LukeSavefrogs)
6565
- [Paul Sanders](https://github.com/sanders41)
66+
- [Louis Sautier](https://github.com/sbraz)
6667
- [Tim Savage](https://github.com/timsavage)
6768
- [Anthony Shaw](https://github.com/tonybaloney)
6869
- [Nicolas Simonds](https://github.com/0xDEC0DE)
@@ -86,3 +87,4 @@ The following people have contributed to the development of Rich:
8687
- [Bernhard Wagner](https://github.com/bwagner)
8788
- [Aaron Beaudoin](https://github.com/AaronBeaudoin)
8889
- [chthollyphile](https://github.com/chthollyphile)
90+
- [Jonathan Helmus](https://github.com/jjhelmus)

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
alabaster==0.7.12
1+
alabaster==1.0.0
22
Sphinx==7.3.7
33
sphinx-rtd-theme==2.0.0
44
sphinx-copybutton==0.5.1

docs/source/progress.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Columns
131131

132132
You may customize the columns in the progress display with the positional arguments to the :class:`~rich.progress.Progress` constructor. The columns are specified as either a `format string <https://docs.python.org/3/library/string.html#formatspec>`_ or a :class:`~rich.progress.ProgressColumn` object.
133133

134-
Format strings will be rendered with a single value `"task"` which will be a :class:`~rich.progress.Task` instance. For example ``"{task.description}"`` would display the task description in the column, and ``"{task.completed} of {task.total}"`` would display how many of the total steps have been completed. Additional fields passed via keyword arguments to `~rich.progress.Progress.update` are store in ``task.fields``. You can add them to a format string with the following syntax: ``"extra info: {task.fields[extra]}"``.
134+
Format strings will be rendered with a single value `"task"` which will be a :class:`~rich.progress.Task` instance. For example ``"{task.description}"`` would display the task description in the column, and ``"{task.completed} of {task.total}"`` would display how many of the total steps have been completed. Additional fields passed via keyword arguments to `~rich.progress.Progress.update` are stored in ``task.fields``. You can add them to a format string with the following syntax: ``"extra info: {task.fields[extra]}"``.
135135

136136
The default columns are equivalent to the following::
137137

examples/downloader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def download(urls: Iterable[str], dest_dir: str):
7373

7474

7575
if __name__ == "__main__":
76-
# Try with https://releases.ubuntu.com/20.04/ubuntu-20.04.3-desktop-amd64.iso
76+
# Try with https://releases.ubuntu.com/noble/ubuntu-24.04-desktop-amd64.iso
77+
# and https://releases.ubuntu.com/noble/ubuntu-24.04-live-server-amd64.iso
7778
if sys.argv[1:]:
7879
download(sys.argv[1:], "./")
7980
else:

0 commit comments

Comments
 (0)