2018-05-18 06:49:49 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pytoml
|
|
|
|
#
|
2020-03-12 07:31:33 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-05-18 06:49:49 +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.
|
|
|
|
|
2018-12-07 10:29:42 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-18 06:49:49 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-pytoml
|
2019-08-09 13:32:04 +00:00
|
|
|
Version: 0.1.21
|
2018-05-18 06:49:49 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: TOML-0.4.0 parser/writer for Python
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/avakar/pytoml
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pytoml/pytoml-%{version}.tar.gz
|
|
|
|
# toml-test for tests from author's fork with specific commit
|
2018-12-07 10:29:42 +00:00
|
|
|
Source1: https://github.com/avakar/toml-test/archive/b212790.tar.gz
|
2018-05-18 06:49:49 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
A specs-conforming and strict parser and writer for TOML files.
|
2018-12-07 10:29:42 +00:00
|
|
|
The library currently supports version 0.4.0 of the specs.
|
2018-05-18 06:49:49 +00:00
|
|
|
|
2019-08-09 13:32:04 +00:00
|
|
|
The pytoml project is no longer being actively maintained.
|
|
|
|
Consider using the toml package instead.
|
|
|
|
|
2018-05-18 06:49:49 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n pytoml-%{version}
|
|
|
|
tar -C test -xzf%{SOURCE1}
|
2018-12-07 10:29:42 +00:00
|
|
|
cd test
|
|
|
|
mv toml-test-b212790a6b7367489f389411bda009e5ff765f20 toml-test
|
2018-05-18 06:49:49 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2018-12-07 10:29:42 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-05-18 06:49:49 +00:00
|
|
|
|
|
|
|
%check
|
2018-12-07 10:29:42 +00:00
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
2019-03-07 11:15:52 +00:00
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python test/test.py
|
2018-05-18 06:49:49 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/pytoml/
|
2020-03-12 07:31:33 +00:00
|
|
|
%{python_sitelib}/pytoml-%{version}-py*.egg-info/
|
2018-05-18 06:49:49 +00:00
|
|
|
|
|
|
|
%changelog
|