2020-11-25 14:37:00 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-reconfigure
|
|
|
|
#
|
2024-03-14 17:54:44 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-11-25 14:37:00 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-reconfigure
|
2024-03-14 17:54:44 +00:00
|
|
|
Version: 0.1.83
|
2020-11-25 14:37:00 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python ORM for config files
|
|
|
|
License: LGPL-3.0-only
|
|
|
|
Group: Development/Languages/Python
|
2020-11-25 15:18:14 +00:00
|
|
|
URL: https://github.com/Eugeny/reconfigure
|
2024-03-14 17:54:44 +00:00
|
|
|
Source: https://github.com/Eugeny/reconfigure/archive/%{version}.tar.gz#/reconfigure-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module pip}
|
2020-11-25 14:37:00 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-03-14 17:54:44 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-11-25 14:37:00 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-chardet
|
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module chardet}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python ORM for config files.
|
|
|
|
|
|
|
|
%prep
|
2024-03-14 17:54:44 +00:00
|
|
|
%autosetup -p1 -n reconfigure-%{version}
|
|
|
|
|
2020-11-25 14:37:00 +00:00
|
|
|
printf '[pytest]\npython_files = *_test*.py' > pytest.ini
|
|
|
|
|
|
|
|
%build
|
2024-03-14 17:54:44 +00:00
|
|
|
%pyproject_wheel
|
2020-11-25 14:37:00 +00:00
|
|
|
|
|
|
|
%install
|
2024-03-14 17:54:44 +00:00
|
|
|
%pyproject_install
|
2020-11-25 14:37:00 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-11-25 15:18:14 +00:00
|
|
|
# crontab_tests: https://github.com/Eugeny/reconfigure/issues/26
|
2020-11-25 14:37:00 +00:00
|
|
|
%pytest reconfigure/tests/ -k 'not crontab_tests'
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license docs/LICENSE
|
2024-03-14 17:54:44 +00:00
|
|
|
%{python_sitelib}/reconfigure
|
|
|
|
%{python_sitelib}/reconfigure-%{version}*-info
|
2020-11-25 14:37:00 +00:00
|
|
|
|
|
|
|
%changelog
|