%bcond_with docs %global pypi_name praw Name: python-%{pypi_name} Version: 7.8.1 Release: 1%{?dist} Summary: Python module that allows for simple access to reddit's API License: GPL-3.0-or-later URL: https://praw.readthedocs.org Source0: https://github.com/praw-dev/praw/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to reddit's API. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3dist(flit-core) BuildRequires: python3dist(pytest) BuildRequires: python3dist(betamax) BuildRequires: python3dist(betamax-matchers) BuildRequires: python3dist(requests) %description -n python3-%{pypi_name} PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to reddit's API. %if %{with docs} %package -n python-%{pypi_name}-doc Summary: Documentation for %{summary} BuildRequires: python3-sphinx %description -n python-%{pypi_name}-doc PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to reddit's API. %endif %prep %autosetup -n %{pypi_name}-%{version} # The RPM package should not provide this feature sed -i -e '/"update_checker >=0.18",/d' pyproject.toml %generate_buildrequires %pyproject_buildrequires -p %build %pyproject_wheel %if %{with docs} sphinx-build docs html rm -rf html/.{doctrees,buildinfo} %endif %install %pyproject_install %pyproject_save_files %{pypi_name} %check # Integration tests require network access %pytest --ignore "tests/integration" %files -n python3-%{pypi_name} -f %{pyproject_files} %doc AUTHORS.rst CHANGES.rst README.rst %license LICENSE.txt %if %{with docs} %files -n python-%{pypi_name}-doc %doc html %endif %changelog * Sat Oct 26 2024 Fabian Affolter - 7.8.2-1 - Update to latest upstream release (closes rhbz#2320089) * Mon Oct 21 2024 Fabian Affolter - 7.8.0-1 - Update to latest upstream release (closes rhbz#2320089) * Thu Jul 25 2024 Miroslav Suchý - 7.7.1-4 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 7.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 7.7.1-2 - Rebuilt for Python 3.13 * Mon Apr 08 2024 Fabian Affolter - 7.7.1-1 - Update to latest upstream release (closes rhbz#2173343) * Sat Jan 27 2024 Maxwell G - 7.6.1-7 - Remove unused python3-mock test dependency - Replace deprecated pytest-runner with %%pytest * Fri Jan 26 2024 Fedora Release Engineering - 7.6.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 7.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 7.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 28 2023 Python Maint - 7.6.1-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 7.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Nov 14 2022 Lumír Balhar - 7.6.1-1 - Update to 7.6.1 (#2142220) * Fri Jul 22 2022 Fedora Release Engineering - 7.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Python Maint - 7.6.0-2 - Rebuilt for Python 3.11 * Fri May 13 2022 Fabian Affolter - 7.6.0-1 - Update to latest upstream release 7.6.0 (closes rhbz#2083891) * Wed Feb 23 2022 Fabian Affolter - 7.5.0-1 - Update to latest upstream release 7.5.0 (closes rhbz#2023015) * Fri Jan 21 2022 Fedora Release Engineering - 7.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Aug 09 2021 Fabian Affolter - 7.4.0-1 - Update to latest upstream release 7.4.0 (rhbz#1932134) * Fri Jul 23 2021 Fedora Release Engineering - 7.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 7.2.0-2 - Rebuilt for Python 3.10 * Fri Feb 26 2021 Fabian Affolter - 7.2.0-1 - Update to latest upstream release 7.2.0 (#1932134) * Mon Feb 08 2021 Fabian Affolter - 7.1.4-1 - Update to latest upstream release 7.1.4 (#1924400) * Fri Feb 05 2021 Fabian Affolter - 7.1.3-1 - Update to latest upstream release 7.1.3 (#1924400) * Thu Feb 04 2021 Fabian Affolter - 7.1.2-1 - Update to latest upstream release 7.1.2 * Wed Feb 03 2021 Fabian Affolter - 7.1.1-1 - Update to latest upstream release 7.1.1 (#1924400) * Wed Jan 27 2021 Fedora Release Engineering - 7.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 7.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Fabian Affolter - 7.1.0-1 - Update to latest upstream release 7.1.0 (rhbz#1849859) * Tue May 26 2020 Miro Hrončok - 7.0.0-2 - Rebuilt for Python 3.9 * Sat May 02 2020 Fabian Affolter - 7.0.0-1 - Update to latest upstream release 7.0.0 (rhbz#1827865) * Thu Jan 30 2020 Fedora Release Engineering - 6.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jan 10 2020 Fabian Affolter - 6.5.1-1 - Better use of wildcards - Update to latest upstream release 6.5.1 * Mon Jan 06 2020 Fabian Affolter - 6.5.0-1 - Update source URL - Update to latest upstream release 6.5.0 (rhbz#1787988) * Wed Sep 25 2019 Fabian Affolter - 6.4.0-1 - Update to latest upstream release 6.4.0 (rhbz#1754213) * Mon Aug 19 2019 Miro Hrončok - 6.3.1-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 6.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Jun 23 2019 Fabian Affolter - 6.3.1-2 - Add new BR * Fri Jun 21 2019 Fabian Affolter - 6.3.1-1 - Update to latest upstream release 6.3.1 (rhbz#1425652) - Fix conflict (rhbz#1661208) - Support for Python 3.8 (rhbz#716516) * Tue Jun 11 2019 Fabian Affolter - 6.3.0-1 - Update to latest upstream release 6.3.0 (rhbz#1425652) * Thu May 09 2019 Fabian Affolter - 6.2.0-1 - Update to latest upstream release 6.2.0 (rhbz#1425652) * Fri Feb 22 2019 Fabian Affolter - 3.6.2-2 - Update comments * Tue Feb 12 2019 Ben Rosser - 3.6.2-1 - Update to latest upstream release (rhbz#1661208, rhbz#1624628) * Sat Feb 02 2019 Fedora Release Engineering - 3.6.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 3.6.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 3.6.0-7 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Iryna Shcherbina - 3.6.0-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 3.6.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 3.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 3.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 3.6.0-2 - Rebuild for Python 3.6 * Wed Nov 16 2016 Fabian Affolter - 3.6.0-1 - Update to latest upstream release 3.6.0 * Fri Aug 26 2016 Fabio Alessandro Locati - 3.5.0-1 - Update to 3.5.0 - SPEC refactor * Tue Jul 19 2016 Fedora Release Engineering - 3.4.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Feb 22 2016 Fabian Affolter - 3.4.0-1 - Update to latest upstream release 3.4.0 (rhbz#1310641) * Thu Feb 04 2016 Fedora Release Engineering - 3.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 3.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Fri Nov 6 2015 Toshio Kuratomi - 3.3.0-2 - Only include the scipt in the python3 package. The one in the python2 package wouldn't function without manual intervention because it would require the python3-praw package but there was no dependency to it. Simply dropping it from the python-praw package also fixes the python-praw package to not require /usr/bin/python3 * Tue Oct 06 2015 Fabian Affolter - 3.3.0-1 - Update to latest upstream release 3.3.0 * Thu Jun 18 2015 Fedora Release Engineering - 2.1.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Apr 05 2015 Fabian Affolter - 2.1.21-1 - Update to latest upstream release 2.1.21 (rhbz#1206410) * Fri Jan 23 2015 Fabian Affolter - 2.1.20-1 - Update to latest upstream release (rhbz#1185340) * Sun Dec 07 2014 Fabian Affolter - 2.1.19-2 - Add requirement python-requests (rhbz#1171444) * Wed Nov 05 2014 Fabian Affolter - 2.1.19-1 - Update to new upstream release (rhbz#1070176) - Update patch0 * Sun Sep 14 2014 Fabian Affolter - 2.1.18-2 - Add python3 subpackage (rhbz#1135689) * Sat Aug 23 2014 Fabian Affolter - 2.1.18-1 - Update to latest upstream version 2.1.18 * Mon Jul 14 2014 Fabian Affolter - 2.1.17-1 - Disable update_checker (rhbz#1103097) - Update to latest upstream version 2.1.17 * Sat Jun 07 2014 Fedora Release Engineering - 2.1.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat May 24 2014 Fabian Affolter - 2.1.16-1 - Spec file update - Update to latest upstream version 2.1.16 * Sun Aug 04 2013 Fedora Release Engineering - 1.0.15-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.0.15-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Nov 10 2012 Elad Alfassa - 1.0.15-3 - Fix more issues from review * Sat Nov 10 2012 Elad Alfassa - 1.0.15-2 - Fix few minor problems from review * Sat Nov 10 2012 Elad Alfassa - 1.0.15-1 - Initial packaging for Feora