Sync from SUSE:SLFO:Main python-parse revision a416bd1d534e41035ca379be5dbb80ad

This commit is contained in:
Adrian Schröter 2024-05-03 21:46:59 +02:00
commit b822aaeafd
4 changed files with 181 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
parse-1.19.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

99
python-parse.changes Normal file
View File

@ -0,0 +1,99 @@
-------------------------------------------------------------------
Wed Aug 25 09:34:44 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <tchvatal@suse.com>
- No need to fetch license anymore, it is in the tarball
-------------------------------------------------------------------
Wed Mar 11 15:18:17 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- 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 <tchvatal@suse.com>
- 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 <mcepl@suse.com>
- 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 <mcepl@suse.com>
- 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

56
python-parse.spec Normal file
View File

@ -0,0 +1,56 @@
#
# spec file for package python-parse
#
# Copyright (c) 2021 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-parse
Version: 1.19.0
Release: 0
Summary: Python module for parsing strings using a "format" syntax
License: MIT
Group: Development/Languages/Python
URL: https://github.com/r1chardj0n3s/parse
Source0: https://files.pythonhosted.org/packages/source/p/parse/parse-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
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
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m unittest discover -v
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog