Sisyphus repositório
Última atualização: 25 fevereiro 2020 | SRPMs: 17503 | Visitas: 17509938
en ru br
ALT Linux repositórios

Group :: Desenvolvimento/Documentação
RPM: python-module-execnet-docs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname execnet
%define fname python-module-%oname
%define descr \
execnet provides carefully tested means to ad-hoc interact with Python \
interpreters across version, platform and network barriers. It provides \
a minimal and fast API targetting the following uses: \
* distribute tasks to local or remote processes \
* write and deploy hybrid multi-process applications \
* write scripts to administer multiple hosts

%if "-docs"!=""
%def_without check
%def_with check

Name: %fname-docs
Version: 1.7.0
Release: alt1

%if "-docs"==""
Summary: Rapid multi-Python deployment
Group: Development/Python
Summary: Documentation for %oname
Group: Development/Documentation

License: MIT
Source: %name-%version.tar
Patch: %name-%version-alt.patch
BuildArch: noarch

%if "-docs"==""
%py_provides %oname
%add_python_req_skip win32event win32evtlogutil win32service
%add_python_req_skip win32serviceutil register
%if ""=="3"
# hasn't got version for Python3
%add_python_req_skip rlcompleter2
%filter_from_provides /^python(execnet\.script\.shell)/d
# IndexError: list index out of range
%filter_from_provides /^python(execnet\.script\.socketserverservice)/d
# No module named 'win32serviceutil'
%filter_from_provides /^python(execnet\.script\.quitserver)/d
# No module named 'execnet.quitserver'
%if ""=="3"
%filter_from_provides /^python(execnet\.script\.xx)/d
# depends from rlcompleter2

%if "-docs"!=""
Conflicts: %fname < %EVR
Conflicts: %fname > %EVR

BuildRequires(pre): rpm-macros-sphinx rpm-build-python
BuildRequires: python-module-setuptools_scm
BuildRequires: python-module-apipkg
# one of the python3 tests requires python with 'apipkg' module
BuildRequires: python-module-apipkg

%if_with check
BuildRequires: python-module-tox
BuildRequires: python-module-pytest-timeout

%if "-docs"!=""
BuildRequires: python-module-alabaster
BuildRequires: python-module-html5lib
BuildRequires: python-module-objects.inv

%if "-docs"!=""

This package contains documentation for %oname.

%package -n %fname-pickles
Summary: Pickles for %oname
Group: Development/Python

%description -n %fname-pickles

This package contains pickles for %oname.

%patch -p1
%if "-docs"!=""
%prepare_sphinx .
ln -s ../objects.inv doc/

# SETUPTOOLS_SCM_PRETEND_VERSION: when defined and not empty,
# its used as the primary source for the version number in which
# case it will be a unparsed string

%if "-docs"==""
export PYTHONPATH=%buildroot%python_sitelibdir
%make -C doc pickle
%make -C doc html
mkdir -p %buildroot%python_sitelibdir/%oname
cp -fR doc/_build/pickle %buildroot%python_sitelibdir/%oname/

sed -i '/\[testenv\]$/a whitelist_externals =\
commands_pre =\
   cp %_bindir\/py.test \{envbindir\}\/pytest\
   sed -i \x271c #!\{envpython\}\x27 \{envbindir\}\/pytest' tox.ini
%if ""=="3"
TOXENV=py%{python_version_nodots python3} tox.py3 --sitepackages -rv
TOXENV=py%{python_version_nodots python} tox --sitepackages -rv

%if "-docs"==""

%doc CHANGELOG.rst *.txt


%doc doc/_build/html/*

%files -n %fname-pickles


Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009