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

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

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

%define _unpackaged_files_terminate_build 1

%define oname traitlets

%def_with check

Name: python3-module-%oname
Version: 5.3.0
Release: alt2

Summary: Traitlets Python config system

License: BSD-3-Clause
Group: Development/Python3
BuildArch: noarch
Url: https://pypi.python.org/pypi/traitlets

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3 rpm-macros-sphinx3

# build backend and its deps

BuildRequires: python3(hatchling)

# docs build

BuildRequires: python3(sphinx)
BuildRequires: python3(sphinx_rtd_theme)

%if_with check
BuildRequires: python3(pytest)
%endif

%py3_provides %oname

%description
A configuration system for Python applications.

%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR

%description tests
A configuration system for Python applications.

This package contains tests for %oname.

%package pickles
Summary: Pickles for %oname
Group: Development/Python3

%description pickles
A configuration system for Python applications.

This package contains pickles for %oname.

%prep
%setup

%prepare_sphinx3 docs
ln -s ../objects.inv docs/source/

%build
%pyproject_build

export PYTHONPATH=$(pwd)
%make SPHINXBUILD="sphinx-build-3" -C docs pickle
%make SPHINXBUILD="sphinx-build-3" -C docs html

%install
%pyproject_install

cp -fR docs/build/pickle %buildroot%python3_sitelibdir/%oname

%check
%tox_create_default_config
%tox_check_pyproject

%files
%doc examples docs/build/html
%python3_sitelibdir/traitlets/
%python3_sitelibdir/%{pyproject_distinfo %oname}/
%exclude %python3_sitelibdir/*/pickle
%exclude %python3_sitelibdir/*/tests
%exclude %python3_sitelibdir/*/*/tests

%files tests
%python3_sitelibdir/*/tests
%python3_sitelibdir/*/*/tests

%files pickles
%python3_sitelibdir/*/pickle

%changelog

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

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