Blob Blame History Raw
%global _description %{expand:
Writing a 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

Name:           python-setupmeta
Version:        3.3.2
Release:        %{autorelease}
Summary:        Simplify your

License:        MIT
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

%autosetup -n setupmeta-%{version}

# required to make it not try to self-refer
# this is deliberately in this section instead of %%prep to workaround
rm -rf setupmeta.egg-info


%pyproject_save_files setupmeta

# required for some tests
git config --global ""
git config --global "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