%global pypi_name requests_unixsocket2 %global package_name requests-unixsocket # pypi:requests-unixsocket is nolonger maintained upstream # pypi:requests-unixsocket2 is a for that provides requests-unixsocket # This package pulls from requests-unixsocket2 and packages as requests-unixsocket # See change log 0.4.0-1 for details. Name: python-%{package_name} Version: 0.4.0 Release: 1%{?dist} Summary: Use requests to talk HTTP via a UNIX domain socket License: ASL 2.0 URL: https://github.com/thelabnyc/requests-unixsocket2 Source0: %{pypi_source} BuildArch: noarch %description %{summary}. %package -n python3-%{package_name} Summary: Use requests to talk HTTP via a UNIX domain socket %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(requests) BuildRequires: python3-devel #BuildRequires: python3dist(setuptools) #BuildRequires: python3dist(pbr) BuildRequires: python3dist(pip) BuildRequires: python3dist(poetry) BuildRequires: python3dist(pytest) BuildRequires: python3dist(requests) BuildRequires: python3dist(urllib3) BuildRequires: python3dist(waitress) %description -n python3-%{package_name} %{summary}. %prep %autosetup -n %{pypi_name}-%{version} # Remove shebangs sed -i '1d' requests_unixsocket/tests/test_requests_unixsocket.py # Remove pytest-pep8 invocation. Not packaged in Fedora #sed -i '/pytest-pep8/d' test-requirements.txt # pytest-capturelog isn't actually used, removing it. it's not in Fedora either #sed -i '/pytest-capturelog/d' test-requirements.txt %build %pyproject_wheel %install %pyproject_install %check %pytest %files -n python3-%{package_name} %doc README.md %license LICENSE %{python3_sitelib}/requests_unixsocket %{python3_sitelib}/requests_unixsocket2-%{version}.dist-info %changelog * Mon Jun 03 2024 Dan Radez - 0.4.0-1 - RHBZ#2284361 Updating to new upstream project, see comment at https://github.com/msabramo/requests-unixsocket/issues/73#issuecomment-2125848213 Dated: May 22, 2024 FYI to all: since this project seems to be abandoned, but its longevity is important to my team, we've forked the project as requests-unixsocket2. It should be a drop in replacement for this package. PyPI: https://pypi.org/project/requests-unixsocket2/0.4.0/ Repository: https://gitlab.com/thelabnyc/requests-unixsocket2 We've migrated the fix for this issue there, merged it, and released to PyPI as part of v0.4.0. - Updated to pyproject macros * Fri Jan 26 2024 Fedora Release Engineering - 0.2.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.2.0-7 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.2.0-4 - Rebuilt for Python 3.11 * Tue Feb 08 2022 Dan Radez - 0.2.0-3 - Don't remove egginfo * Fri Jan 21 2022 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jan 04 2022 Dan Radez - 0.2.0-1 - update to 0.2.0 * Fri Jul 23 2021 Fedora Release Engineering - 0.1.5-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 03 2021 Python Maint - 0.1.5-10 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.1.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.1.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat May 23 2020 Miro Hrončok - 0.1.5-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.1.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.1.5-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.1.5-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Apr 2 2019 Dan Radez - 0.1.5-2 - Updates to initial package to address review comments * Tue Mar 8 2016 Haïkel Guémar - 0.1.5-1 - Initial package.