Group :: Development/Python3
RPM: python3-module-influxdb
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define oname influxdb
%def_with check
Name: python3-module-%oname
Version: 5.3.1
Release: alt1
Summary: Python client for InfluxDB
License: MIT
Group: Development/Python3
Url: https://github.com/influxdata/influxdb-python
Source: %name-%version.tar
Patch: remove-nose.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-msgpack
BuildRequires: python3-module-requests-mock
BuildRequires: python3-module-pytz
BuildRequires: python3-module-dateutil
BuildRequires: python3-module-pandas-tests
%endif
%add_python3_req_skip pandas
%description
InfluxDB-Python is a client for interacting with InfluxDB.
%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR
%description tests
This package contains tests for %oname.
%prep
%setup
%patch -p1
sed -e 's/^import mock/from unittest import mock/' \
-e 's/^from mock import/from unittest.mock import/' \
-i influxdb/tests/*.py influxdb/tests/*/*.py
%build
%python3_build
%install
%python3_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
py.test-3 -k 'not test_write_points_from_dataframe_with_tags_and_nan_json'
%files
%python3_sitelibdir/*
%doc docs/source examples README.rst
%exclude %python3_sitelibdir/%oname/tests
%files tests
%python3_sitelibdir/%oname/tests
%changelog
…
Todas as alterações você pod ver aqui
%def_with check
Name: python3-module-%oname
Version: 5.3.1
Release: alt1
Summary: Python client for InfluxDB
License: MIT
Group: Development/Python3
Url: https://github.com/influxdata/influxdb-python
Source: %name-%version.tar
Patch: remove-nose.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-msgpack
BuildRequires: python3-module-requests-mock
BuildRequires: python3-module-pytz
BuildRequires: python3-module-dateutil
BuildRequires: python3-module-pandas-tests
%endif
%add_python3_req_skip pandas
%description
InfluxDB-Python is a client for interacting with InfluxDB.
%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR
%description tests
This package contains tests for %oname.
%prep
%setup
%patch -p1
sed -e 's/^import mock/from unittest import mock/' \
-e 's/^from mock import/from unittest.mock import/' \
-i influxdb/tests/*.py influxdb/tests/*/*.py
%build
%python3_build
%install
%python3_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
py.test-3 -k 'not test_write_points_from_dataframe_with_tags_and_nan_json'
%files
%python3_sitelibdir/*
%doc docs/source examples README.rst
%exclude %python3_sitelibdir/%oname/tests
%files tests
%python3_sitelibdir/%oname/tests
%changelog
…
Todas as alterações você pod ver aqui