diff --git a/python-requests-unixsocket.spec b/python-requests-unixsocket.spec index 13046291aef7f127184fffc9f68e8624624687ab..a0e449fae14b26ce153389da2b25e2a07c6a403e 100644 --- a/python-requests-unixsocket.spec +++ b/python-requests-unixsocket.spec @@ -1,52 +1,55 @@ -%global pypi_name requests-unixsocket +%global pypi_name requests_unixsocket2 +%global package_name requests-unixsocket Summary: Use requests to talk HTTP via a UNIX domain socket -Name: python-%{pypi_name} -Version: 0.3.0 +Name: python-%{package_name} +Version: 0.4.0 Release: 1%{?dist} 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 +URL: https://github.com/thelabnyc/requests-unixsocket2 +Source0: %{pypi_name}-%{version}.tar.gz BuildArch: noarch %description Use requests to talk HTTP via a UNIX domain socket. -%package -n python3-%{pypi_name} +%package -n python3-%{package_name} Summary: Use requests to talk HTTP via a UNIX domain socket -BuildRequires: python3-devel python3dist(setuptools) python3dist(pbr) python3dist(pytest) +BuildRequires: python3-devel python3dist(pytest) BuildRequires: python3dist(requests) python3dist(urllib3) python3dist(waitress) +BuildRequires: python3dist(pip) python3dist(poetry-core) Requires: python3dist(requests) -%description -n python3-%{pypi_name} +%description -n python3-%{package_name} Use requests to talk HTTP via a UNIX domain socket. %prep %autosetup -n %{pypi_name}-%{version} sed -i '1d' requests_unixsocket/tests/test_requests_unixsocket.py -sed -i '1d' setup.py -rm pytest.ini -sed -i '/pytest-pep8/d' test-requirements.txt -sed -i '/pytest-capturelog/d' test-requirements.txt %build -%py3_build +%pyproject_wheel %install -%py3_install - +%pyproject_install +mv %{buildroot}%{python3_sitelib}/requests_unixsocket2-%{version}.dist-info %{buildroot}%{python3_sitelib}/requests_unixsocket-%{version}.dist-info +sed -i 's/unixsocket2/unixsocket/g' %{buildroot}%{python3_sitelib}/requests_unixsocket-%{version}.dist-info/METADATA %check -%{__python3} -m pytest -v +%pytest -%files -n python3-%{pypi_name} -%doc README.rst +%files -n python3-%{package_name} +%doc README.md %license LICENSE %{python3_sitelib}/requests_unixsocket -%{python3_sitelib}/requests_unixsocket-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/requests_unixsocket-%{version}.dist-info %changelog +* Tue Jul 16 2024 Jiaxin Yang - 0.4.0-1 +- [Type] other +- [DESC] upgrade to 0.4.0 + * Fri Sep 22 2023 jackeyji - 0.3.0-1 - upgrade to 0.3.0 diff --git a/sources b/sources index 26a03172e4f5ec4bfa74dff328db96971e339967..815967e36ffab0f1db14d408c4765754e27ce87a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (requests-unixsocket-0.3.0.tar.gz) = 21c887b0c3fa526a2debb3960e0ea4dc3b3015cdd517459b6484501176321408d1b4c87dd2840c7d8b71d08fa9114f655ae03f8bc9ff1fca33c914900ef82f5b +SHA512 (requests_unixsocket2-0.4.0.tar.gz) = e92b2d66e8d9e1f80de1a767a8ceba545bf8a8c1fe7bd75f2c5cb5f7225e6bff5ce60fbc150e9f5820bc312bfb787e94c82b1d0dfe7c4556709c7d3b0497188a