Blame SPECS/python-requests-unixsocket.spec

45ac30
%global pypi_name requests-unixsocket
45ac30
45ac30
Name:           python-%{pypi_name}
45ac30
Version:        0.1.5
45ac30
Release:        9%{?dist}
45ac30
Summary:        Use requests to talk HTTP via a UNIX domain socket
45ac30
45ac30
License:        ASL 2.0
45ac30
URL:            https://github.com/msabramo/requests-unixsocket
45ac30
Source0:        https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
45ac30
BuildArch:      noarch
45ac30
 
45ac30
%description
45ac30
%{summary}.
45ac30
45ac30
%package -n     python3-%{pypi_name}
45ac30
Summary:        Use requests to talk HTTP via a UNIX domain socket
45ac30
%{?python_provide:%python_provide python3-%{pypi_name}}
45ac30
45ac30
Requires:       python3dist(requests)
45ac30
45ac30
BuildRequires:  python3-devel
45ac30
BuildRequires:  python3dist(setuptools)
45ac30
BuildRequires:  python3dist(pbr)
45ac30
BuildRequires:  python3dist(pytest)
45ac30
BuildRequires:  python3dist(requests)
45ac30
BuildRequires:  python3dist(urllib3)
45ac30
BuildRequires:  python3dist(waitress)
45ac30
45ac30
%description -n python3-%{pypi_name}
45ac30
%{summary}.
45ac30
45ac30
%prep
45ac30
%autosetup -n %{pypi_name}-%{version}
45ac30
# Remove bundled egg-info
45ac30
rm -rf %{pypi_name}.egg-info
45ac30
# Remove shebangs
45ac30
sed -i '1d' requests_unixsocket/tests/test_requests_unixsocket.py
45ac30
sed -i '1d' setup.py
45ac30
45ac30
# Remove pytest-pep8 invocation. Not packaged in Fedora
45ac30
rm pytest.ini
45ac30
sed -i '/pytest-pep8/d' test-requirements.txt
45ac30
# pytest-capturelog isn't actually used, removing it. it's not in Fedora either
45ac30
sed -i '/pytest-capturelog/d' test-requirements.txt
45ac30
45ac30
%build
45ac30
%py3_build
45ac30
45ac30
%install
45ac30
%py3_install
45ac30
45ac30
45ac30
%check
45ac30
%{__python3} -m pytest -v
45ac30
45ac30
%files -n python3-%{pypi_name} 
45ac30
%doc README.rst
45ac30
%license LICENSE
45ac30
%{python3_sitelib}/requests_unixsocket
45ac30
%{python3_sitelib}/requests_unixsocket-%{version}-py%{python3_version}.egg-info
45ac30
45ac30
%changelog
45ac30
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-9
45ac30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
45ac30
45ac30
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-8
45ac30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
45ac30
45ac30
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.5-7
45ac30
- Rebuilt for Python 3.9
45ac30
45ac30
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-6
45ac30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
45ac30
45ac30
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.5-5
45ac30
- Rebuilt for Python 3.8.0rc1 (#1748018)
45ac30
45ac30
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.5-4
45ac30
- Rebuilt for Python 3.8
45ac30
45ac30
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-3
45ac30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
45ac30
45ac30
* Tue Apr 2 2019 Dan Radez <dradez@redhat.com> - 0.1.5-2
45ac30
- Updates to initial package to address review comments
45ac30
* Tue Mar  8 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 0.1.5-1
45ac30
- Initial package.