Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-dparse for openSUSE:Factory checked in at 2023-07-03 17:42:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-dparse (Old) and /work/SRC/openSUSE:Factory/.python-dparse.new.13546 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dparse" Mon Jul 3 17:42:14 2023 rev:6 rq:1096324 version:0.6.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-dparse/python-dparse.changes 2022-10-29 20:18:47.426748902 +0200 +++ /work/SRC/openSUSE:Factory/.python-dparse.new.13546/python-dparse.changes 2023-07-03 17:42:16.276536961 +0200 @@ -1,0 +2,7 @@ +Sat Jul 1 20:47:20 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 0.6.3: + * Use the modern tomli/tomllib to parse TOML files. + * Drop Python 3.5 from our CI. + +------------------------------------------------------------------- Old: ---- dparse-0.6.2.tar.gz New: ---- dparse-0.6.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-dparse.spec ++++++ --- /var/tmp/diff_new_pack.q0rEg3/_old 2023-07-03 17:42:16.948540917 +0200 +++ /var/tmp/diff_new_pack.q0rEg3/_new 2023-07-03 17:42:16.952540941 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-dparse # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,11 +16,9 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test -%define skip_python2 1 Name: python-dparse -Version: 0.6.2 +Version: 0.6.3 Release: 0 Summary: Python dependency file parser License: MIT @@ -32,13 +30,13 @@ BuildRequires: python-rpm-macros Requires: python-PyYAML Requires: python-packaging +Requires: (python-tomli if python-base < 3.11) Recommends: python-pipenv BuildArch: noarch %if %{with test} BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module packaging} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module toml} %endif %python_subpackages ++++++ dparse-0.6.2.tar.gz -> dparse-0.6.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dparse-0.6.2/HISTORY.rst new/dparse-0.6.3/HISTORY.rst --- old/dparse-0.6.2/HISTORY.rst 2022-09-19 22:38:01.000000000 +0200 +++ new/dparse-0.6.3/HISTORY.rst 2023-06-26 17:38:13.000000000 +0200 @@ -2,6 +2,12 @@ History ======= +0.6.3 (2023-06-26) +------------------ + +* Use the modern tomli/tomllib to parse TOML files. (thanks @mgorny) +* Drop Python 3.5 from our CI. + 0.6.2 (2022-09-19) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dparse-0.6.2/PKG-INFO new/dparse-0.6.3/PKG-INFO --- old/dparse-0.6.2/PKG-INFO 2022-09-19 22:38:11.193637800 +0200 +++ new/dparse-0.6.3/PKG-INFO 2023-06-26 17:38:24.212697500 +0200 @@ -1,22 +1,23 @@ Metadata-Version: 2.1 Name: dparse -Version: 0.6.2 +Version: 0.6.3 Summary: A parser for Python dependency files Home-page: https://github.com/pyupio/dparse Author: Jannis Gebauer Author-email: supp...@pyup.io License: MIT license Keywords: dparse -Classifier: Development Status :: 2 - Pre-Alpha +Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: MIT License Classifier: Natural Language :: English Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 -Requires-Python: >=3.5 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Requires-Python: >=3.6 Description-Content-Type: text/x-rst Provides-Extra: pipenv Provides-Extra: conda @@ -178,6 +179,12 @@ History ======= +0.6.3 (2023-06-26) +------------------ + +* Use the modern tomli/tomllib to parse TOML files. (thanks @mgorny) +* Drop Python 3.5 from our CI. + 0.6.2 (2022-09-19) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dparse-0.6.2/dparse/__init__.py new/dparse-0.6.3/dparse/__init__.py --- old/dparse-0.6.2/dparse/__init__.py 2022-09-19 22:38:01.000000000 +0200 +++ new/dparse-0.6.3/dparse/__init__.py 2023-06-26 17:38:13.000000000 +0200 @@ -4,6 +4,6 @@ __author__ = """Jannis Gebauer""" __email__ = 'supp...@pyup.io' -__version__ = '0.6.2' +__version__ = '0.6.3' from .parser import parse # noqa diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dparse-0.6.2/dparse/parser.py new/dparse-0.6.3/dparse/parser.py --- old/dparse-0.6.2/dparse/parser.py 2022-09-19 22:38:01.000000000 +0200 +++ new/dparse-0.6.3/dparse/parser.py 2023-06-26 17:38:13.000000000 +0200 @@ -4,6 +4,7 @@ import os from collections import OrderedDict import re +import sys from io import StringIO @@ -17,11 +18,15 @@ from packaging.requirements import Requirement as PackagingRequirement,\ InvalidRequirement from . import filetypes -import toml from packaging.specifiers import SpecifierSet from packaging.version import Version, InvalidVersion import json +if sys.version_info >= (3, 11): + import tomllib +else: + import tomli as tomllib + # this is a backport from setuptools 26.1 def setuptools_parse_requirements_backport(strs): # pragma: no cover @@ -356,7 +361,7 @@ :return: """ try: - data = toml.loads(self.obj.content, _dict=OrderedDict) + data = tomllib.loads(self.obj.content) if data: for package_type in ['packages', 'dev-packages']: if package_type in data: @@ -374,7 +379,7 @@ section=package_type ) ) - except (toml.TomlDecodeError, IndexError): + except (tomllib.TOMLDecodeError, IndexError): pass @@ -443,7 +448,7 @@ Parse a poetry.lock """ try: - data = toml.loads(self.obj.content, _dict=OrderedDict) + data = tomllib.loads(self.obj.content) pkg_key = 'package' if data: try: @@ -471,7 +476,7 @@ section=section ) ) - except (toml.TomlDecodeError, IndexError) as e: + except (tomllib.TOMLDecodeError, IndexError) as e: raise MalformedDependencyFileError(info=str(e)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dparse-0.6.2/dparse/updater.py new/dparse-0.6.3/dparse/updater.py --- old/dparse-0.6.2/dparse/updater.py 2022-09-19 22:38:01.000000000 +0200 +++ new/dparse-0.6.3/dparse/updater.py 2023-06-26 17:38:13.000000000 +0200 @@ -3,8 +3,13 @@ import re import json import tempfile -import toml import os +import sys + +if sys.version_info >= (3, 11): + import tomllib +else: + import tomli as tomllib class RequirementsTXTUpdater(object): @@ -79,7 +84,7 @@ class PipfileUpdater(object): @classmethod def update(cls, content, dependency, version, spec="==", hashes=()): - data = toml.loads(content) + data = tomllib.loads(content) if data: for package_type in ['packages', 'dev-packages']: if package_type in data: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dparse-0.6.2/dparse.egg-info/PKG-INFO new/dparse-0.6.3/dparse.egg-info/PKG-INFO --- old/dparse-0.6.2/dparse.egg-info/PKG-INFO 2022-09-19 22:38:11.000000000 +0200 +++ new/dparse-0.6.3/dparse.egg-info/PKG-INFO 2023-06-26 17:38:24.000000000 +0200 @@ -1,22 +1,23 @@ Metadata-Version: 2.1 Name: dparse -Version: 0.6.2 +Version: 0.6.3 Summary: A parser for Python dependency files Home-page: https://github.com/pyupio/dparse Author: Jannis Gebauer Author-email: supp...@pyup.io License: MIT license Keywords: dparse -Classifier: Development Status :: 2 - Pre-Alpha +Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: MIT License Classifier: Natural Language :: English Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 -Requires-Python: >=3.5 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Requires-Python: >=3.6 Description-Content-Type: text/x-rst Provides-Extra: pipenv Provides-Extra: conda @@ -178,6 +179,12 @@ History ======= +0.6.3 (2023-06-26) +------------------ + +* Use the modern tomli/tomllib to parse TOML files. (thanks @mgorny) +* Drop Python 3.5 from our CI. + 0.6.2 (2022-09-19) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dparse-0.6.2/dparse.egg-info/requires.txt new/dparse-0.6.3/dparse.egg-info/requires.txt --- old/dparse-0.6.2/dparse.egg-info/requires.txt 2022-09-19 22:38:11.000000000 +0200 +++ new/dparse-0.6.3/dparse.egg-info/requires.txt 2023-06-26 17:38:24.000000000 +0200 @@ -1,8 +1,10 @@ packaging -toml + +[:python_version < "3.11"] +tomli [conda] pyyaml [pipenv] -pipenv +pipenv<=2022.12.19 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dparse-0.6.2/setup.py new/dparse-0.6.3/setup.py --- old/dparse-0.6.2/setup.py 2022-09-19 22:38:01.000000000 +0200 +++ new/dparse-0.6.3/setup.py 2023-06-26 17:38:13.000000000 +0200 @@ -13,12 +13,12 @@ requirements = [ "packaging", - "toml", + "tomli; python_version < '3.11'", ] setup( name='dparse', - version='0.6.2', + version='0.6.3', description="A parser for Python dependency files", long_description=readme + '\n\n' + history, long_description_content_type='text/x-rst', @@ -32,19 +32,20 @@ zip_safe=False, keywords='dparse', classifiers=[ - 'Development Status :: 2 - Pre-Alpha', + 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', ], - python_requires=">=3.5", + python_requires=">=3.6", extras_require={ - 'pipenv': ["pipenv"], + 'pipenv': ["pipenv<=2022.12.19"], 'conda': ["pyyaml"] } ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dparse-0.6.2/tests/test_updater.py new/dparse-0.6.3/tests/test_updater.py --- old/dparse-0.6.2/tests/test_updater.py 2022-09-19 22:38:01.000000000 +0200 +++ new/dparse-0.6.3/tests/test_updater.py 2023-06-26 17:38:13.000000000 +0200 @@ -455,12 +455,6 @@ toml = "*" """ - import pipenv.project - monkeypatch.setattr( - pipenv.project.pipfile.Pipfile, - 'find', - lambda max_depth: '/tmp/MockPipFile' - ) dep_file = parse(content=content, file_type=filetypes.pipfile) dep = dep_file.dependencies[0] new_content = PipfileUpdater.update(content, version="2.1", dependency=dep)