Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37563547
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-requests-unixsocket

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define pypi_name requests-unixsocket

%def_with check

Name: python3-module-%pypi_name
Version: 0.3.0
Release: alt1

Summary: Use requests to talk HTTP via a UNIX domain socket
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/requests-unixsocket/

BuildArch: noarch

# https://github.com/msabramo/requests-unixsocket.git

Source: %name-%version.tar

BuildRequires: git-core
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-pbr

# build backend and its deps

BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)

%if_with check
# deps
BuildRequires: python3-module-requests

BuildRequires: python3-module-pytest
BuildRequires: python3-module-waitress
%endif

%py3_provides %pypi_name

%description
Use requests to talk HTTP via a UNIX domain socket.

%prep
%setup

git config --global user.email "real at altlinux.org"
git config --global user.name "REAL"
git init-db
git add . -A
git commit -a -m "%version"
git tag %version -m "%version"

find ./ -type f -name '*.py' -exec \
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' '{}' +

%build
%pyproject_build

%install
%pyproject_install

# don't package tests

rm %buildroot%python3_sitelibdir/requests_unixsocket/testutils.py
rm -r %buildroot%python3_sitelibdir/requests_unixsocket/tests/

%check
%tox_check_pyproject

%files
%doc *.rst
%python3_sitelibdir/requests_unixsocket/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin