forked from python-pytest/python-pytest-pycodestyle
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| e7baf79d43 | |||
| f4663b8d48 |
@@ -1,8 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 12 09:49:16 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Add support-old-pyproject.patch instead of sed command to support
|
||||||
|
old license format in pyproject.toml
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 7 15:04:58 UTC 2025 - Marius Grossu <marius.grossu@suse.com>
|
Fri Nov 7 15:04:58 UTC 2025 - Marius Grossu <marius.grossu@suse.com>
|
||||||
|
|
||||||
- update to 2.5.0:
|
- update to 2.5.0:
|
||||||
* Migrate from setup.py to pyproject.toml
|
* Migrate from setup.py to pyproject.toml
|
||||||
* Remove py.io dependency
|
* Remove py.io dependency
|
||||||
- removed the setup.py in spec files
|
- removed the setup.py in spec files
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,9 @@ Summary: Pytest plugin to run pycodestyle
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/henry0312/pytest-pycodestyle
|
URL: https://github.com/henry0312/pytest-pycodestyle
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-pycodestyle/pytest_pycodestyle-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-pycodestyle/pytest_pycodestyle-%{version}.tar.gz
|
||||||
|
# Needed to build correctly in sle-15 with python3.11
|
||||||
|
# PATCH-FIX-OPENSUSE support-old-pyproject.patch -- daniel.garcia@suse.com
|
||||||
|
Patch0: support-old-pyproject.patch
|
||||||
BuildRequires: %{python_module base >= 3.6}
|
BuildRequires: %{python_module base >= 3.6}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pycodestyle}
|
BuildRequires: %{python_module pycodestyle}
|
||||||
@@ -34,10 +37,8 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-py
|
|
||||||
Requires: python-pycodestyle
|
Requires: python-pycodestyle
|
||||||
Requires: python-pytest
|
Requires: python-pytest
|
||||||
Requires: python-setuptools
|
|
||||||
Provides: python-pytest-codestyle = %{version}
|
Provides: python-pytest-codestyle = %{version}
|
||||||
Obsoletes: python-pytest-codestyle < %{version}
|
Obsoletes: python-pytest-codestyle < %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -47,10 +48,7 @@ BuildArch: noarch
|
|||||||
pytest plugin to run pycodestyle in python tests
|
pytest plugin to run pycodestyle in python tests
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytest_pycodestyle-%{version}
|
%autosetup -p1 -n pytest_pycodestyle-%{version}
|
||||||
%if 0%{?suse_version} <= 1500
|
|
||||||
sed -i 's/license = "MIT"/license = { text = "MIT" }/' pyproject.toml
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|||||||
13
support-old-pyproject.patch
Normal file
13
support-old-pyproject.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Index: pytest_pycodestyle-2.5.0/pyproject.toml
|
||||||
|
===================================================================
|
||||||
|
--- pytest_pycodestyle-2.5.0.orig/pyproject.toml
|
||||||
|
+++ pytest_pycodestyle-2.5.0/pyproject.toml
|
||||||
|
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
|
||||||
|
name = "pytest-pycodestyle"
|
||||||
|
description = "pytest plugin to run pycodestyle"
|
||||||
|
readme = "README.md"
|
||||||
|
-license = "MIT"
|
||||||
|
+license = { text = "MIT" }
|
||||||
|
authors = [
|
||||||
|
{ name = "OMOTO Tsukasa", email = "tsukasa@oomo.to" }
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user