Skip to content

Commit 58ba541

Browse files
bkmgitkieran-ryan
andauthored
PEP639 formatting (#361)
* PEP639 formatting Update pyproject.toml license metadata * Migrate pyproject.toml from Poetry to PEP 621 format * Changelog PEP 639 licence metadata specification --------- Co-authored-by: Kieran Ryan <[email protected]>
1 parent dcd53e3 commit 58ba541

File tree

2 files changed

+26
-18
lines changed

2 files changed

+26
-18
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
9+
### Changed
10+
- [Python] PEP 639 licence metadata specification ([#361](https://github.com/cucumber/cucumber-expressions/pull/361))
911

1012
## [18.0.1] - 2024-10-28
1113
### Fixed

python/pyproject.toml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
1-
[tool.poetry]
1+
[project]
22
name = "cucumber-expressions"
33
version = "18.0.1"
44
description = "Cucumber Expressions - a simpler alternative to Regular Expressions"
5-
authors = ["Jason Allen <[email protected]>"]
6-
license = "MIT"
7-
85
readme = "README.md"
9-
10-
packages = [
11-
{ include = "cucumber_expressions"}
6+
authors = [
7+
{name = "Jason Allen", email = "[email protected]"},
128
]
13-
include = [
14-
{ path = "tests", format = "sdist" }
9+
keywords = ["cucumber", "BDD", "testing", "expressions"]
10+
license = "MIT"
11+
license-files = [
12+
"LICENSE"
1513
]
16-
17-
homepage = "https://github.com/cucumber/cucumber-expressions"
18-
repository = "https://github.com/cucumber/cucumber-expressions"
19-
documentation = "https://github.com/cucumber/cucumber-expressions"
20-
21-
keywords = ["BDD", "testing", "cucumber", "expressions"]
22-
2314
classifiers = [
2415
"Development Status :: 3 - Alpha",
2516
"Environment :: Console",
@@ -35,7 +26,22 @@ classifiers = [
3526
"Programming Language :: Python :: Implementation :: PyPy",
3627
"Topic :: Software Development :: Testing",
3728
"Topic :: Software Development :: Libraries :: Python Modules",
38-
"License :: OSI Approved :: MIT License",
29+
"License :: OSI Approved :: MIT License", # for compatibility with tooling such as pip-licenses",
30+
]
31+
32+
[project.urls]
33+
Homepage = "https://github.com/cucumber/cucumber-expressions"
34+
Repository = "https://github.com/cucumber/cucumber-expressions.git"
35+
Download = "https://pypi.python.org/pypi/cucumber-expressions"
36+
Issues = "https://github.com/cucumber/cucumber-expressions/issues"
37+
Changelog = "https://github.com/cucumber/cucumber-expressions/releases"
38+
39+
[tool.poetry]
40+
packages = [
41+
{ include = "cucumber_expressions"}
42+
]
43+
include = [
44+
{ path = "tests", format = "sdist" }
3945
]
4046

4147
[tool.poetry.dependencies]
@@ -47,7 +53,7 @@ pytest = "^8.0.0"
4753
PyYAML = "^6.0"
4854

4955
[build-system]
50-
requires = ["poetry-core>=1.0.0"]
56+
requires = ["poetry-core>=2.2.0"]
5157
build-backend = "poetry.core.masonry.api"
5258

5359
[tool.isort]

0 commit comments

Comments
 (0)