commit 13f06cb080a22903cf09fc69dd65c991c5a25ec3c249378784f1100c3626340b Author: Dirk Mueller Date: Wed Aug 14 14:54:58 2024 +0000 - switch to modern python for sle15 * Add support for isort >= 5 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-isort?expand=0&rev=21 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-isort-4.0.0-gh.tar.gz b/pytest-isort-4.0.0-gh.tar.gz new file mode 100644 index 0000000..e670282 --- /dev/null +++ b/pytest-isort-4.0.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f0cd0809ee36354ce613f95a59e63a0ee6f0e87a3030b93b6082856f2e7011f +size 13610 diff --git a/python-pytest-isort.changes b/python-pytest-isort.changes new file mode 100644 index 0000000..28bb437 --- /dev/null +++ b/python-pytest-isort.changes @@ -0,0 +1,87 @@ +------------------------------------------------------------------- +Wed Aug 14 14:54:50 UTC 2024 - Dirk Müller + +- switch to modern python for sle15 + +------------------------------------------------------------------- +Sat Mar 16 13:06:56 UTC 2024 - Dirk Müller + +- update to 4.0.0: + * Drop support for Python 3.7 + * Add support for Python 3.10 and 3.11 + * Add support for pytest 8 + +------------------------------------------------------------------- +Sun Jan 15 20:12:31 UTC 2023 - Ben Greiner + +- Update to 3.1.0 + * Drop official support for Python 3.6. + * Drop usage of "py" dependency and use pytest capture instead + +------------------------------------------------------------------- +Mon Mar 28 20:22:52 UTC 2022 - Ben Greiner + +- Update to 3.0.0 + * Drop support for isort < 5 + * Add suport for pytest 7 +- Release 2.0.0 + * BREAKING CHANGE: Files that are ignored in isort's own + configuration will now be skipped +- Release 1.3.0 + * Fix issue with pytest >= 6.1 +- Release 1.2.0 + * Add support for pytest >= 6 +- Drop pytest6.patch +- License change + +------------------------------------------------------------------- +Tue Aug 25 11:53:40 UTC 2020 - Marketa Calabkova + +- Add patch pytest6.patch to fix tests +- Drop python2 because newer pytest is needed + +------------------------------------------------------------------- +Sat Jul 11 23:13:19 UTC 2020 - Benjamin Greiner + +- Update to 1.1.0: + * Add support for isort >= 5 + +------------------------------------------------------------------- +Sun May 3 07:31:24 UTC 2020 - Tomáš Chvátal + +- Update to 1.0.0: + * BREAKING CHANGE: Drop support for Python 3.4 + * Add support for pytest >= 5.x - fixes "from_parent" warning + * Add support for Python 3.7 and Python 3.8 + +------------------------------------------------------------------- +Mon Mar 11 08:48:37 UTC 2019 - Tomáš Chvátal + +- Update to 0.3.1: + * Update packaging, source distribution now includes tests and wheel is universal + +------------------------------------------------------------------- +Fri Mar 8 11:07:44 UTC 2019 - Tomáš Chvátal + +- Update to 0.3.0: + * Improve display of test result by appending ::ISORT + * This release requires pytest 3.5 + +------------------------------------------------------------------- +Thu Feb 14 14:11:43 UTC 2019 - Tomáš Chvátal + +- Update to 0.2.1: + * Drop "pytest-cache" dependency, not required anymore - part of py.test itself + +------------------------------------------------------------------- +Thu May 10 00:00:16 UTC 2018 - toddrme2178@gmail.com + +- Update to 0.2.0 + * Register marker to work with pytest's strict mode + * Add "official" support for Python 3.5 and 3.6 +- Use license tag + +------------------------------------------------------------------- +Tue Aug 22 15:37:10 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-pytest-isort.spec b/python-pytest-isort.spec new file mode 100644 index 0000000..2edcaa3 --- /dev/null +++ b/python-pytest-isort.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-pytest-isort +# +# 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 +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-pytest-isort +Version: 4.0.0 +Release: 0 +Summary: Pytest plugin to check import ordering using isort +License: MIT +URL: https://github.com/stephrdev/pytest-isort/ +Source: https://github.com/stephrdev/pytest-isort/archive/refs/tags/%{version}.tar.gz#/pytest-isort-%{version}-gh.tar.gz +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module isort >= 4.0} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core >= 1} +BuildRequires: %{python_module pytest >= 6.2} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-isort >= 4.0 +Requires: python-pytest >= 5.0 +BuildArch: noarch +%python_subpackages + +%description +This is a pytest plugin to check import ordering using isort. + +%prep +%setup -q -n pytest-isort-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%{python_expand # +rm %{buildroot}%{$python_sitelib}/LICENSE.rst +%fdupes %{buildroot}%{$python_sitelib} +} + +%check +%pytest + +%files %{python_files} +%doc CHANGELOG.rst README.rst +%license LICENSE.rst +%{python_sitelib}/pytest_isort +%{python_sitelib}/pytest_isort-%{version}*-info + +%changelog