Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| a36808e736 | |||
| 337714739d |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:27bb8b4bcaefec3997697ba3f6e06b2447200ba273c0b085c3d012a04571b528
|
|
||||||
size 20316
|
|
||||||
3
dparse-0.6.4.tar.gz
Normal file
3
dparse-0.6.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:90b29c39e3edc36c6284c82c4132648eaf28a01863eb3c231c2512196132201a
|
||||||
|
size 27912
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
From a3d83e8bdfd694e873b5775881ab5aa62fdbb674 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mathieu Dupuy <deronnax@gmail.com>
|
|
||||||
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'
|
|
||||||
@@ -1,3 +1,29 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 12 08:40:35 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- 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 <steven.kowalik@suse.com>
|
Mon Jan 15 05:33:37 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -18,14 +18,13 @@
|
|||||||
|
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
Name: python-dparse
|
Name: python-dparse
|
||||||
Version: 0.6.3
|
Version: 0.6.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python dependency file parser
|
Summary: Python dependency file parser
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/jayfk/dparse
|
URL: https://github.com/jayfk/dparse
|
||||||
Source: https://files.pythonhosted.org/packages/source/d/dparse/dparse-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/d/dparse/dparse-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM gh#pyupio/dparse#a3d83e8bdfd694e873b5775881ab5aa62fdbb674
|
BuildRequires: %{python_module hatchling}
|
||||||
Patch0: fix-configparser-parsing.patch
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
|||||||
Reference in New Issue
Block a user