474ffe8
Name:           python-docopt
dfce485
Epoch:          1
dfce485
Version:        0.6.2
617a436
Release:        %autorelease
dfce485
Summary:        Pythonic argument parser, that will make you smile
474ffe8
License:        MIT
dfce485
URL:            https://github.com/docopt/docopt
dfce485
# PyPI tarball doesn't have tests
dfce485
Source:         %{url}/archive/%{version}/docopt-%{version}.tar.gz
b951e33
BuildArch:      noarch
3ddaa52
dfce485
# pytest 6.2+ support
dfce485
Patch:          %{url}/pull/493.patch
dfce485
b951e33
%global _description %{expand:
dfce485
Isn't it awesome how optparse and argparse generate help messages based on your
dfce485
code?!
dfce485
dfce485
Hell no! You know what's awesome? It's when the option parser is generated
dfce485
based on the beautiful help message that you write yourself!  This way you
dfce485
don't need to write this stupid repeatable parser-code, and instead can write
dfce485
only the help message--the way you want it.}
ef24840
3ddaa52
b951e33
%description %{_description}
8e0ed26
474ffe8
b951e33
%package -n python3-docopt
0ab52bf
Summary:        %{summary}
b951e33
BuildRequires:  python3-devel
b951e33
BuildRequires:  python3-pytest
3ddaa52
8e0ed26
b951e33
%description -n python3-docopt %{_description}
474ffe8
474ffe8
3ddaa52
%prep
dfce485
%autosetup -n docopt-%{version}
b951e33
b951e33
b951e33
%generate_buildrequires
b951e33
%pyproject_buildrequires
8e0ed26
64e8dce
474ffe8
%build
b951e33
%pyproject_wheel
b951e33
8e0ed26
474ffe8
%install
b951e33
%pyproject_install
b951e33
%pyproject_save_files docopt
b951e33
474ffe8
8e0ed26
%check
b951e33
%pytest
8e0ed26
b951e33
b951e33
%files -n python3-docopt -f %{pyproject_files}
3ddaa52
%license LICENSE-MIT
dfce485
%doc README.rst
b951e33
474ffe8
474ffe8
%changelog
617a436
%autochangelog