2019-03-05 12:13:58 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-tomlkit
|
|
|
|
#
|
2020-03-11 12:46:12 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-03-05 12:13:58 +01: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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-12 09:03:45 +01:00
|
|
|
%bcond_without python2
|
2019-03-05 12:13:58 +01:00
|
|
|
Name: python-tomlkit
|
2020-10-06 10:31:55 +02:00
|
|
|
Version: 0.7.0
|
2019-03-05 12:13:58 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Style preserving TOML library
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/sdispater/tomlkit
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/tomlkit/tomlkit-%{version}.tar.gz
|
2020-10-06 10:31:55 +02:00
|
|
|
BuildRequires: %{python_module PyYAML >= 5.3.1}
|
2019-07-22 14:38:50 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-03-05 12:13:58 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module typing >= 3.6}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-05 12:23:19 +01:00
|
|
|
BuildArch: noarch
|
2020-03-12 09:03:45 +01:00
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: python-enum34
|
|
|
|
BuildRequires: python-functools32
|
|
|
|
%endif
|
2019-03-05 12:13:58 +01:00
|
|
|
%ifpython2
|
|
|
|
Requires: python-enum34
|
|
|
|
Requires: python-functools32
|
|
|
|
%endif
|
2019-03-05 12:23:19 +01:00
|
|
|
%if %{python_version_nodots} < 35
|
2019-03-05 12:13:58 +01:00
|
|
|
Requires: python-typing >= 3.6
|
|
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Style preserving TOML library
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n tomlkit-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2019-07-22 14:38:50 +02:00
|
|
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
|
2019-03-05 12:13:58 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2019-07-22 14:38:50 +02:00
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
2019-03-05 12:13:58 +01:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2020-10-06 10:31:55 +02:00
|
|
|
%{python_sitelib}/tomlkit
|
|
|
|
%{python_sitelib}/tomlkit-%{version}-py*.egg-info
|
2019-03-05 12:13:58 +01:00
|
|
|
|
|
|
|
%changelog
|