## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # We do not build Sphinx documentation because current versions of # python-autoclasstoc bring in a large tree of unpackaged dependencies via the # python-parametrized-from-file test dependency, so we have elected to retire # rather than upgrade python-autoclasstoc. Name: python-signature-dispatch Version: 1.0.1 Release: %autorelease Summary: Overload functions based on their call signature and type annotations # SPDX License: MIT URL: https://github.com/kalekundert/signature_dispatch Source: %{pypi_source signature_dispatch} # Migrate to typeguard v4.0 # https://github.com/kalekundert/signature_dispatch/pull/5 # Rebased on the PyPI sdist, which has different whitespace in pyproject.toml, # and version specification loosened to allow rc3 or later. Patch: typeguard-v4.patch # Use flit_core as the build backend # # Don’t require all of flit to build a wheel. Patch: %{url}/pull/6.patch BuildArch: noarch BuildRequires: python3-devel %global common_description %{expand: This package provides a simple python library for overloading functions based on their call signature and type annotations.} %description %{common_description} %package -n python3-signature-dispatch Summary: %{summary} Obsoletes: python-signature-dispatch-doc < 1.0.0-4 %description -n python3-signature-dispatch %{common_description} %prep %autosetup -n signature_dispatch-%{version} -p1 # Patch out coverage dependencies sed -r -i '/\b(pytest-cov|coveralls)\b/d' pyproject.toml # Remove useless shebang lines. # # Originally sent upstream, # https://github.com/kalekundert/signature_dispatch/pull/2, but this author # wants to keep them; see: # https://github.com/kalekundert/autoprop/pull/8#issuecomment-1008057715 # # Script version instead of patch for forward-compatibility. # # The find-then-modify pattern keeps us from discarding mtimes on any sources # that do not need modification. find . -type f -name '*.py' -exec \ gawk '/^#!/ { print FILENAME }; { nextfile }' '{}' '+' | xargs -r -t sed -r -i '1{/^#!/d}' %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files signature_dispatch %check %pytest tests %files -n python3-signature-dispatch -f %{pyproject_files} %license LICENSE.txt %doc README.rst %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Benjamin A. Beasley - 1.0.1-7 - Use flit_core as the build backend * Fri Jan 26 2024 Fedora Release Engineering - 1.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 1.0.1-3 - Rebuilt for Python 3.12 * Sun Jun 18 2023 Benjamin A. Beasley - 1.0.1-2 - Patch for typeguard v4 * Sun Jun 18 2023 Benjamin A. Beasley - 1.0.1-1 - Update to 1.0.1 * Fri Jan 20 2023 Fedora Release Engineering - 1.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Nov 27 2022 Benjamin A. Beasley - 1.0.0-7 - Confirm License is SPDX MIT * Fri Jul 22 2022 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.0.0-5 - Rebuilt for Python 3.11 * Fri Mar 11 2022 Benjamin A. Beasley - 1.0.0-4 - Completely disable documentation * Fri Mar 11 2022 Benjamin A. Beasley - 1.0.0-3 - Convert shebang removal from patch to script * Wed Mar 02 2022 Benjamin A. Beasley - 1.0.0-2 - Drop unnecessary python3-docs BR * Wed Mar 02 2022 Benjamin A. Beasley - 1.0.0-1 - Initial package (close RHBZ#2038259) ## END: Generated by rpmautospec