- Switch to multibuild to not cycle with numpy
* update testdata OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-toml?expand=0&rev=13
This commit is contained in:
parent
355f7c9c92
commit
3fd26854e0
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
@ -1,8 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 31 08:53:10 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Switch to multibuild to not cycle with numpy
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 8 10:32:52 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- update to 0.10.1
|
||||
* update testdata
|
||||
* update testdata
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 12 07:30:21 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
@ -17,7 +17,15 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-toml
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
Name: python-toml%{psuffix}
|
||||
Version: 0.10.1
|
||||
Release: 0
|
||||
Summary: Python module which parses and emits TOML
|
||||
@ -28,13 +36,15 @@ Source: https://files.pythonhosted.org/packages/source/t/toml/toml-%{ver
|
||||
Source1: https://github.com/BurntSushi/toml-test/archive/280497f.tar.gz#/toml-test-280497f.tar.gz
|
||||
# Missing file https://github.com/uiri/toml/pull/231
|
||||
Source2: https://raw.githubusercontent.com/uiri/toml/%{version}/test.toml
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -63,17 +73,22 @@ cp %{SOURCE2} .
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
export LANG=en_US.UTF-8
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
# See https://github.com/uiri/toml/issues/216 re change log
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user