commit 36bf84930b04d357d27f94fdc3b0ec852df76bf80a91c4b2e8c09749de45712f Author: Matej Cepl Date: Tue Jul 20 16:22:56 2021 +0000 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ConfigArgParse?expand=0&rev=2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/ConfigArgParse-1.5.1.tar.gz b/ConfigArgParse-1.5.1.tar.gz new file mode 100644 index 0000000..77aac65 --- /dev/null +++ b/ConfigArgParse-1.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:371f46577e76ec71a183b88378f36dd09f4b946f60fe60712f411b020f26b812 +size 38613 diff --git a/python-configargparse.changes b/python-configargparse.changes new file mode 100644 index 0000000..e6b1808 --- /dev/null +++ b/python-configargparse.changes @@ -0,0 +1,124 @@ +------------------------------------------------------------------- +Sun Jul 4 19:52:10 UTC 2021 - Dirk Müller + +- update to 1.5.1: + * no changes file available + +------------------------------------------------------------------- +Tue Jun 8 06:24:49 UTC 2021 - Ferdinand Thiessen + +- Provide PyPi module name + +------------------------------------------------------------------- +Mon Mar 8 22:37:50 UTC 2021 - Dirk Müller + +- update to 1.3: + * Python 3.9 support + +------------------------------------------------------------------- +Wed Jun 10 15:57:44 UTC 2020 - Matej Cepl + +- Remove unnecessary dependency on unittest2 + +------------------------------------------------------------------- +Mon Jun 1 11:01:45 UTC 2020 - pgajdos@suse.com + +- version update to 1.2.3 + * Fixes #179 + * allow use of nargs with action=append (#177) + * Merged ConfigparserConfigFileParser - PR #173 - which adds support + for python's Configparser config file format + +------------------------------------------------------------------- +Thu Apr 23 11:15:11 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +------------------------------------------------------------------- +Thu Feb 20 11:25:43 UTC 2020 - Steve Kowalik + +- Update to 1.0. + * Dash supported as first char of argument + +------------------------------------------------------------------- +Thu Nov 21 15:24:10 CET 2019 - Matej Cepl + +- When setting the environmental variable COLUMNS=80 + test case test_help_with_metavar works again. + gh#bw2/ConfigArgParse#146 + +------------------------------------------------------------------- +Wed Oct 23 13:07:43 UTC 2019 - Marketa Calabkova + +- Update to 0.15.1 + * Drop support for EOL Python 2.6, 3.2-3.3 + * Add Python 3.6 + * sudo no longer needed + * travis: Add latest Python versions. + * Drop support for EOL Python 3.4 + * Fix DeprecationWarning: invalid escape sequence \[ +- dropped skip-test.patch + * https://github.com/bw2/ConfigArgParse/commit/6267759da55c87508394314292c6c5286220d99d + +------------------------------------------------------------------- +Tue Sep 17 09:14:02 UTC 2019 - Tomáš Chvátal + +- Skip failing tests that were reported upstream with no reaction + +------------------------------------------------------------------- +Fri Mar 1 13:20:35 UTC 2019 - Tomáš Chvátal + +- Update to 0.14.0: + * Fixes for python3.6 and 3.7 + * Various lint fixes +- Make sure we run tests +- add patch skip-test.patch that skips test that does not work + in our test enviroment + +------------------------------------------------------------------- +Fri May 18 08:54:47 UTC 2018 - mcepl@suse.com + +- Cleanup SPEC file and add check section + +------------------------------------------------------------------- +Thu Aug 24 13:34:40 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- +Thu Dec 17 17:05:23 UTC 2015 - jweberhofer@weberhofer.at + +- Updated to version 0.10.0 + * config file syntax is now easier to override or extend using the new + constructor arg: config_file_parser (via merged gh#bw2/ConfigArgParse#28 - thanks @lahwaacz ) + * support for python 2.6 (via merged gh#bw2/ConfigArgParse#18 - thanks @kuba ) + * replace dashes with underscores in env. var names when using the + auto-env-var feature (via merged gh#bw2/ConfigArgParse#29 - thanks @helgi ) + +- Fixed download-link and homepage + +- Fixed license + +------------------------------------------------------------------- +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. + +------------------------------------------------------------------- +Wed Mar 4 10:33:38 UTC 2015 - freitag@owncloud.com + +- 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. + +------------------------------------------------------------------- +Tue Mar 3 07:07:25 UTC 2015 - freitag@opensuse.org + +- Initial package release + + diff --git a/python-configargparse.spec b/python-configargparse.spec new file mode 100644 index 0000000..ceb0979 --- /dev/null +++ b/python-configargparse.spec @@ -0,0 +1,79 @@ +# +# spec file for package python-configargparse +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 +Name: python-configargparse +Version: 1.5.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 +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-PyYAML +Requires: python-setuptools +# Provide PyPi module name according to openSUSE singlespec naming policy +Provides: python-ConfigArgParse = %{version} +BuildArch: noarch +%if %{with python2} +BuildRequires: python2-devel +%endif +%python_subpackages + +%description +ConfigArgParse allows options to also be set via config files and/or environment +variables. + +Applications with more than a handful of user-settable options are best configured +through a combination of command line args, config files, hard-coded defaults, and +in some cases, environment variables. + +Python’s command line parsing modules such as argparse have very limited support +for config files and environment variables, so this module extends argparse to +add these features + +%prep +%setup -q -n ConfigArgParse-%{version} + +%build +%python_build + +%install +%python_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)' + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/configargparse* +%{python_sitelib}/ConfigArgParse-%{version}-py*.egg-info +%pycache_only %{python_sitelib}/__pycache__ + +%changelog