Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python: Switch to pyproject.toml #290

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions python/bin/gherkin

This file was deleted.

49 changes: 49 additions & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "youtux.gherkin-official"
version = "29.0.0"
youtux marked this conversation as resolved.
Show resolved Hide resolved
description = "Gherkin parser (official, by Cucumber team)"
readme = "README.md"
requires-python = ">=3.8"
authors = [
{ name = "Cucumber Ltd and Björn Rasmusson", email = "cukes@googlegroups.com" }
]
scripts = { gherkin = "gherkin" }

dependencies = [
"typing_extensions>=4",
]
keywords = ["gherkin", "cucumber", "bdd"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]

[project.urls]
Homepage = "https://github.com/cucumber/gherkin"
Repository = "https://github.com/cucumber/gherkin.git"
Download = "https://pypi.python.org/pypi/gherkin-official"
Issues = "https://github.com/cucumber/gherkin/issues"
Changelog = "https://github.com/cucumber/gherkin/releases"

[tool.setuptools.package-data]
gherkin = ["gherkin-languages.json"]

[tool.setuptools.packages.find]
include = ["gherkin", "gherkin.pickles", "gherkin.stream"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BETTER: Use the find mechanism that is described in setuptools docs: Find simple packages

  • BLOCKER: In your case the gherkin/scripts/ directory would have been missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in d992ac4



[tool.mypy]
disallow_untyped_defs = true
packages = ["gherkin"]


[tool.black]
# Using `(python/)?` to match both `gherkin/parser.py` and `python/gherkin/parser.py`.
# This is needed to be able to run `black` as a pre-commit hook, and also to run it manually.
Expand Down
6 changes: 0 additions & 6 deletions python/setup.cfg

This file was deleted.

31 changes: 0 additions & 31 deletions python/setup.py

This file was deleted.

Loading