From 9956ec4a3de82f553ad1ba05c42e91ab0cd9d884 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Fri, 28 Apr 2023 14:18:21 +0300 Subject: [PATCH] Initial import from EPEL 9 upstream --- .gitignore | 1 + .python-requests-unixsocket.metadata | 1 + SPECS/python-requests-unixsocket.spec | 103 ++++++++++++++++++++++++++ 3 files changed, 105 insertions(+) create mode 100644 .gitignore create mode 100644 .python-requests-unixsocket.metadata create mode 100644 SPECS/python-requests-unixsocket.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a51282f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/requests-unixsocket-0.2.0.tar.gz diff --git a/.python-requests-unixsocket.metadata b/.python-requests-unixsocket.metadata new file mode 100644 index 0000000..af876bd --- /dev/null +++ b/.python-requests-unixsocket.metadata @@ -0,0 +1 @@ +d6529e8a50538cca626abf8f88dc2a1cda25a0e6 SOURCES/requests-unixsocket-0.2.0.tar.gz diff --git a/SPECS/python-requests-unixsocket.spec b/SPECS/python-requests-unixsocket.spec new file mode 100644 index 0000000..0cdeb70 --- /dev/null +++ b/SPECS/python-requests-unixsocket.spec @@ -0,0 +1,103 @@ +%global pypi_name requests-unixsocket + +Name: python-%{pypi_name} +Version: 0.2.0 +Release: 2%{?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 +* Fri Apr 28 2023 Sergey Cherevko - 0.2.0-2 +- Rebuilt for MSVSphere 9.1 + +* 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.