#5 ANNOUNCED: Update to 7.0.0 (close RHBZ#2243132)
Merged 7 months ago by music. Opened 8 months ago by music.
rpms/ music/python-pytest-bdd v7  into  rawhide

file modified
+1
@@ -3,3 +3,4 @@ 

  /pytest-bdd-6.0.1.tar.gz

  /pytest-bdd-6.1.0.tar.gz

  /pytest-bdd-6.1.1.tar.gz

+ /pytest-bdd-7.0.0.tar.gz

@@ -1,22 +0,0 @@ 

- From 628790921e05e614a7064aab29b8c60fc01c943b Mon Sep 17 00:00:00 2001

- From: Alessio Bogon <778703+youtux@users.noreply.github.com>

- Date: Tue, 3 Jan 2023 12:01:24 +0100

- Subject: [PATCH] Fix python 3.12.0a3 syntax error

- 

- ---

-  tests/steps/test_common.py | 2 +-

-  1 file changed, 1 insertion(+), 1 deletion(-)

- 

- diff --git a/tests/steps/test_common.py b/tests/steps/test_common.py

- index 51ef512d..535f785a 100644

- --- a/tests/steps/test_common.py

- +++ b/tests/steps/test_common.py

- @@ -101,7 +101,7 @@ def test_step_functions_same_parser(pytester):

-  

-          scenarios("target_fixture.feature")

-  

- -        STEP = 'there is a foo with value "(?P<value>\\w+)"'

- +        STEP = r'there is a foo with value "(?P<value>\\w+)"'

-  

-          @given(STEP)

-          def _():

file modified
+3 -11
@@ -5,7 +5,7 @@ 

  %bcond doc 1

  

  Name:           python-pytest-bdd

- Version:        6.1.1

+ Version:        7.0.0

  Release:        %autorelease

  Summary:        BDD library for the py.test runner

  
@@ -21,21 +21,13 @@ 

  Source11:       pytest-bdd-generate.1

  Source12:       pytest-bdd-migrate.1

  

- # Remove old pytest logic

- # Fixes FTBFS with setuptools >= 67.5.1

- # Resolved upstream: https://github.com/pytest-dev/pytest-bdd/pull/580

- Patch:          remove-old-pytest-logic.patch

- 

- # Fix python 3.12.0a3 syntax error

- # https://github.com/pytest-dev/pytest-bdd/commit/628790921e05e614a7064aab29b8c60fc01c943b

- Patch:          %{forgeurl}/commit/628790921e05e614a7064aab29b8c60fc01c943b.patch

- 

  BuildArch:      noarch

   

  BuildRequires:  python3-devel

  

  # Required for: tests/feature/test_report.py::test_complex_types

- BuildRequires:  python3dist(pytest-xdist)

+ # Also in pyproject.toml:[tool.poetry.group.dev.dependencies]

+ BuildRequires:  python3dist(pytest-xdist) >= 3.3.1

  

  # Required for: tests/feature/test_tags.py (top-level pkg_resources import)

  BuildRequires:  python3dist(setuptools)

@@ -1,40 +0,0 @@ 

- From 265188b73d59eeb852a1d118b2881d5450eae61e Mon Sep 17 00:00:00 2001

- From: Alessio Bogon <778703+youtux@users.noreply.github.com>

- Date: Sat, 12 Nov 2022 15:53:38 +0100

- Subject: [PATCH] Remove logic for old unsupported pytest

- 

- ---

-  tests/feature/test_tags.py | 10 +---------

-  1 file changed, 1 insertion(+), 9 deletions(-)

- 

- diff --git a/tests/feature/test_tags.py b/tests/feature/test_tags.py

- index 810dd00..395a6b6 100644

- --- a/tests/feature/test_tags.py

- +++ b/tests/feature/test_tags.py

- @@ -1,7 +1,6 @@

-  """Test tags."""

-  import textwrap

-  

- -import pkg_resources

-  import pytest

-  

-  from pytest_bdd.parser import get_tags

- @@ -235,14 +234,7 @@ def test_at_in_scenario(pytester):

-          scenarios('test.feature')

-      """

-      )

- -

- -    # Deprecate --strict after pytest 6.1

- -    # https://docs.pytest.org/en/stable/deprecations.html#the-strict-command-line-option

- -    pytest_version = pkg_resources.get_distribution("pytest").parsed_version

- -    if pytest_version >= pkg_resources.parse_version("6.2"):

- -        strict_option = "--strict-markers"

- -    else:

- -        strict_option = "--strict"

- +    strict_option = "--strict-markers"

-      result = pytester.runpytest_subprocess(strict_option)

-      result.stdout.fnmatch_lines(["*= 2 passed * =*"])

-  

- -- 

- 2.39.2

- 

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (pytest-bdd-6.1.1.tar.gz) = 69cd345d4a819a84a811ca2a5825f87a46fa4d063b9a852308d36e4f15058a27c45b170dadf684e68322d3380654f985b8ef153e34ad42ef33e0b595f8dc9d96

+ SHA512 (pytest-bdd-7.0.0.tar.gz) = 0f95334a56ff7ccc774e5b94b91d232b829fb308a21ce975c88720493abbefa9e76fcd35cc2ca9bbbf0fd2e38b6f20f5be6cf59368aab4cf70abdaf24c7fd5ed

Announced on the devel list; merge and build no earlier than 2023-11-03.

https://github.com/pytest-dev/pytest-bdd/compare/6.1.1...7.0.0

## 7.0.0

- ⚠️ Backwards incompatible: - `parsers.re` now does a [`fullmatch`](https://docs.python.org/3/library/re.html#re.fullmatch) instead of a partial match. This is to make it work just like the other parsers, since they don't ignore non-matching characters at the end of the string.
- Drop python 3.7 compatibility, as it's no longer supported.
- Declare official support for python 3.12
- Improve parser performance by 15%
- Add support for Scenarios and Scenario Outlines to have descriptions.

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/40fce42d148545d4837b10b54edd4d8b

rebased onto 3240b3a

8 months ago

rebased onto 37418ae

8 months ago

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/315827366b3541da850fbbc00876bca3

Pull-Request has been merged by music

7 months ago