Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
einsmein authored Jan 29, 2025
2 parents c2dafc4 + 43d3b04 commit a95d33b
Show file tree
Hide file tree
Showing 36 changed files with 789 additions and 477 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jobs:
- uses: actions/checkout@v4
- run: python3 -m pip install codespell
- run: codespell --ignore-words-list="ba,fo,hel,revered,womens"
--skip="./README.*.md,*.svg,*.ai,./benchmarks/snippets.py,./tests,./tools"
--skip="./README.*.md,*.svg,*.ai,./benchmarks/snippets.py,./tests,./tools,*.lock"
10 changes: 5 additions & 5 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- { os: ubuntu-latest, python-version: "3.7" }
- { os: windows-latest, python-version: "3.7" }
- { os: macos-12, python-version: "3.7" }
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
exclude:
- { os: windows-latest, python-version: "3.13" }
defaults:
run:
shell: bash
Expand All @@ -22,6 +21,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install and configure Poetry
# TODO: workaround for https://github.com/snok/install-poetry/issues/94
uses: snok/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sphinx:
formats: all

python:
version: 3.7
version: 3.8
install:
- requirements: docs/requirements.txt
- method: pip
Expand Down
58 changes: 57 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,56 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [13.8.1]
## [13.9.5]

### Fixed
- Fixed `console.capture` context printing empty line in jupyter https://github.com/Textualize/rich/pull/3474

## [13.9.4] - 2024-11-01

### Changed

- Optimizations to cell_len which may speed up Rich / Textual output https://github.com/Textualize/rich/pull/3546

## [13.9.3] - 2024-10-22

### Fixed

- Fixed broken regex that may have resulted in poor performance. https://github.com/Textualize/rich/pull/3535

## [13.9.2] - 2024-10-04

### Fixed

- Fixed `Table` columns not highlighting when added by `add_row` https://github.com/Textualize/rich/issues/3517
- Fixed an issue with Segment.split_cells reported in Textual https://github.com/Textualize/textual/issues/5090

## [13.9.1] - 2024-10-01

### Fixed

- Fixed typing_extensions dependency

## [13.9.0] - 2024-10-01

### Changed

- Dropped support for Python3.7 https://github.com/Textualize/rich/pull/3509
- Rich will display tracebacks with finely grained error locations on python 3.11+ https://github.com/Textualize/rich/pull/3486

### Fixed

- Fixed issue with Segment._split_cells https://github.com/Textualize/rich/pull/3506
- Fix auto detection of terminal size on Windows https://github.com/Textualize/rich/pull/2916
- `Text.style` now respected in Panel title/subtitle https://github.com/Textualize/rich/pull/3509

## [13.8.1] - 2024-09-10

### Fixed

- Added support for Python 3.13 https://github.com/Textualize/rich/pull/3481
- Fixed infinite loop when appending Text to same instance https://github.com/Textualize/rich/pull/3480

## [13.8.0] - 2024-08-26

### Fixed
Expand All @@ -37,6 +82,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Running tests in environment with `FORCE_COLOR` or `NO_COLOR` environment variables
- ansi decoder will now strip problematic private escape sequences (like `\x1b7`) https://github.com/Textualize/rich/pull/3278/
- Tree's ASCII_GUIDES and TREE_GUIDES constants promoted to class attributes
- `rich.Text.highlight_regex` now accepts a regular expression object https://github.com/Textualize/rich/pull/3347

### Added

Expand All @@ -51,6 +97,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Updated the widths of some characters https://github.com/Textualize/rich/pull/3289

### Added

- Included a `name` attribute to the `Spinner` class https://github.com/Textualize/rich/pull/3359

## [13.7.0] - 2023-11-15

### Added
Expand Down Expand Up @@ -2065,6 +2115,12 @@ Major version bump for a breaking change to `Text.stylize signature`, which corr

- First official release, API still to be stabilized

[13.9.4]: https://github.com/textualize/rich/compare/v13.9.3...v13.9.4
[13.9.3]: https://github.com/textualize/rich/compare/v13.9.2...v13.9.3
[13.9.2]: https://github.com/textualize/rich/compare/v13.9.1...v13.9.2
[13.9.1]: https://github.com/textualize/rich/compare/v13.9.0...v13.9.1
[13.9.0]: https://github.com/textualize/rich/compare/v13.8.1...v13.9.0
[13.8.1]: https://github.com/textualize/rich/compare/v13.8.0...v13.8.1
[13.8.0]: https://github.com/textualize/rich/compare/v13.7.1...v13.8.0
[13.7.1]: https://github.com/textualize/rich/compare/v13.7.0...v13.7.1
[13.7.0]: https://github.com/textualize/rich/compare/v13.6.0...v13.7.0
Expand Down
4 changes: 4 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The following people have contributed to the development of Rich:
- [Aryaz Eghbali](https://github.com/AryazE)
- [Oleksis Fraga](https://github.com/oleksis)
- [Andy Gimblett](https://github.com/gimbo)
- [Kai Giokas](https://github.com/kaisforza)
- [Tom Gooding](https://github.com/TomJGooding)
- [Michał Górny](https://github.com/mgorny)
- [Nok Lam Chan](https://github.com/noklam)
Expand Down Expand Up @@ -86,4 +87,7 @@ The following people have contributed to the development of Rich:
- [Pierro](https://github.com/xpierroz)
- [Bernhard Wagner](https://github.com/bwagner)
- [Aaron Beaudoin](https://github.com/AaronBeaudoin)
- [Sam Woodward](https://github.com/PyWoody)
- [L. Yeung](https://github.com/lewis-yeung)
- [chthollyphile](https://github.com/chthollyphile)
- [Jonathan Helmus](https://github.com/jjhelmus)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ See what [people are saying about Rich](https://www.willmcgugan.com/blog/pages/p

## Compatibility

Rich works with Linux, macOS and Windows. True color / emoji works with new Windows Terminal, classic terminal is limited to 16 colors. Rich requires Python 3.7 or later.
Rich works with Linux, macOS and Windows. True color / emoji works with new Windows Terminal, classic terminal is limited to 16 colors. Rich requires Python 3.8 or later.

Rich works with [Jupyter notebooks](https://jupyter.org/) with no additional configuration required.

Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
alabaster==0.7.12
alabaster==1.0.0
Sphinx==7.3.7
sphinx-rtd-theme==2.0.0
sphinx-copybutton==0.5.1
Expand Down
1 change: 1 addition & 0 deletions docs/source/progress.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ The following column objects are available:
- :class:`~rich.progress.TransferSpeedColumn` Displays transfer speed (assumes the steps are bytes).
- :class:`~rich.progress.SpinnerColumn` Displays a "spinner" animation.
- :class:`~rich.progress.RenderableColumn` Displays an arbitrary Rich renderable in the column.
- :class:`~rich.progress.IterationSpeedColumn` Displays iteration speed in it/s (iterations per second).

To implement your own columns, extend the :class:`~rich.progress.ProgressColumn` class and use it as you would the other columns.

Expand Down
1 change: 1 addition & 0 deletions docs/source/tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ There are a number of options you can set on a column to modify how it will look
- ``max_width`` When set to an integer will prevent the column from growing beyond this amount.
- ``ratio`` Defines a ratio to set the column width. For instance, if there are 3 columns with a total of 6 ratio, and ``ratio=2`` then the column will be a third of the available size.
- ``no_wrap`` Set to True to prevent this column from wrapping.
- ``highlight`` Set to True to enable automatic highlighting of cell contents.

Vertical Alignment
~~~~~~~~~~~~~~~~~~
Expand Down
Loading

0 comments on commit a95d33b

Please sign in to comment.