From 35a6037932a208af3e987a6b955fed5f8a9797f165b539ae41c5c1dc38f532c5 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 7 May 2025 07:03:32 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-flakes?expand=0&rev=12 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + pytest-flakes-4.0.5.tar.gz | 3 ++ python-pytest-flakes.changes | 57 ++++++++++++++++++++++++++++++++ python-pytest-flakes.spec | 64 ++++++++++++++++++++++++++++++++++++ 5 files changed, 148 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-flakes-4.0.5.tar.gz create mode 100644 python-pytest-flakes.changes create mode 100644 python-pytest-flakes.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pytest-flakes-4.0.5.tar.gz b/pytest-flakes-4.0.5.tar.gz new file mode 100644 index 0000000..42b3d78 --- /dev/null +++ b/pytest-flakes-4.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:953134e97215ae31f6879fbd7368c18d43f709dc2fab5b7777db2bb2bac3a924 +size 7313 diff --git a/python-pytest-flakes.changes b/python-pytest-flakes.changes new file mode 100644 index 0000000..e6b9699 --- /dev/null +++ b/python-pytest-flakes.changes @@ -0,0 +1,57 @@ +------------------------------------------------------------------- +Wed May 7 06:49:38 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Mon Jan 10 21:23:01 UTC 2022 - Matej Cepl + +- Update to version 4.0.5: + - Drop support for EOL Python 2.7 and 3.4 + - Add python_requires to help pip + - Upgrade Python syntax with pyupgrade --py3-plus + - Require pytest 5+ to remove hasattr('from_parent') check + - Fix typo: setup.cfg or pytest.ini + - implement collect + - switch to cooperative ctors and correct node trees to future + proof + - Remove FlakesItem.collect + - Remove add_marker backward compat check + - Remove tokenize.open backward compat + - Prepare for upcoming pytest 7.0 deprecations + +------------------------------------------------------------------- +Thu Aug 13 08:50:18 UTC 2020 - Benjamin Greiner + +- Update to Version 4.0.1 + * Maintenance of pytest-flakes has moved from fschulze to + asmeurer. The repo for pytest-flakes is now at + https://github.com/asmeurer/pytest-flakes/ + * Fix test failures. [asmeurer] + * Fix deprecation warnings from pytest. [asmeurer] + * Fix invalid escape sequences. [akeeman] +- drop patches for fixed test + * remove-bad-test.patch + * replace-pytest-pep8-with-pytest-codestyle.patch +- no pytest-codestyle needed for packaging + +------------------------------------------------------------------- +Fri Dec 6 14:13:07 UTC 2019 - Ondřej Súkup + +- use pytest macro + +------------------------------------------------------------------- +Thu Feb 14 12:54:12 UTC 2019 - Tomáš Chvátal + +- Fix the pytest call + +------------------------------------------------------------------- +Wed Oct 10 15:09:17 UTC 2018 - Antonio Larrosa + +- Remove conditional test variable from spec file and keep it enabled + +------------------------------------------------------------------- +Thu Sep 20 11:23:22 UTC 2018 - Antonio Larrosa - 4.0.0 + +- Initial release of python-pytest-flakes 4.0.0 +- Add remove-bad-test.patch to remove a test that seems to be wrong diff --git a/python-pytest-flakes.spec b/python-pytest-flakes.spec new file mode 100644 index 0000000..d49cbef --- /dev/null +++ b/python-pytest-flakes.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-pytest-flakes +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-pytest-flakes +Version: 4.0.5 +Release: 0 +Summary: Pytest plugin to check source code with pyflakes +License: MIT +URL: https://github.com/asmeurer/pytest-flakes +Source: https://files.pythonhosted.org/packages/source/p/pytest-flakes/pytest-flakes-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# Test requirements +BuildRequires: %{python_module pyflakes} +BuildRequires: %{python_module pytest >= 2.8.0} +# End of test requirements +BuildRequires: fdupes +Requires: python-pyflakes +Requires: python-pytest >= 2.8.0 +BuildArch: noarch + +%python_subpackages + +%description +py.test plugin for efficiently checking python source with pyflakes. + +%prep +%setup -q -n pytest-flakes-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest test_flakes.py + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/pytest_flakes.py +%pycache_only %{python_sitelib}/__pycache__/pytest_flakes.*pyc +%{python_sitelib}/pytest_flakes-%{version}.dist-info + +%changelog