Группа :: Development/Python3
Пакет: python3-module-ptpython
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname ptpython
Name: python3-module-%oname
Version: 3.0.23
Release: alt1
Summary: Python REPL build on top of prompt_toolkit
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/ptpython/
BuildArch: noarch
# https://github.com/jonathanslenders/ptpython.git
Source: ptpython-%version.tar.gz
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-prompt_toolkit python3-module-setuptools python3-module-wheel
BuildRequires: python3(pygments)
Provides: %oname = %version.%release
Provides: %{oname}3 = %version.%release
Obsoletes: %{oname}3 < %version.%release
%py3_requires jedi
%description
ptpython is an advanced Python REPL built on top of the prompt_toolkit
library.
%package ipython
Group: Development/Python3
Summary: IPython addon for ptpython
Provides: %oname-ipython = %version.%release
%description ipython
%summary
%prep
%setup -n %oname-%version
%build
%pyproject_build
%install
%pyproject_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
python3 tests/run_tests.py -v
%files
%doc LICENSE
%doc CHANGELOG *.rst
%doc examples
%_bindir/*
%exclude %_bindir/*ipython*
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-*dist-info
%exclude %python3_sitelibdir/%oname/*ipython*
%files ipython
%_bindir/*ipython*
%python3_sitelibdir/%oname/*ipython*
%changelog
…
Полный changelog можно просмотреть здесь
%define oname ptpython
Name: python3-module-%oname
Version: 3.0.23
Release: alt1
Summary: Python REPL build on top of prompt_toolkit
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/ptpython/
BuildArch: noarch
# https://github.com/jonathanslenders/ptpython.git
Source: ptpython-%version.tar.gz
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-prompt_toolkit python3-module-setuptools python3-module-wheel
BuildRequires: python3(pygments)
Provides: %oname = %version.%release
Provides: %{oname}3 = %version.%release
Obsoletes: %{oname}3 < %version.%release
%py3_requires jedi
%description
ptpython is an advanced Python REPL built on top of the prompt_toolkit
library.
%package ipython
Group: Development/Python3
Summary: IPython addon for ptpython
Provides: %oname-ipython = %version.%release
%description ipython
%summary
%prep
%setup -n %oname-%version
%build
%pyproject_build
%install
%pyproject_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
python3 tests/run_tests.py -v
%files
%doc LICENSE
%doc CHANGELOG *.rst
%doc examples
%_bindir/*
%exclude %_bindir/*ipython*
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-*dist-info
%exclude %python3_sitelibdir/%oname/*ipython*
%files ipython
%_bindir/*ipython*
%python3_sitelibdir/%oname/*ipython*
%changelog
…
Полный changelog можно просмотреть здесь