Группа :: Development/Python3
Пакет: python3-module-dropbox
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname dropbox
%def_with check
Name: python3-module-%oname
Version: 11.36.2
Release: alt1
Summary: A Python SDK for integrating with the Dropbox API v2
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/dropbox/
Vcs: https://github.com/dropbox/dropbox-sdk-python
Source: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-requests
BuildRequires: python3-module-stone
BuildRequires: python3-module-pytest-mock
%endif
%description
%summary.
%prep
%setup
sed -i "s/__version__ = '.*'/__version__ = '%version'/" dropbox/dropbox_client.py
sed -i '/pytest-runner/d' setup.py
sed -i 's/import mock/from unittest import mock/' test/unit/test_dropbox_unit.py
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest -v --ignore test/integration/
%files
%doc README.rst LICENSE
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-%version.dist-info
%changelog
…
Полный changelog можно просмотреть здесь
%define oname dropbox
%def_with check
Name: python3-module-%oname
Version: 11.36.2
Release: alt1
Summary: A Python SDK for integrating with the Dropbox API v2
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/dropbox/
Vcs: https://github.com/dropbox/dropbox-sdk-python
Source: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-requests
BuildRequires: python3-module-stone
BuildRequires: python3-module-pytest-mock
%endif
%description
%summary.
%prep
%setup
sed -i "s/__version__ = '.*'/__version__ = '%version'/" dropbox/dropbox_client.py
sed -i '/pytest-runner/d' setup.py
sed -i 's/import mock/from unittest import mock/' test/unit/test_dropbox_unit.py
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest -v --ignore test/integration/
%files
%doc README.rst LICENSE
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-%version.dist-info
%changelog
…
Полный changelog можно просмотреть здесь