Accepting request 948283 from home:mcepl:branches:devel:languages:python
- 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. OBS-URL: https://build.opensuse.org/request/show/948283 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomli?expand=0&rev=9
This commit is contained in:
parent
cc5af0d4e7
commit
4640fa4301
@ -1,3 +1,26 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 20 20:10:07 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- 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 <code@bnavigator.de>
|
Fri Oct 15 19:03:22 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -27,13 +27,13 @@
|
|||||||
%{?!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%{psuffix}
|
||||||
Version: 1.2.1
|
Version: 2.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A lil' TOML parser
|
Summary: A lil' TOML parser
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/hukkin/tomli
|
URL: https://github.com/hukkin/tomli
|
||||||
# prefer github archive over pypi sdist for pacakged tests
|
# 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 flit-core}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
# Avoid build cycles
|
# Avoid build cycles
|
||||||
@ -58,7 +58,7 @@ BuildArch: noarch
|
|||||||
Tomli is a Python library for parsing TOML
|
Tomli is a Python library for parsing TOML
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n tomli-%{version}
|
%autosetup -p1 -n tomli-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export PYTHONPATH=$PWD
|
export PYTHONPATH=$PWD
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:cde735c06dc89a94a6c3d44161dca9eeb1c95ebe681b9b8c4ff94d910bf7d141
|
|
||||||
size 122701
|
|
3
tomli-2.0.0.tar.gz
Normal file
3
tomli-2.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:951c25b98f1ac8d6f08c473459ec5d049f9e1ae82903d86046514664e956e27f
|
||||||
|
size 123262
|
Loading…
Reference in New Issue
Block a user