diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 87eee0895d..63623825b8 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -26,7 +26,7 @@ jobs: # TODO: workaround for https://github.com/snok/install-poetry/issues/94 uses: snok/install-poetry@v1.3.4 with: - version: 1.3.1 + version: 2.3.4 virtualenvs-in-project: true - name: Install dependencies run: poetry install diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b016d4846..2cc6ee7def 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. 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). +## [Unreleased] + +### Changed + +- Required poetry-core 2.2+ to build https://github.com/Textualize/rich/pull/4087 + +### Fixed + +- Replaced the deprecated `License` field in distribution packages with `License-Expression` https://github.com/Textualize/rich/pull/4087 + ## [15.0.0] - 2026-04-12 ### Changed diff --git a/poetry.lock b/poetry.lock index 0234516312..deb46bad38 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.3.4 and should not be changed by hand. [[package]] name = "appnope" @@ -989,6 +989,7 @@ files = [ {file = "typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c"}, {file = "typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef"}, ] +markers = {main = "extra == \"jupyter\" and python_version < \"3.10\""} [[package]] name = "virtualenv" @@ -1043,5 +1044,5 @@ jupyter = ["ipywidgets"] [metadata] lock-version = "2.1" -python-versions = ">=3.8.0" -content-hash = "610597849eb5fb1d82cd5e647d616dd41412674d531c2f7819380bbc9b54e8e2" +python-versions = ">=3.9.0" +content-hash = "0e1b1f093f944ee484afd78d900ff7a679b2375321ef6ccbe16c4178c9a11067" diff --git a/pyproject.toml b/pyproject.toml index bc699a0b7c..e1f3b02cf9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,8 @@ -[tool.poetry] +[project] name = "rich" -homepage = "https://github.com/Textualize/rich" -documentation = "https://rich.readthedocs.io/en/latest/" version = "15.0.0" description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" -authors = ["Will McGugan "] +authors = [{name = "Will McGugan", email = "willmcgugan@gmail.com"}] license = "MIT" readme = "README.md" classifiers = [ @@ -15,6 +13,7 @@ classifiers = [ "Operating System :: Microsoft :: Windows", "Operating System :: MacOS", "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -23,29 +22,34 @@ classifiers = [ "Programming Language :: Python :: 3.14", "Typing :: Typed", ] -include = ["rich/py.typed"] - +requires-python = ">=3.9.0" +dependencies = [ + "pygments>=2.13.0,<3.0.0", + "markdown-it-py>=2.2.0", +] -[tool.poetry.dependencies] -python = ">=3.9.0" -pygments = "^2.13.0" -ipywidgets = { version = ">=7.5.1,<9", optional = true } -markdown-it-py = ">=2.2.0" +[project.optional-dependencies] +jupyter = [ + "ipywidgets>=7.5.1,<9", +] -[tool.poetry.extras] -jupyter = ["ipywidgets"] +[project.urls] +homepage = "https://github.com/Textualize/rich" +documentation = "https://rich.readthedocs.io/en/latest/" -[tool.poetry.dev-dependencies] -pytest = "^7.0.0" -black = "^22.6" -mypy = "^1.11" -pytest-cov = "^3.0.0" -attrs = "^21.4.0" -pre-commit = "^2.17.0" -typing-extensions = ">=4.0.0, <5.0" +[dependency-groups] +dev = [ + "pytest~=7.0", + "black~=22.6", + "mypy~=1.11", + "pytest-cov~=3.0", + "attrs~=21.4", + "pre-commit~=2.17", + "typing-extensions~=4.0", +] [build-system] -requires = ["poetry-core>=1.0.0"] +requires = ["poetry-core>=2.2.0"] build-backend = "poetry.core.masonry.api"