Name: python-testing.postgresql Version: 1.3.0 Release: 2%{?dist} Summary: Automatically sets up a PostgreSQL testing instance License: ASL 2.0 URL: https://github.com/tk0miya/testing.postgresql Source0: %{pypi_source testing.postgresql} BuildArch: noarch # Backport unreleased commit 738c8eb19a4b064dd74ff851c379dd1cbf11bc65 # “Use utility methods of testing.common.database >= 1.1.0”, required # for compatibility with testing.common.database >= 2.0.0. Patch0: %{url}/commit/738c8eb19a4b064dd74ff851c379dd1cbf11bc65.patch # Backport unreleased commit 577445d8ff5e0ea89ccaf09fd5b82165a0875afe # “Add CentOS/RHEL postgesql home directory blob to search patterns.” Patch1: %{url}/commit/577445d8ff5e0ea89ccaf09fd5b82165a0875afe.patch # Add /usr to search paths in order to be able to find the initidb binary. Patch2: ./0003-Add-usr-to-search-paths.patch BuildRequires: postgresql-server BuildRequires: python3-devel BuildRequires: python3-setuptools # setup.py: install_requires BuildRequires: python3dist(testing-common-database) >= 1.1.0 BuildRequires: python3dist(pg8000) >= 1.10 # setup.py: extras_require["testing"] # nose is only used as the runner, so we can use pytest instead: BuildRequires: python3dist(pytest) BuildRequires: python3dist(psycopg2) BuildRequires: python3dist(sqlalchemy) Requires: postgresql-server %global common_description %{expand: \ Automatically sets up a PostgreSQL instance in a temporary directory, and destroys it after testing.} %description %{common_description} %package -n python3-testing.postgresql Summary: %{summary} %description -n python3-testing.postgresql %{common_description} %prep %autosetup -n testing.postgresql-%{version} -p1 # Remove bundled egg-info rm -rf src/testing.postgresql.egg-info %build %py3_build %install %py3_install %check PYTHONPATH='%{buildroot}%{python3_sitelib}' %{python3} -m pytest %files -n python3-testing.postgresql %license LICENSE %doc README.rst # %%{python3_sitelib}/testing is a namespace package directory, but we do not # need to (co-)own it because is owned by dependency # python3dist(testing.common.database) %pycached %{python3_sitelib}/testing/postgresql.py %{python3_sitelib}/testing.postgresql-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/testing.postgresql-%{version}-py%{python3_version}-nspkg.pth %changelog * Tue Apr 12 2022 Matěj Grabovský - 1.3.0-2 - Add /usr to search paths to detect initdb correctly * Thu Jan 06 2022 Benjamin A. Beasley - 1.3.0-1 - Update to 1.3.0 (close RHBZ#1639492) - Remove BR on deprecated python3dist(nose) - Correctly mark LICENSE file * Wed Jan 27 2021 Fedora Release Engineering - 1.1.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.1.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 24 2020 - Ernestas Kulik - 1.1.0-21 - Explicitly depend on python3-setuptools for building * Tue May 26 2020 Miro Hrončok - 1.1.0-20 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.1.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.1.0-18 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.1.0-17 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.1.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.1.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 1.1.0-14 - Python2 binary package has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 1.1.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.1.0-12 - Rebuilt for Python 3.7 * Thu Mar 15 2018 Martin Kutlak - 1.1.0-11 - Add a missing dependency on which (BZ#1455202) * Fri Feb 09 2018 Iryna Shcherbina - 1.1.0-10 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 1.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.1.0-6 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 1.1.0-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jan 08 2015 Richard Marko - 1.1.0-1 - Initial package