From 45ac30cd03459026bcd797cea7d8cb8476a34c06 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 09 2021 01:23:43 +0000 Subject: Import python-requests-unixsocket-0.1.5-9.el9 in CloudSIG xena --- diff --git a/.python-requests-unixsocket.metadata b/.python-requests-unixsocket.metadata new file mode 100644 index 0000000..652bfcb --- /dev/null +++ b/.python-requests-unixsocket.metadata @@ -0,0 +1 @@ +033867f883c439d7e00e0d6f949a76b5f4570b4c SOURCES/requests-unixsocket-0.1.5.tar.gz diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..9714e88 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# python-requests-unixsocket + +The python-requests-unixsocket package \ No newline at end of file diff --git a/SPECS/python-requests-unixsocket.spec b/SPECS/python-requests-unixsocket.spec new file mode 100644 index 0000000..6baeb56 --- /dev/null +++ b/SPECS/python-requests-unixsocket.spec @@ -0,0 +1,88 @@ +%global pypi_name requests-unixsocket + +Name: python-%{pypi_name} +Version: 0.1.5 +Release: 9%{?dist} +Summary: Use requests to talk HTTP via a UNIX domain socket + +License: ASL 2.0 +URL: https://github.com/msabramo/requests-unixsocket +Source0: https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +%{summary}. + +%package -n python3-%{pypi_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(pytest) +BuildRequires: python3dist(requests) +BuildRequires: python3dist(urllib3) +BuildRequires: python3dist(waitress) + +%description -n python3-%{pypi_name} +%{summary}. + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info +# Remove shebangs +sed -i '1d' requests_unixsocket/tests/test_requests_unixsocket.py +sed -i '1d' setup.py + +# Remove pytest-pep8 invocation. Not packaged in Fedora +rm pytest.ini +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 +%py3_build + +%install +%py3_install + + +%check +%{__python3} -m pytest -v + +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE +%{python3_sitelib}/requests_unixsocket +%{python3_sitelib}/requests_unixsocket-%{version}-py%{python3_version}.egg-info + +%changelog +* 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.