Accepting request 957673 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/957673 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tomli?expand=0&rev=4
This commit is contained in:
commit
3ddcfe10bd
@ -1,3 +0,0 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 25 11:15:48 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>
|
||||
|
||||
- Update to 2.0.1:
|
||||
* More uniform error messages
|
||||
* Raise a friendly TypeError for wrong file mode
|
||||
* Allow parse_float to return objects having the append attr
|
||||
* Eagerly raise an error if parse_float returns an illegal type
|
||||
* Tests ported to unittest
|
||||
- Merge base and -test package, there is no extra dependency any
|
||||
more, tests just need the python interpreter
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 20 20:10:07 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -16,18 +16,10 @@
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-tomli%{psuffix}
|
||||
Version: 2.0.0
|
||||
Name: python-tomli
|
||||
Version: 2.0.1
|
||||
Release: 0
|
||||
Summary: A lil' TOML parser
|
||||
License: MIT
|
||||
@ -44,11 +36,6 @@ BuildRequires: %{python_module pip}
|
||||
#!BuildIgnore: python39-tomli
|
||||
#!BuildIgnore: python310-tomli
|
||||
#!BuildIgnore: ca-certificates
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module pytest-randomly}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-dateutil}
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@ -61,24 +48,21 @@ Tomli is a Python library for parsing TOML
|
||||
%autosetup -p1 -n tomli-%{version}
|
||||
|
||||
%build
|
||||
export PYTHONPATH=$PWD
|
||||
# flit_core requires tomli
|
||||
export PYTHONPATH=$PWD/src
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%if ! %{with test}
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pyunittest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{python_sitelib}/tomli
|
||||
%{python_sitelib}/tomli-%{version}*-info
|
||||
|
||||
%else
|
||||
|
||||
%check
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:951c25b98f1ac8d6f08c473459ec5d049f9e1ae82903d86046514664e956e27f
|
||||
size 123262
|
BIN
tomli-2.0.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
tomli-2.0.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user