Skip to content

Commit

Permalink
Update package and CI configurations for python
Browse files Browse the repository at this point in the history
  • Loading branch information
elchupanebrej committed Dec 8, 2024
1 parent 2c0b576 commit 8ee84b0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 47 deletions.
40 changes: 10 additions & 30 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,47 +19,27 @@ jobs:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "pypy3.8"
- "3.13"
- "pypy3.9"
- "pypy3.10"
os:
- ubuntu-latest
- windows-latest
- macos-latest
exclude:
- python-version: "pypy3.8"
os: macos-latest
- python-version: "pypy3.9"
os: macos-latest
- python-version: "pypy3.10"
os: macos-latest
- python-version: "3.8"
os: macos-latest
- python-version: "3.9"
os: macos-latest
- python-version: "3.10"
os: macos-latest
- python-version: "3.11"
os: macos-latest
- python-version: "pypy3.8"
os: windows-latest
- python-version: "pypy3.9"
os: windows-latest
- python-version: "pypy3.10"
os: windows-latest
- python-version: "3.8"
os: windows-latest
- python-version: "3.9"
os: windows-latest
- python-version: "3.10"
os: windows-latest
- python-version: "3.11"
os: windows-latest
- ubuntu-latest
- windows-latest
- macos-latest
include:
- os: ubuntu-latest
- os: windows-latest
python-version: "3.13"
- os: macos-latest
python-version: "3.13"

steps:
- uses: actions/checkout@v4
Expand Down
30 changes: 13 additions & 17 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,21 @@ classifiers = [
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
"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"
]
dependencies = [
"eval_type_backport;python_version<'3.10.0'",
"pydantic>=2.0.3"
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
]
dependencies = []
description = "Cucumber Messages is a message protocol for representing results and other information from Cucumber. "
license = {text = "MIT"}
maintainers = [
{name = "Konstantin Goloveshko", email = "[email protected]"}
]
name = "cucumber-messages"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.8"
requires-python = ">=3.9"
urls = {Repository = "https://github.com/cucumber/messages"}
version = "0.1.0"

Expand All @@ -60,7 +57,7 @@ test-coverage = [

[tool.black]
line-length = 120
target-version = ["py38", "py39", "py310", "py311", "py312"]
target-version = ["py39", "py310", "py311", "py312", "py313"]
verbose = true

[tool.isort]
Expand Down Expand Up @@ -91,10 +88,10 @@ legacy_tox_ini = """
requires =
tox>=4.2
env_list =
py312-pre-commit-lin
py{312, 311, 310, 39, 38}-mypy-lin
py{py310, py39, py38, 312, 311, 310, 39, 38}-pytest-coverage-lin
py312-pytest-coverage-{win, mac}
py313-pre-commit-lin
py{313, 312, 311, 310, 39}-mypy-lin
py{py310, py39, 313, 312, 311, 310, 39}-pytest-coverage-lin
py313-pytest-coverage-{win, mac}
distshare = {homedir}/.tox/distshare
[testenv]
Expand All @@ -103,33 +100,32 @@ legacy_tox_ini = """
mac: darwin
win: win32
[testenv:py312-pre-commit-lin]
[testenv:py313-pre-commit-lin]
skip_install = true
deps =
pre-commit
commands =
pre-commit run
[testenv:py{312, 311, 310, 39, 38}-mypy-lin]
[testenv:py{313, 312, 311, 310, 39}-mypy-lin]
deps =
mypy
commands =
python -m mypy
[testenv:py{py310, py39, py38, 312, 311, 310, 39, 38}-pytest-coverage-{lin, win, mac}]
[testenv:py{py310, py39, 313, 312, 311, 310, 39}-pytest-coverage-{lin, win, mac}]
deps =
.[test-coverage]
commands =
coverage run --append -m pytest -vvl
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy-3.8: pypy38
3.13: py313
pypy-3.9: pypy39
pypy-3.10: pypy310
"""

0 comments on commit 8ee84b0

Please sign in to comment.