## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; 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 %global _description %{expand: Writing a setup.py typically involves lots of boilerplate and copy-pasting from project to project. This package aims to simplify that and bring some DRY principle to python packaging.} Name: python-setupmeta Version: 3.3.2 Release: %{autorelease} Summary: Simplify your setup.py License: MIT URL: https://pypi.org/pypi/setupmeta Source0: %{pypi_source setupmeta} BuildArch: noarch %description %_description %package -n python3-setupmeta Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-pep440 BuildRequires: python3-setuptools_scm BuildRequires: git-core %description -n python3-setupmeta %_description %prep %autosetup -n setupmeta-%{version} %generate_buildrequires # required to make it not try to self-refer # this is deliberately in this section instead of %%prep to workaround # https://github.com/rpm-software-management/mock/issues/1246 rm -rf setupmeta.egg-info %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files setupmeta %check # required for some tests git config --global user.email "you@example.com" git config --global user.name "Your Name" # test_check_dependencies: requires a virtualenv # test_version: requires a full git based project with their versioning scheme # test_scenario: ditto %{pytest} -k "not test_check_dependencies and not test_version and not test_scenario" %files -n python3-setupmeta -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 3.3.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.3.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Oct 18 2023 Miro HronĨok - 3.3.2-7 - Do not generate bogus self-dependency in the SRPM metadata * Fri Jul 21 2023 Fedora Release Engineering - 3.3.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 3.3.2-5 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 3.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Oct 31 2022 Ankur Sinha (Ankur Sinha Gmail) - 3.3.2-3 - feat: check in sources * Fri Oct 21 2022 Ankur Sinha (Ankur Sinha Gmail) - 3.3.2-2 - feat: ready for review * Sun Oct 16 2022 Ankur Sinha (Ankur Sinha Gmail) - 3.3.2-1 - chore: init ## END: Generated by rpmautospec