forked from pool/python-perky
- update to 0.9.2:
* Added GitHub Actions integration. Tests and
coverage are run in the cloud after every checkin.
Thanks to [Dan Pope](https://github.com/lordmauve)
for gently walking me through this!
* Fixed metadata in the `pyproject.toml` file.
* Dropped support for Python 3.5. (I assumed I already
had, but it was still listed as being supported
in the project metadata.)
* Added badges for testing, coverage,
and supported Python versions.
* API change: the `Parser` attribute `breadcrumbs` has been
renamed to `stack`. It was previously undocumented anyway,
though as of 0.9.1 it's now documented. The previous name
`breadcrumbs` has been kept as an alias for now, but will
be removed before 1.0.
* Added the `line_number` and `source` attributes to the
`Parser` object, for the convenience of pragma handlers.
* Refactored `parser_include` slightly. No change to
functionality or behavior, just a small code cleanup pass.
* Added a "lines per second" output metric to the
benchmark program.
* From this point forward, Perky only supports reading and
writing files in
[UTF-8](https://en.wikipedia.org/wiki/UTF-8).
If you need to work with a different encoding, you'll have
to handle loading it form and saving it to disk yourself.
You'll have to use `loads` and `dumps` to handle converting
between Perky string format and native Python objects.
* Optimized Perky some more. It's roughly 11% faster than 0.8.1.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-perky?expand=0&rev=4
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-perky
|
||||
#
|
||||
# Copyright (c) 2022 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,13 +18,15 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-perky
|
||||
Version: 0.5.5
|
||||
Version: 0.9.2
|
||||
Release: 0
|
||||
Summary: A parser for the perky text file format
|
||||
License: MIT
|
||||
URL: https://github.com/larryhastings/perky/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/perky/perky-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module flit}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -39,10 +41,10 @@ problem as "INI" files, "TOML" files, and "JSON" files.
|
||||
sed -i '1{/\/usr\/bin\/env python*/d;}' perky/utility.py perky/__init__.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -53,6 +55,6 @@ sed -i '1{/\/usr\/bin\/env python*/d;}' perky/utility.py perky/__init__.py
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/perky/
|
||||
%{python_sitelib}/perky-%{version}*-info
|
||||
%{python_sitelib}/perky-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user