1
0

8 Commits

Author SHA256 Message Date
517a4f5a65 Accepting request 1321556 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1321556
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ConfigArgParse?expand=0&rev=8
2025-12-09 11:49:52 +00:00
7597a0c339 - Update to 1.7.1
* The primary purpose of this release is to fix the package
    metadata on supported python versions.
- Adjust upstream source name in spec file
- Drop py313-tests.patch, fixed upstream
- Update Requires from setup.py

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ConfigArgParse?expand=0&rev=20
2025-12-08 11:41:38 +00:00
5c3cff44d9 Accepting request 1274651 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1274651
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ConfigArgParse?expand=0&rev=7
2025-05-05 20:29:52 +00:00
2e4a34144d - Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ConfigArgParse?expand=0&rev=18
2025-05-05 15:02:39 +00:00
4bad4c1063 Accepting request 1219174 from devel:languages:python
- add py313-skip-exit.patch, py313-tests.patch
- skip one more test

  * no upstream changelog available
  * no changes file available
  * Python 3.9 support
- Use full link to source.
- Some minor cleanups.
- Update to upstream version 0.9.3 to make mitmproxy work.
- Initial package release

OBS-URL: https://build.opensuse.org/request/show/1219174
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ConfigArgParse?expand=0&rev=6
2024-10-30 16:36:17 +00:00
f5641ed3d2 - skip one more test
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ConfigArgParse?expand=0&rev=16
2024-10-29 20:12:38 +00:00
1adce7e712 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ConfigArgParse?expand=0&rev=15 2024-10-29 20:12:25 +00:00
c56ea9a663 - add py313-skip-exit.patch, py313-tests.patch
* no upstream changelog available
  * no changes file available
  * Python 3.9 support
- Use full link to source.
- Some minor cleanups.
- Update to upstream version 0.9.3 to make mitmproxy work.
- Initial package release

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ConfigArgParse?expand=0&rev=14
2024-10-29 20:09:54 +00:00
5 changed files with 67 additions and 19 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e7067471884de5478c58a511e529f0f9bd1c66bfef1dea90935438d6c23306d1
size 43817

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:79c2ddae836a1e5914b71d58e4b9adbd9f7779d4e6351a637b7d2d9b6c46d3d9
size 43958

26
py313-skip-exit.patch Normal file
View File

@@ -0,0 +1,26 @@
From 5e9f442374bc6d9707a43df13aaff684dff6b535 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Fri, 12 Jul 2024 08:25:30 +0200
Subject: [PATCH] skip exit_on_error* tests to fix 3.13 test failures
Skip `exit_on_error*` tests from `test.test_argparse` to avoid test
failures on Python 3.13. The `exit_on_error=False` semantics
is not supported by ConfigArgParse at the moment.
---
tests/test_configargparse.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/test_configargparse.py b/tests/test_configargparse.py
index e325afd1..9718d862 100644
--- a/tests/test_configargparse.py
+++ b/tests/test_configargparse.py
@@ -1533,7 +1533,8 @@ def testYAMLConfigFileParser_w_ArgumentParser_parsed_values(self):
test_argparse_source_code = test_argparse_source_code.replace(
'argparse.ArgumentParser', 'configargparse.ArgumentParser').replace(
'TestHelpFormattingMetaclass', '_TestHelpFormattingMetaclass').replace(
- 'test_main', '_test_main')
+ 'test_main', '_test_main').replace(
+ 'test_exit_on_error', '_test_exit_on_error')
# pytest tries to collect tests from TestHelpFormattingMetaclass, and
# test_main, and raises a warning when it finds it's not a test class

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Thu Dec 4 09:37:33 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.7.1
* The primary purpose of this release is to fix the package
metadata on supported python versions.
- Adjust upstream source name in spec file
- Drop py313-tests.patch, fixed upstream
- Update Requires from setup.py
-------------------------------------------------------------------
Mon May 5 13:07:22 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Tue Oct 29 20:09:28 UTC 2024 - Dirk Müller <dmueller@suse.com>
- add py313-skip-exit.patch, py313-tests.patch
- skip one more test
-------------------------------------------------------------------
Wed Jul 26 15:58:19 UTC 2023 - Dirk Müller <dmueller@suse.com>
@@ -9,7 +30,7 @@ Wed Jul 26 15:58:19 UTC 2023 - Dirk Müller <dmueller@suse.com>
Sat Jul 1 20:41:52 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.5.5:
* no upstream changelog available
* no upstream changelog available
-------------------------------------------------------------------
Mon Jun 12 05:37:34 UTC 2023 - ecsos <ecsos@opensuse.org>
@@ -32,7 +53,7 @@ Tue Jul 20 17:28:18 UTC 2021 - Matej Cepl <mcepl@suse.com>
Sun Jul 4 19:52:10 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 1.5.1:
* no changes file available
* no changes file available
-------------------------------------------------------------------
Tue Jun 8 06:24:49 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
@@ -43,7 +64,7 @@ Tue Jun 8 06:24:49 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
Mon Mar 8 22:37:50 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 1.3:
* Python 3.9 support
* Python 3.9 support
-------------------------------------------------------------------
Wed Jun 10 15:57:44 UTC 2020 - Matej Cepl <mcepl@suse.com>
@@ -134,21 +155,21 @@ Mon Mar 9 15:30:11 UTC 2015 - freitag@owncloud.com
- Add LICENSE file to doc section of the package
- Use python-setuptools as dependency
- Use full link to source.
- Use full link to source.
-------------------------------------------------------------------
Wed Mar 4 10:33:38 UTC 2015 - freitag@owncloud.com
- Some minor cleanups.
- Some minor cleanups.
-------------------------------------------------------------------
Wed Mar 4 09:49:46 UTC 2015 - freitag@owncloud.com
- Update to upstream version 0.9.3 to make mitmproxy work.
- Update to upstream version 0.9.3 to make mitmproxy work.
-------------------------------------------------------------------
Tue Mar 3 07:07:25 UTC 2015 - freitag@opensuse.org
- Initial package release
- Initial package release

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-ConfigArgParse
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,20 +18,21 @@
%{?sle15_python_module_pythons}
Name: python-ConfigArgParse
Version: 1.7
Version: 1.7.1
Release: 0
Summary: A drop-in replacement for argparse
License: MIT
Group: Development/Languages/Python
URL: https://github.com/bw2/ConfigArgParse
Source: https://files.pythonhosted.org/packages/source/C/ConfigArgParse/ConfigArgParse-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/c/configargparse/configargparse-%{version}.tar.gz
Patch1: https://github.com/bw2/ConfigArgParse/pull/295/commits/5e9f442374bc6d9707a43df13aaff684dff6b535.patch#/py313-skip-exit.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-setuptools
# Old name of the package
Provides: python-configargparse = %{version}-%{release}
Obsoletes: python-configargparse < %{version}-%{release}
@@ -51,25 +52,25 @@ for config files and environment variables, so this module extends argparse to
add these features
%prep
%setup -q -n ConfigArgParse-%{version}
%autosetup -p1 -n configargparse-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# https://github.com/bw2/ConfigArgParse/issues/146
export COLUMNS=80
%pytest -k 'not (test_main or testGlobalInstances or testGlobalInstances_WithName or testConfigOrEnvValueErrors)'
%pytest -k 'not (test_main or testGlobalInstances or testGlobalInstances_WithName or testConfigOrEnvValueErrors or testMutuallyExclusiveArgs)'
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/configargparse*
%{python_sitelib}/ConfigArgParse-%{version}-py*.egg-info
%{python_sitelib}/[Cc]onfig[Aa]rg[Pp]arse-%{version}*info
%pycache_only %{python_sitelib}/__pycache__
%changelog