forked from pool/python-parse
- 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
* Add test for stateful int_convert
* Handle comparison of FixedTzOffset with other types of object
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parse?expand=0&rev=20
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-parse
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# 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
|
||||
@@ -18,14 +18,16 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-parse
|
||||
Version: 1.19.0
|
||||
Version: 1.20.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 pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -39,10 +41,10 @@ Parse strings using a specification based on the Python format() syntax.
|
||||
chmod a-x README.rst
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -51,6 +53,8 @@ chmod a-x README.rst
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/parse.py
|
||||
%pycache_only %{python_sitelib}/__pycache__/parse.*
|
||||
%{python_sitelib}/parse-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user