Skip to content

Commit

Permalink
Update python-flake8-comprehensions to version 3.14.0 / rev 14 via SR…
Browse files Browse the repository at this point in the history
… 1153128

https://build.opensuse.org/request/show/1153128
by user mcepl + dimstar_suse
Forwarded request #1152490 from bnavigator

- Add flake8-comprehensions-pr559-notnormalized.patch
    gh#adamchainz/flake8-comprehensions#559
  • Loading branch information
mcepl authored and bmwiedemann committed Feb 29, 2024
1 parent 8388447 commit 0e47b6f
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 5 deletions.
Binary file modified packages/p/python-flake8-comprehensions/.files
Binary file not shown.
11 changes: 11 additions & 0 deletions packages/p/python-flake8-comprehensions/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,15 @@
* Drop Python 3.7 support.</comment>
<requestid>1098178</requestid>
</revision>
<revision rev="14" vrev="2">
<srcmd5>ecc3b8890397dddd85d18cf1397c64ac</srcmd5>
<version>3.14.0</version>
<time>1709239818</time>
<user>dimstar_suse</user>
<comment>Forwarded request #1152490 from bnavigator

- Add flake8-comprehensions-pr559-notnormalized.patch
gh#adamchainz/flake8-comprehensions#559</comment>
<requestid>1153128</requestid>
</revision>
</revisionlist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -ur flake8-comprehensions-3.14.0.orig/tests/test_flake8_comprehensions.py flake8-comprehensions-3.14.0/tests/test_flake8_comprehensions.py
--- flake8-comprehensions-3.14.0.orig/tests/test_flake8_comprehensions.py 2024-02-27 20:40:03.434499715 +0100
+++ flake8-comprehensions-3.14.0/tests/test_flake8_comprehensions.py 2024-02-27 20:40:14.791498740 +0100
@@ -22,7 +22,7 @@

def test_version(flake8_path):
result = flake8_path.run_flake8(["--version"])
- version_regex = r"flake8-comprehensions:( )*" + version("flake8-comprehensions")
+ version_regex = r"flake8[-_]comprehensions:( )*" + version("flake8-comprehensions")
unwrapped = "".join(result.out_lines)
assert re.search(version_regex, unwrapped)

Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 27 19:41:44 UTC 2024 - Ben Greiner <code@bnavigator.de>

- Add flake8-comprehensions-pr559-notnormalized.patch
gh#adamchainz/flake8-comprehensions#559

-------------------------------------------------------------------
Tue Jul 11 13:33:29 UTC 2023 - Dirk Müller <dmueller@suse.com>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# spec file for package python-flake8-comprehensions
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
Expand All @@ -16,15 +16,16 @@
#


%define skip_python2 1
Name: python-flake8-comprehensions
Version: 3.14.0
Release: 0
Summary: A flake8 plugin to help you write better list/set/dict comprehensions
License: ISC
Group: Development/Languages/Python
URL: https://github.com/adamchainz/flake8-comprehensions
Source: https://github.com/adamchainz/flake8-comprehensions/archive/%{version}.tar.gz
Source: https://github.com/adamchainz/flake8-comprehensions/archive/%{version}.tar.gz#/flake8-comprehensions-%{version}-gh.tar.gz
# PATCH-FIX-UPSTREAM flake8-comprehensions-pr559-notnormalized.patch gh#adamchainz/flake8-comprehensions#559
Patch0: flake8-comprehensions-pr559-notnormalized.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
Expand All @@ -45,7 +46,7 @@ BuildRequires: %{python_module pytest}
A flake8 plugin that helps you write better list/set/dict comprehensions.

%prep
%setup -q -n flake8-comprehensions-%{version}
%autosetup -p1 -n flake8-comprehensions-%{version}

%build
%pyproject_wheel
Expand All @@ -61,6 +62,6 @@ A flake8 plugin that helps you write better list/set/dict comprehensions.
%license LICENSE
%doc README.rst
%{python_sitelib}/flake8_comprehensions
%{python_sitelib}/flake8_comprehensions-%{version}*-info
%{python_sitelib}/flake8_comprehensions-%{version}.dist-info

%changelog

0 comments on commit 0e47b6f

Please sign in to comment.