diff --git a/python-tomli.changes b/python-tomli.changes index 08ca7c2..97b6aa4 100644 --- a/python-tomli.changes +++ b/python-tomli.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Thu Jan 20 20:10:07 UTC 2022 - Matej Cepl + +- Upgrade to 2.0.0: + - Removed Python 3.6 support + - Support for text file objects as load input. Use binary file + objects instead. + - First argument of load and loads can no longer be passed by + keyword. + - Allow lower case "t" and "z" in datetimes + - Raise an error when dotted keys define values outside the + "current table". Technically speaking TOML v1.0.0 does allow + such assignments but that isn't intended by specification + writers, and will change in a future specification version + (see the pull request). + - Illegal characters in error messages were surrounded by two + pairs of quotation marks + - TOMLDecodeError.__module__ is now the public import path + (tomli) instead of private import path (tomli._parser) + - Eliminated an import cycle when typing.TYPE_CHECKING is + True. This allows sphinx-autodoc-typehints to resolve type + annotations. + ------------------------------------------------------------------- Fri Oct 15 19:03:22 UTC 2021 - Ben Greiner diff --git a/python-tomli.spec b/python-tomli.spec index 2a7a537..53da8cb 100644 --- a/python-tomli.spec +++ b/python-tomli.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,13 +27,13 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-tomli%{psuffix} -Version: 1.2.1 +Version: 2.0.0 Release: 0 Summary: A lil' TOML parser License: MIT URL: https://github.com/hukkin/tomli # prefer github archive over pypi sdist for pacakged tests -Source: https://github.com/hukkin/tomli/archive/refs/tags/%{version}.tar.gz#/tomli-%{version}-gh.tar.gz +Source: https://github.com/hukkin/tomli/archive/refs/tags/%{version}.tar.gz#/tomli-%{version}.tar.gz BuildRequires: %{python_module flit-core} BuildRequires: %{python_module pip} # Avoid build cycles @@ -58,7 +58,7 @@ BuildArch: noarch Tomli is a Python library for parsing TOML %prep -%setup -q -n tomli-%{version} +%autosetup -p1 -n tomli-%{version} %build export PYTHONPATH=$PWD diff --git a/tomli-1.2.1-gh.tar.gz b/tomli-1.2.1-gh.tar.gz deleted file mode 100644 index a3dd36d..0000000 --- a/tomli-1.2.1-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cde735c06dc89a94a6c3d44161dca9eeb1c95ebe681b9b8c4ff94d910bf7d141 -size 122701 diff --git a/tomli-2.0.0.tar.gz b/tomli-2.0.0.tar.gz new file mode 100644 index 0000000..75087ce --- /dev/null +++ b/tomli-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:951c25b98f1ac8d6f08c473459ec5d049f9e1ae82903d86046514664e956e27f +size 123262