commit bec5f2d9f5c9a7c958087148a4c730fa5229695bd1fb0171c1e158779866ae89 Author: Markéta Machová Date: Wed Feb 4 13:41:43 2026 +0000 - Add fix_regex.patch: relax regex because of new version of packaging - Add fix_regex.patch: relax regex because of new version of packaging (gh#repo-helper/pyproject-examples#52) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyproject-examples?expand=0&rev=5 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/fix_regex.patch b/fix_regex.patch new file mode 100644 index 0000000..d2f54b0 --- /dev/null +++ b/fix_regex.patch @@ -0,0 +1,22 @@ +Index: pyproject_examples-2023.6.30/pyproject_examples/__init__.py +=================================================================== +--- pyproject_examples-2023.6.30.orig/pyproject_examples/__init__.py ++++ pyproject_examples-2023.6.30/pyproject_examples/__init__.py +@@ -159,7 +159,7 @@ bad_pep621_config = [ + pytest.param( + f'{MINIMAL_CONFIG}\ndependencies = ["foo]]]"]', + InvalidRequirement, +- r"'foo]]]'\n Expected end or semicolon \(after name and no valid version specifier\)\n foo]]]\n \^", ++ r"'foo]]]'.*", + id="dependencies_invalid_requirement", + marks=pytest.mark.skipif(sys.version_info < (3, 7), reason="Error differs on 3.6"), + ), +@@ -243,7 +243,7 @@ bad_buildsystem_config = [ + pytest.param( + '[build-system]\nrequires = ["foo]]]"]', + InvalidRequirement, +- r"'foo]]]'\n Expected end or semicolon \(after name and no valid version specifier\)\n foo]]]\n \^", ++ r"'foo]]]'.*", + id="requires_invalid_requirement", + marks=pytest.mark.skipif(sys.version_info < (3, 7), reason="Error differs on 3.6"), + ), diff --git a/pyproject_examples-2023.6.30.tar.gz b/pyproject_examples-2023.6.30.tar.gz new file mode 100644 index 0000000..1639e3a --- /dev/null +++ b/pyproject_examples-2023.6.30.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22fb824b7847ae7e04ad2aa1fb1b4c380609ec7f48c43770a3f93486ee9a268b +size 7261 diff --git a/python-pyproject-examples.changes b/python-pyproject-examples.changes new file mode 100644 index 0000000..003df07 --- /dev/null +++ b/python-pyproject-examples.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Wed Feb 4 09:40:11 UTC 2026 - Marius Grossu + +- Add fix_regex.patch: relax regex because of new version of packaging + (gh#repo-helper/pyproject-examples#52) + +------------------------------------------------------------------- +Thu Feb 27 10:00:28 UTC 2025 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Fri Jul 26 07:14:39 UTC 2024 - Steve Kowalik + +- Initial release of 2023.6.30 diff --git a/python-pyproject-examples.spec b/python-pyproject-examples.spec new file mode 100644 index 0000000..75d38ff --- /dev/null +++ b/python-pyproject-examples.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-pyproject-examples +# +# Copyright (c) 2026 SUSE LLC and contributors +# +# 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-pyproject-examples +Version: 2023.6.30 +Release: 0 +Summary: Example pyproject.toml configs for testing +License: MIT +URL: https://github.com/repo-helper/pyproject-examples +Source: https://files.pythonhosted.org/packages/source/p/pyproject-examples/pyproject_examples-%{version}.tar.gz +# PATCH-FIX-UPSTREAM fix_regex.patch -- based on PR +Patch0: fix_regex.patch +BuildRequires: %{python_module pip} +BuildRequires: %{python_module whey} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-coincidence >= 0.4.0 +Requires: python-dom-toml >= 0.4.0 +Requires: python-packaging >= 21.3 +Requires: python-pytest >= 6.2.3 +BuildArch: noarch +%python_subpackages + +%description +Example pyproject.toml configs for testing. + +%prep +%autosetup -p1 -n pyproject_examples-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# No testsuite +exit 0 + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/pyproject_examples +%{python_sitelib}/pyproject_examples-%{version}.dist-info + +%changelog