diff --git a/_multibuild b/_multibuild deleted file mode 100644 index fcc7b97..0000000 --- a/_multibuild +++ /dev/null @@ -1,3 +0,0 @@ - - test - diff --git a/python-tomli.changes b/python-tomli.changes index 97b6aa4..3a264fb 100644 --- a/python-tomli.changes +++ b/python-tomli.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Fri Feb 25 11:15:48 UTC 2022 - Ferdinand Thiessen + +- 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 diff --git a/python-tomli.spec b/python-tomli.spec index 53da8cb..9b1ea0b 100644 --- a/python-tomli.spec +++ b/python-tomli.spec @@ -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 diff --git a/tomli-2.0.0.tar.gz b/tomli-2.0.0.tar.gz deleted file mode 100644 index 75087ce..0000000 --- a/tomli-2.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:951c25b98f1ac8d6f08c473459ec5d049f9e1ae82903d86046514664e956e27f -size 123262 diff --git a/tomli-2.0.1.tar.gz b/tomli-2.0.1.tar.gz new file mode 100644 index 0000000..48a17b0 --- /dev/null +++ b/tomli-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad22dbc128623e0c156ffaff019f29f456eba8a5d5a05164dd34f63e560449df +size 133685