From bc10b8fda3a88faa7f7ec2bcab508eee4f881718 Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Nov 14 2021 00:09:03 +0000 Subject: Update to 0.3.1 - Adopt pyproject-rpm-macros - Adopt rpmautospec - Apply onliner patch for python-3.10 - Enable tests --- diff --git a/.gitignore b/.gitignore index 02cd42b..30fe041 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /0.1.15.tar.gz /0.2.2.tar.gz +/0.3.1.tar.gz diff --git a/changelog b/changelog new file mode 100644 index 0000000..30c7e9e --- /dev/null +++ b/changelog @@ -0,0 +1,65 @@ +* Fri Jul 23 2021 Fedora Release Engineering - 0.2.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 0.2.2-13 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.2.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.2.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 0.2.2-10 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.2.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.2.2-8 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.2.2-7 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.2.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.2.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Sep 11 2018 Brian C. Lane - 0.2.2-4 +- Remove python2 package from build (#1627431) + +* Sat Jul 14 2018 Fedora Release Engineering - 0.2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.2.2-2 +- Rebuilt for Python 3.7 + +* Fri May 11 2018 Brian C. Lane - 0.2.2-1 +- Update to new upstream release + +* Fri Feb 09 2018 Iryna Shcherbina - 0.1.15-7 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Igor Gnatenko - 0.1.15-6 +- Escape macros in %%changelog + +* Thu Jul 27 2017 Fedora Release Engineering - 0.1.15-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.1.15-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.1.15-3 +- Rebuild for Python 3.6 + +* Tue Feb 02 2016 Brian C. Lane 0.1.15-2 +- Fix description typo +- Drop %%check section, upstream uses tox for testing. + +* Mon Feb 01 2016 Brian C. Lane 0.1.15-1 +- Initial creation + diff --git a/python-sphinx-argparse.spec b/python-sphinx-argparse.spec index 97a0c4e..6788898 100644 --- a/python-sphinx-argparse.spec +++ b/python-sphinx-argparse.spec @@ -2,107 +2,52 @@ %global sum Sphinx extension that automatically documents argparse commands and options Name: python-%{srcname} -Version: 0.2.2 -Release: 14%{?dist} +Version: 0.3.1 +Release: %autorelease Summary: %{sum} BuildArch: noarch License: MIT -Url: https://github.com/ribozz/%{srcname}/ -Source0: https://github.com/ribozz/%{srcname}/archive/%{version}.tar.gz +Url: https://github.com/ashb/sphinx-argparse +Source0: https://github.com/ashb/sphinx-argparse/archive/%{version}.tar.gz -BuildRequires: python3-devel python3-setuptools +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +# for checks +BuildRequires: python3-pytest +BuildRequires: python3-six %description Sphinx extension that automatically documents argparse commands and options %package -n python3-%{srcname} -Requires: python3-sphinx -BuildRequires: python3-sphinx Summary: %{sum} -%{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} Sphinx extension that automatically documents argparse commands and options - %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} +# Required for python-3.10 +# https://github.com/ashb/sphinx-argparse/pull/3 +sed -i -e "s/'optional arguments':/'optional arguments' or action_group.title == 'options':/" sphinxarg/parser.py + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files sphinxarg + +%check +%pytest -%files -n python3-%{srcname} +%files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.md -%{python3_sitelib}/* %changelog -* Fri Jul 23 2021 Fedora Release Engineering - 0.2.2-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 0.2.2-13 -- Rebuilt for Python 3.10 - -* Wed Jan 27 2021 Fedora Release Engineering - 0.2.2-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Jul 29 2020 Fedora Release Engineering - 0.2.2-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue May 26 2020 Miro Hrončok - 0.2.2-10 -- Rebuilt for Python 3.9 - -* Thu Jan 30 2020 Fedora Release Engineering - 0.2.2-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Oct 03 2019 Miro Hrončok - 0.2.2-8 -- Rebuilt for Python 3.8.0rc1 (#1748018) - -* Mon Aug 19 2019 Miro Hrončok - 0.2.2-7 -- Rebuilt for Python 3.8 - -* Fri Jul 26 2019 Fedora Release Engineering - 0.2.2-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sat Feb 02 2019 Fedora Release Engineering - 0.2.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Tue Sep 11 2018 Brian C. Lane - 0.2.2-4 -- Remove python2 package from build (#1627431) - -* Sat Jul 14 2018 Fedora Release Engineering - 0.2.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Tue Jun 19 2018 Miro Hrončok - 0.2.2-2 -- Rebuilt for Python 3.7 - -* Fri May 11 2018 Brian C. Lane - 0.2.2-1 -- Update to new upstream release - -* Fri Feb 09 2018 Iryna Shcherbina - 0.1.15-7 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Fri Feb 09 2018 Igor Gnatenko - 0.1.15-6 -- Escape macros in %%changelog - -* Thu Jul 27 2017 Fedora Release Engineering - 0.1.15-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 0.1.15-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Mon Dec 19 2016 Miro Hrončok - 0.1.15-3 -- Rebuild for Python 3.6 - -* Tue Feb 02 2016 Brian C. Lane 0.1.15-2 -- Fix description typo -- Drop %%check section, upstream uses tox for testing. - -* Mon Feb 01 2016 Brian C. Lane 0.1.15-1 -- Initial creation - +%autochangelog diff --git a/sources b/sources index 5e76d78..9a17f2b 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ SHA512 (0.2.2.tar.gz) = 2883238fa01a5b113d4a10c807e4e6cad35e6299b1473665bc707703439a70d0f68ea16eb6fe4efa0f5f870f4a1d0bca64d78f0e7883e28564861b23eff8aab1 +SHA512 (0.3.1.tar.gz) = 3d289c90165eb6a3d7a94dff8e6a429a49eb404ce373e80e007a0cd9abaae1e1236f5393df2fbf11701c349dade9d199640dc398064da4fd50a58a90eb3f8f12