%global srcname easyargs %global _description %{expand: A project designed to make command line argument parsing easy. There are many ways to create a command line parser in python: argparse, docopt, click. These are all great options, but require quite a lot of configuration and sometimes you just need a function to be called. Enter easyargs. Define the function that you want to be called, decorate it and let easyargs work out the command line.} %bcond_without tests Name: python-%{srcname} Version: 0.9.4 Release: 25%{?dist} Summary: Making argument parsing easy License: MIT URL: https://github.com/stedmeister/easyargs Source: %pypi_source # https://github.com/stedmeister/easyargs/pull/17 Patch: 0001-Multiline-docstrings-now-have-a-space-between-them-i.patch # https://github.com/stedmeister/easyargs/pull/18 Patch: 0002-Use-standard-library-mock-when-available.patch # https://github.com/stedmeister/easyargs/pull/19 Patch: 0003-Add-support-for-Python-3.6-through-3.11.patch BuildArch: noarch BuildRequires: python3-devel %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %autosetup -p 1 -n %{srcname}-%{version} find -name \*.py | xargs sed -i -e '1 {/^#!/d}' %generate_buildrequires %pyproject_buildrequires %{?with_tests:-x test} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %if %{with tests} %pytest %else %pyproject_check_import %endif %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst %changelog * Fri Jan 26 2024 Fedora Release Engineering - 0.9.4-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.9.4-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.9.4-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.9.4-22 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.9.4-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.9.4-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.9.4-19 - Rebuilt for Python 3.11 * Wed Apr 20 2022 Carl George - 0.9.4-18 - Convert to pyproject macros - Backport multiline docstring fix https://github.com/stedmeister/easyargs/pull/17 - Remove mock build depencency https://github.com/stedmeister/easyargs/pull/18 - Fix Python 3.11 FTBFS (resolves: rhbz#2021898) * Fri Jan 21 2022 Fedora Release Engineering - 0.9.4-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 0.9.4-16 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.9.4-15 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.9.4-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.9.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.9.4-12 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.9.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.9.4-10 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.9.4-9 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.9.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.9.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Sep 19 2018 Carl George - 0.9.4-6 - Disable python2 subpackage on F30+ * Sat Jul 14 2018 Fedora Release Engineering - 0.9.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.9.4-4 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.9.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 17 2017 Carl George - 0.9.4-2 - Correct misplaced six requirement * Thu Jul 06 2017 Carl George - 0.9.4-1 - Initial package