14
0
forked from pool/python-tomli

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:
2022-01-23 23:12:14 +00:00
committed by Git OBS Bridge
parent cc5af0d4e7
commit 4640fa4301
4 changed files with 30 additions and 7 deletions

View File

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