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

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

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

%define _unpackaged_files_terminate_build 1
%define pypi_name sphinxext-opengraph
%define mod_name opengraph

%def_with check

Name: python3-module-%pypi_name
Version: 0.8.0
Release: alt1
Summary: Sphinx extension to generate unique OpenGraph metadata
License: BSD-3-Clause
Group: Development/Python3
Url: https://sphinxext-opengraph.readthedocs.io
VCS: https://github.com/wpilibsuite/sphinxext-opengraph

BuildArch: noarch

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(setuptools_scm)

%if_with check
# dependencies
BuildRequires: python3(sphinx)
BuildRequires: python3(matplotlib)

BuildRequires: python3(pytest)
BuildRequires: python3(sphinx.testing)
BuildRequires: python3(bs4)
%endif

%description
Sphinx extension to generate OpenGraph metadata

%prep
%setup

# if build from git source tree

# setuptools_scm implements a file_finders entry point which returns all files
# tracked by SCM. These files will be packaged unless filtered by MANIFEST.in.
if [ ! -d .git ]; then
   git init
   git config user.email author at example.com
   git config user.name author
   git add .
   git commit -m 'release'
   git tag '%version'
fi

%build
%pyproject_build

%install
%pyproject_install

%check
%pyproject_run_pytest -ra

%files
%doc README.md
%python3_sitelibdir/sphinxext/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/

%changelog

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

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