From b2b339f8c33378a8f0cdedac6e7559ee8ce120e3 Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Sun, 28 Sep 2025 17:28:45 +0300 Subject: [PATCH 1/3] PEP639 formatting Update pyproject.toml license metadata --- python/pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index ea894fa60..3abc4e041 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -4,6 +4,9 @@ version = "18.0.1" description = "Cucumber Expressions - a simpler alternative to Regular Expressions" authors = ["Jason Allen "] license = "MIT" +license_files = [ + "LICENSE" +] readme = "README.md" @@ -35,7 +38,6 @@ classifiers = [ "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Testing", "Topic :: Software Development :: Libraries :: Python Modules", - "License :: OSI Approved :: MIT License", ] [tool.poetry.dependencies] From 62774a022c12db3d0487cb8cb24d0de20061d824 Mon Sep 17 00:00:00 2001 From: Kieran Ryan Date: Sun, 28 Sep 2025 19:56:22 +0100 Subject: [PATCH 2/3] Migrate pyproject.toml from Poetry to PEP 621 format --- python/pyproject.toml | 44 +++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index 3abc4e041..725095193 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,28 +1,16 @@ -[tool.poetry] +[project] name = "cucumber-expressions" version = "18.0.1" description = "Cucumber Expressions - a simpler alternative to Regular Expressions" -authors = ["Jason Allen "] -license = "MIT" -license_files = [ - "LICENSE" -] - readme = "README.md" - -packages = [ - { include = "cucumber_expressions"} +authors = [ + {name = "Jason Allen", email = "jsa34@noreply.github.com"}, ] -include = [ - { path = "tests", format = "sdist" } +keywords = ["cucumber", "BDD", "testing", "expressions"] +license = "MIT" +license-files = [ + "LICENSE" ] - -homepage = "https://github.com/cucumber/cucumber-expressions" -repository = "https://github.com/cucumber/cucumber-expressions" -documentation = "https://github.com/cucumber/cucumber-expressions" - -keywords = ["BDD", "testing", "cucumber", "expressions"] - classifiers = [ "Development Status :: 3 - Alpha", "Environment :: Console", @@ -38,6 +26,22 @@ classifiers = [ "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Testing", "Topic :: Software Development :: Libraries :: Python Modules", + "License :: OSI Approved :: MIT License", # for compatibility with tooling such as pip-licenses", +] + +[project.urls] +Homepage = "https://github.com/cucumber/cucumber-expressions" +Repository = "https://github.com/cucumber/cucumber-expressions.git" +Download = "https://pypi.python.org/pypi/cucumber-expressions" +Issues = "https://github.com/cucumber/cucumber-expressions/issues" +Changelog = "https://github.com/cucumber/cucumber-expressions/releases" + +[tool.poetry] +packages = [ + { include = "cucumber_expressions"} +] +include = [ + { path = "tests", format = "sdist" } ] [tool.poetry.dependencies] @@ -49,7 +53,7 @@ pytest = "^8.0.0" PyYAML = "^6.0" [build-system] -requires = ["poetry-core>=1.0.0"] +requires = ["poetry-core>=2.2.0"] build-backend = "poetry.core.masonry.api" [tool.isort] From e1efe45897e5e38ddf9963b17309442d8a6ce59f Mon Sep 17 00:00:00 2001 From: Kieran Ryan Date: Sun, 28 Sep 2025 20:01:19 +0100 Subject: [PATCH 3/3] Changelog PEP 639 licence metadata specification --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8963d6f5..8de29d647 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Changed +- [Python] PEP 639 licence metadata specification ([#361](https://github.com/cucumber/cucumber-expressions/pull/361)) ## [18.0.1] - 2024-10-28 ### Fixed