Compare commits

..

No commits in common. 'i10ce' and 'i9ce' have entirely different histories.
i10ce ... i9ce

@ -1,118 +1,74 @@
## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 3;
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 pypi_name docopt
Name: python-docopt
Epoch: 1
Version: 0.6.2
Release: %autorelease
Release: 21%{?dist}
Summary: Pythonic argument parser, that will make you smile
License: MIT
URL: https://github.com/docopt/docopt
# PyPI tarball doesn't have tests
Source: %{url}/archive/%{version}/docopt-%{version}.tar.gz
BuildArch: noarch
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
# pytest 6.2+ support
Patch: %{url}/pull/493.patch
%global _description %{expand:
Isn't it awesome how optparse and argparse generate help messages based on your
code?!
Hell no! You know what's awesome? It's when the option parser is generated
based on the beautiful help message that you write yourself! This way you
don't need to write this stupid repeatable parser-code, and instead can write
only the help message--the way you want it.}
Patch1: %{url}/pull/493.patch
BuildArch: noarch
%description %{_description}
%description
Isn't it awesome how optparse and argparse generate help messages
based on your code?!
Hell no! You know what's awesome? It's when the option parser is
generated based on the beautiful help message that you write yourself!
This way you don't need to write thisstupid repeatable parser-code,
and instead can write only the help message--*the way you want it*.
%package -n python3-docopt
%package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-pytest
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-pytest
%description -n python%{python3_pkgversion}-%{pypi_name}
Isn't it awesome how optparse and argparse generate help messages
based on your code?!
%description -n python3-docopt %{_description}
Hell no! You know what's awesome? It's when the option parser is
generated based on the beautiful help message that you write yourself!
This way you don't need to write thisstupid repeatable parser-code,
and instead can write only the help message--*the way you want it*.
Python 3 version.
%prep
%autosetup -n docopt-%{version}
%generate_buildrequires
%pyproject_buildrequires
%autosetup -n %{pypi_name}-%{version}
# A stopgap measure to work with pytest 6.0.
# This will no longer work with pytest 6.1.
echo "[pytest]" >> tox.ini
echo "filterwarnings =" >> tox.ini
echo " ignore::pytest.PytestDeprecationWarning" >> tox.ini
%build
%pyproject_wheel
%py3_build
%install
%pyproject_install
%pyproject_save_files docopt
%py3_install
%check
%pytest
py.test-%{python3_version} -v
%files -n python3-docopt -f %{pyproject_files}
%files -n python%{python3_pkgversion}-%{pypi_name}
%license LICENSE-MIT
%doc README.rst
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%{python3_sitelib}/%{pypi_name}.py
%{python3_sitelib}/__pycache__/%{pypi_name}.*
%changelog
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.6.2-3
- Rebuilt for MSVSphere 10
## START: Generated by rpmautospec
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.6.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1:0.6.2-2
- Rebuilt for Python 3.13
* Wed Mar 06 2024 Carl George <carlwgeorge@fedoraproject.org> - 1:0.6.2-1
- Switch back to the old docopt upstream
- Related: rhbz#2267060
* Sat Mar 02 2024 Carl George <carlwgeorge@fedoraproject.org> - 0.9.0-1
- Switch to docopt-ng upstream rhbz#2267060
- Convert to pyproject macros
- Confirmed SPDX license identifier
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.6.2-26
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.6.2-23
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sun Jul 28 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 0.6.2-21
- Rebuilt for MSVSphere 9.4
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-21
- Second attempt - Rebuilt for
@ -218,4 +174,3 @@ BuildRequires: python3-pytest
* Mon Jan 14 2013 Martin Sivak <msivak@redhat.com> - 0.5.0-1
- Initial release
## END: Generated by rpmautospec

Loading…
Cancel
Save