Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37734374
en ru br
ALT Linux repos
S:0.2.5-alt1

Group :: Development/Python3
RPM: python3-module-clickhouse-driver

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname clickhouse-driver

Name:       python3-module-%oname
Version:    0.2.5
Release:    alt1
License:    MIT
Group:      Development/Python3
Summary:    ClickHouse Python Driver with native interface support.
Url:        https://github.com/mymarilyn/clickhouse-driver
Source:     %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
BuildRequires: python3-module-sphinx
BuildRequires: python3-module-tzlocal
BuildRequires: python3-module-pytz

Requires: python3-module-clickhouse-cityhash
Requires: python3-module-numpy
Requires: python3-module-tzlocal

%add_python3_req_skip pandas pandas.api.types

%add_python3_self_prov_path %buildroot%python3_sitelibdir/clickhouse_driver/tests/

%description
ClickHouse Python Driver with native (TCP) interface support.

%package    tests
Group:      Development/Python3
Summary:    ClickHouse Python Driver with native interface support.
Requires:   python3-module-%oname = %EVR

%description tests
ClickHouse Python Driver with native (TCP) interface support.

Package contains tests for %name.

%prep
%setup

%build
%pyproject_build

# install module for sphinx to temporary directory

%__python3 setup.py install --skip-build --root=_build --force
export PYTHONPATH=$PWD/_build/%python3_sitelibdir
%make -C docs/ man SPHINXBUILD=sphinx-build-3

%install
%pyproject_install

cp -fR tests/ %buildroot%python3_sitelibdir/clickhouse_driver/
mkdir -p %buildroot/%_man1dir
install -pm0644 docs/*/man/*.1 %buildroot/%_man1dir/

%files
%doc LICENSE README.* CONTRIBUTING.rst
%python3_sitelibdir/*
%_man1dir/*.1.*
%exclude %python3_sitelibdir/clickhouse_driver/tests/

%files tests
%python3_sitelibdir/clickhouse_driver/tests/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin