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:
Dominique Leuenberger 2022-02-27 21:42:42 +00:00 committed by Git OBS Bridge
commit 3ddcfe10bd
5 changed files with 22 additions and 29 deletions

View File

@ -1,3 +0,0 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -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> Thu Jan 20 20:10:07 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@ -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-%{**}} %{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-tomli%{psuffix} Name: python-tomli
Version: 2.0.0 Version: 2.0.1
Release: 0 Release: 0
Summary: A lil' TOML parser Summary: A lil' TOML parser
License: MIT License: MIT
@ -44,11 +36,6 @@ BuildRequires: %{python_module pip}
#!BuildIgnore: python39-tomli #!BuildIgnore: python39-tomli
#!BuildIgnore: python310-tomli #!BuildIgnore: python310-tomli
#!BuildIgnore: ca-certificates #!BuildIgnore: ca-certificates
%if %{with test}
BuildRequires: %{python_module pytest-randomly}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
%endif
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
@ -61,24 +48,21 @@ Tomli is a Python library for parsing TOML
%autosetup -p1 -n tomli-%{version} %autosetup -p1 -n tomli-%{version}
%build %build
export PYTHONPATH=$PWD # flit_core requires tomli
export PYTHONPATH=$PWD/src
%pyproject_wheel %pyproject_wheel
%install %install
%if ! %{with test}
%pyproject_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{python_sitelib}/tomli %{python_sitelib}/tomli
%{python_sitelib}/tomli-%{version}*-info %{python_sitelib}/tomli-%{version}*-info
%else
%check
%pytest
%endif
%changelog %changelog

View File

@ -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

Binary file not shown.