From 5e7f875b09d09be108105a9e60c1ad898bb165cd37fbdea1549e6597b48a2f17 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 25 Oct 2024 05:24:47 +0000 Subject: [PATCH] add %{?sle15_python_module_pythons} to spec OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parse?expand=0&rev=28 --- .gitattributes | 23 ++++++++ .gitignore | 1 + parse-1.20.2.tar.gz | 3 + python-parse.changes | 137 +++++++++++++++++++++++++++++++++++++++++++ python-parse.spec | 59 +++++++++++++++++++ 5 files changed, 223 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 parse-1.20.2.tar.gz create mode 100644 python-parse.changes create mode 100644 python-parse.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/parse-1.20.2.tar.gz b/parse-1.20.2.tar.gz new file mode 100644 index 0000000..730e804 --- /dev/null +++ b/parse-1.20.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b41d604d16503c79d81af5165155c0b20f6c8d6c559efa66b4b695c3e5a0a0ce +size 29391 diff --git a/python-parse.changes b/python-parse.changes new file mode 100644 index 0000000..d248333 --- /dev/null +++ b/python-parse.changes @@ -0,0 +1,137 @@ +------------------------------------------------------------------- +Thu Sep 26 21:25:03 UTC 2024 - Thiago Bertoldi + +- use modern python version on Leap15.6 + +------------------------------------------------------------------- +Thu Jun 20 12:40:24 UTC 2024 - Dirk Müller + +- update to 1.20.2: + * allow hyphen in field name. closes #86 + +------------------------------------------------------------------- +Thu Feb 1 00:50:36 UTC 2024 - Steve Kowalik + +- Switch to pytest, like upstream has. + +------------------------------------------------------------------- +Tue Jan 30 18:07:15 UTC 2024 - Dirk Müller + +- update to 1.20.1: + * add formatter property, closes #172 + * add security policy file. closes #175. + * Support various number of digits after the comma in the + timestamp %f … + +------------------------------------------------------------------- +Sat Jan 13 20:40:54 UTC 2024 - Dirk Müller + +- update to 1.20.0: + * Optimize _expand_named_fields + * Add functionality to parse datetimes according C standard + format codes. +- update to 1.19.1: + * Add support for sign specifiers in number formats. + * Fix handling of unused alignment + * modern packaging + * universal wheel + +------------------------------------------------------------------- +Wed Aug 25 09:34:44 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 1.19.0 + * Fix using digit field numbering and types + * match trailing newline (#124) + * readme: fix style (#126) + * Add Github Actions config (#129) + * Docs for slice change + * Support slice access to results (#128) +- from version 1.18.0 + * Add test for stateful int_convert + * Make int_convert stateless +- from version 1.17.0 + * Make left- and center-aligned search consume up to next space + * adding properties to access named fields and fixed fields (#115) + * Fix findall case_sensitive (#113) +- from version 1.16.0 + * release stuff + * fixing issue 110 by using functor instead of inner function (#111) + * add failing test for bug 110 + * Add syntax highlighting to README (#105) + +------------------------------------------------------------------- +Sun Mar 15 09:40:27 UTC 2020 - Tomáš Chvátal + +- No need to fetch license anymore, it is in the tarball + +------------------------------------------------------------------- +Wed Mar 11 15:18:17 UTC 2020 - Marketa Calabkova + +- update to 1.15.0 + * Several bugs with parsing hex, bin and oct numbers. + * Handle fortran formatted float number, Bug fix & test case. + * Handle comparison of FixedTzOffset with other types of object + +------------------------------------------------------------------- +Wed Sep 11 08:31:39 UTC 2019 - Tomáš Chvátal + +- Update to 1.12.1: + * no upstream changelog + +------------------------------------------------------------------- +Thu Apr 25 11:47:55 UTC 2019 - pgajdos@suse.com + +- version update to 1.12.0 + * Do not assume closing brace when an opening one is found +- added sources + https://github.com/r1chardj0n3s/parse/issues/82 + + LICENSE + +------------------------------------------------------------------- +Thu Feb 14 10:29:49 CET 2019 - Matej Cepl + +- Update to 1.11.1: + * Implement __contains__ for Result instances. + * Introduce a "letters" matcher, since "w" matches numbers also. + * Fix deprecation warnings around backslashes in regex strings + (thanks Mickaël Schoentgen). Also fix some documentation + formatting issues. + * We now honor precision and width specifiers when parsing + numbers and strings, allowing parsing of concatenated + elements of fixed width (thanks Julia Signell) + * Add LICENSE file at request of packagers. Correct handling of + AM/PM to follow most common interpretation. Correct parsing + of hexadecimal that looks like a binary prefix. Add ability + to parse case sensitively. Add parsing of numbers to Decimal + with "F" (thanks John Vandenberg) + * Add regex_group_count to with_pattern() decorator to support + user-defined types that contain brackets/parenthesis (thanks + Jens Engel) + +------------------------------------------------------------------- +Tue Dec 4 12:51:11 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Sun Jul 29 13:36:35 UTC 2018 - jengelh@inai.de + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Thu May 24 17:36:59 UTC 2018 - toddrme2178@gmail.com + +- Spec file cleanups + +------------------------------------------------------------------- +Wed Oct 18 16:45:12 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Update to version 1.8.2 + * No changelog + +------------------------------------------------------------------- +Fri Jun 3 15:49:11 UTC 2016 - toddrme2178@gmail.com + +- Initial version + diff --git a/python-parse.spec b/python-parse.spec new file mode 100644 index 0000000..cf95aa3 --- /dev/null +++ b/python-parse.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-parse +# +# 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-parse +Version: 1.20.2 +Release: 0 +Summary: Python module for parsing strings using a "format" syntax +License: MIT +URL: https://github.com/r1chardj0n3s/parse +Source0: https://files.pythonhosted.org/packages/source/p/parse/parse-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Parse strings using a specification based on the Python format() syntax. + +%prep +%setup -q -n parse-%{version} +chmod a-x README.rst + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/parse.py +%pycache_only %{python_sitelib}/__pycache__/parse.* +%{python_sitelib}/parse-%{version}.dist-info + +%changelog