- Remove python_module macro definition

- Add python-py dependency
- More specific python_sitelib in %files
- Update to 2.3.1:
  * Replace --strict command-line option with --strict-markers (#95)
  * Test with Python 3.11 (#101)
  * Update MANIFEST.in to add tests and Makefile to sdist (#100)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-pycodestyle?expand=0&rev=10
This commit is contained in:
2022-11-30 11:34:51 +00:00
committed by Git OBS Bridge
parent ce7b31acc9
commit bcfe2965af
4 changed files with 20 additions and 6 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6c0e2a0739c350d4dcffe668b95f63f390fce8b4e67b4fb236208dd6d0cf6530
size 4216

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2901327b8e6beab90298a9803074483efe560e191bef81d9e18119b141222830
size 5188

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Nov 30 11:33:22 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Remove python_module macro definition
- Add python-py dependency
- More specific python_sitelib in %files
- Update to 2.3.1:
* Replace --strict command-line option with --strict-markers (#95)
* Test with Python 3.11 (#101)
* Update MANIFEST.in to add tests and Makefile to sdist (#100)
-------------------------------------------------------------------
Tue Aug 16 14:09:38 UTC 2022 - Axel Braun <axel.braun@gmx.de>

View File

@@ -16,10 +16,9 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pytest-pycodestyle
Version: 2.3.0
Version: 2.3.1
Release: 0
Summary: Pytest plugin to run pycodestyle
License: MIT
@@ -29,9 +28,11 @@ BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module pycodestyle}
BuildRequires: %{python_module pytest >= 5.4}
BuildRequires: %{python_module pytest-isort}
BuildRequires: %{python_module py}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-py
Requires: python-pycodestyle
Requires: python-pytest
Requires: python-setuptools
@@ -60,6 +61,8 @@ sed -i -e 's:~=:>=:g' setup.py
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%pycache_only %{python_sitelib}/__pycache__/*.pyc
%{python_sitelib}/pytest_pycodestyle.py
%{python_sitelib}/pytest_pycodestyle-%{version}*-info
%changelog