From 337714739d268b4b22d0d69e5d26f6d5917e7370996d7504290c43634bb3808c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 12 Nov 2024 09:36:35 +0000 Subject: [PATCH] Accepting request 1223561 from home:glaubitz:branches:devel:languages:python - Update to 0.6.4 * Fix "AttributeError: SafeConfigParser instance has no attribute 'values'" * Support poetry.lock version >= 1.5 * Add pyproject parser * Test pyproject parser * Add to readme * Remove python2-ism in the code * Migrate to pyproject.toml * Maybe you don't even need build-system * Add and fix workflows * Replace ConfigParser's 'readfp' by 'read_string' * Run tests on PR events * Trigger label check on fork PRs * ci(.github): revamp workflows and add hatch * perf(.github): prepare release workflows * perf(pyproject.toml): Set the start version of the new dparse release * ci(ci.yml): Set SLUG to release when the correct even is triggered * docs(CHANGELOG.md): Reset CHANGELOG.md * build(pyproject.toml): Fix steps for changelog generation * ci(release.yml): Download artifact from another workflow - Add python-hatchling to BuildRequires - Drop fix-configparser-parsing.patch, merged upstream OBS-URL: https://build.opensuse.org/request/show/1223561 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dparse?expand=0&rev=17 --- dparse-0.6.3.tar.gz | 3 --- dparse-0.6.4.tar.gz | 3 +++ fix-configparser-parsing.patch | 42 ---------------------------------- python-dparse.changes | 26 +++++++++++++++++++++ python-dparse.spec | 5 ++-- 5 files changed, 31 insertions(+), 48 deletions(-) delete mode 100644 dparse-0.6.3.tar.gz create mode 100644 dparse-0.6.4.tar.gz delete mode 100644 fix-configparser-parsing.patch diff --git a/dparse-0.6.3.tar.gz b/dparse-0.6.3.tar.gz deleted file mode 100644 index e9dba25..0000000 --- a/dparse-0.6.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:27bb8b4bcaefec3997697ba3f6e06b2447200ba273c0b085c3d012a04571b528 -size 20316 diff --git a/dparse-0.6.4.tar.gz b/dparse-0.6.4.tar.gz new file mode 100644 index 0000000..ba27ab6 --- /dev/null +++ b/dparse-0.6.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90b29c39e3edc36c6284c82c4132648eaf28a01863eb3c231c2512196132201a +size 27912 diff --git a/fix-configparser-parsing.patch b/fix-configparser-parsing.patch deleted file mode 100644 index 4090f86..0000000 --- a/fix-configparser-parsing.patch +++ /dev/null @@ -1,42 +0,0 @@ -From a3d83e8bdfd694e873b5775881ab5aa62fdbb674 Mon Sep 17 00:00:00 2001 -From: Mathieu Dupuy -Date: Fri, 8 Sep 2023 11:49:00 +0200 -Subject: [PATCH] replace ConfigParser's 'readfp' by 'read_string' - -fixes "DeprecationWarning: This method will be removed in Python 3.12. Use -parser.read_file instead", and will marginally improve performance ---- - dparse/parser.py | 6 ++---- - 1 file changed, 2 insertions(+), 4 deletions(-) - -diff --git a/dparse/parser.py b/dparse/parser.py -index f200607..923b362 100644 ---- a/dparse/parser.py -+++ b/dparse/parser.py -@@ -3,8 +3,6 @@ - import re - import sys - --from io import StringIO -- - from configparser import ConfigParser, NoOptionError - from pathlib import PurePath - -@@ -305,7 +303,7 @@ def parse(self): - :return: - """ - parser = ConfigParser() -- parser.readfp(StringIO(self.obj.content)) -+ parser.read_string(self.obj.content) - for section in parser.sections(): - try: - content = parser.get(section=section, option="deps") -@@ -413,7 +411,7 @@ def parse(self): - class SetupCfgParser(Parser): - def parse(self): - parser = ConfigParser() -- parser.readfp(StringIO(self.obj.content)) -+ parser.read_string(self.obj.content) - for section in parser.values(): - if section.name == 'options': - options = 'install_requires', 'setup_requires', 'test_require' diff --git a/python-dparse.changes b/python-dparse.changes index aeffb13..11f0c09 100644 --- a/python-dparse.changes +++ b/python-dparse.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Tue Nov 12 08:40:35 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 0.6.4 + * Fix "AttributeError: SafeConfigParser instance has no attribute 'values'" + * Support poetry.lock version >= 1.5 + * Add pyproject parser + * Test pyproject parser + * Add to readme + * Remove python2-ism in the code + * Migrate to pyproject.toml + * Maybe you don't even need build-system + * Add and fix workflows + * Replace ConfigParser's 'readfp' by 'read_string' + * Run tests on PR events + * Trigger label check on fork PRs + * ci(.github): revamp workflows and add hatch + * perf(.github): prepare release workflows + * perf(pyproject.toml): Set the start version of the new dparse release + * ci(ci.yml): Set SLUG to release when the correct even is triggered + * docs(CHANGELOG.md): Reset CHANGELOG.md + * build(pyproject.toml): Fix steps for changelog generation + * ci(release.yml): Download artifact from another workflow +- Add python-hatchling to BuildRequires +- Drop fix-configparser-parsing.patch, merged upstream + ------------------------------------------------------------------- Mon Jan 15 05:33:37 UTC 2024 - Steve Kowalik diff --git a/python-dparse.spec b/python-dparse.spec index e554f04..1857b21 100644 --- a/python-dparse.spec +++ b/python-dparse.spec @@ -18,14 +18,13 @@ %bcond_without test Name: python-dparse -Version: 0.6.3 +Version: 0.6.4 Release: 0 Summary: Python dependency file parser License: MIT URL: https://github.com/jayfk/dparse Source: https://files.pythonhosted.org/packages/source/d/dparse/dparse-%{version}.tar.gz -# PATCH-FIX-UPSTREAM gh#pyupio/dparse#a3d83e8bdfd694e873b5775881ab5aa62fdbb674 -Patch0: fix-configparser-parsing.patch +BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel}