15
0
forked from pool/python-perky
Files
python-perky/python-perky.spec
Dirk Mueller 28abd786cf Accepting request 1224099 from home:glaubitz:branches:devel:languages:python
- Update to 0.9.3
  * pragma_include now accepts a new jail argument,
    a boolean.  By default jail is false.  If jail is
    true, the paths to included files must be in or under
    the path from include_paths.
  * pragma_include now permits pathlib.Path
    objects in its include_paths parameter.
    It still supports str objects too, of course.

OBS-URL: https://build.opensuse.org/request/show/1224099
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-perky?expand=0&rev=6
2024-11-14 09:36:39 +00:00

61 lines
1.9 KiB
RPMSpec

#
# spec file for package python-perky
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-perky
Version: 0.9.3
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 flit}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
An "rcfile" text file format for Python programs solving the same
problem as "INI" files, "TOML" files, and "JSON" files.
%prep
%setup -q -n perky-%{version}
sed -i '1{/\/usr\/bin\/env python*/d;}' perky/utility.py perky/__init__.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# tests need to be executed directly, otherwise (pytest, unittest discover) they fail
%python_exec tests/test_perky.py -v
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/perky/
%{python_sitelib}/perky-%{version}.dist-info
%changelog