Sisyphus repositório
Última atualização: 18 setembro 2019 | SRPMs: 17444 | Visitas: 15115718
en ru br
ALT Linux repositórios
S:1.0.4-alt2

Group :: Desenvolvimento/Python
RPM: python-module-pytest-flake8

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname pytest-flake8

%def_with check

Name: python-module-%oname
Version: 1.0.3
Release: alt1
Summary: pytest plugin for efficiently checking PEP8 compliance
License: BSD
Group: Development/Python
BuildArch: noarch
Url: https://pypi.org/project/pytest-flake8

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3

%if_with check
BuildRequires: python-module-flake8
BuildRequires: python-module-pytest
BuildRequires: python3-module-flake8
BuildRequires: python3-module-tox
%endif

%description
pytest plugin for efficiently checking PEP8 compliance

%package -n python3-module-%oname
Summary: pytest plugin for efficiently checking PEP8 compliance
Group: Development/Python3

%description -n python3-module-%oname
pytest plugin for efficiently checking PEP8 compliance

%prep
%setup

rm -rf ../python3
cp -fR . ../python3

%build
%python_build

pushd ../python3
%python3_build
popd

%install
%python_install

pushd ../python3
%python3_install
popd

%check
sed -i '/\[testenv\]/a whitelist_externals =\
   \/bin\/cp\
   \/bin\/sed\
commands_pre =\
   cp %_bindir\/py.test3 \{envbindir\}\/pytest\
   sed -i \x271c #!\{envpython\}\x27 \{envbindir\}\/pytest' tox.ini
export PIP_NO_INDEX=YES
export TOXENV=py%{python_version_nodots python},py%{python_version_nodots python3}
tox.py3 --sitepackages -p auto -o -v

%files
%doc LICENSE CHANGELOG README.rst
%python_sitelibdir/pytest_flake8-*.egg-info/
%python_sitelibdir/pytest_flake8.py*

%files -n python3-module-%oname
%doc LICENSE CHANGELOG README.rst
%python3_sitelibdir/pytest_flake8-*.egg-info/
%python3_sitelibdir/pytest_flake8.py
%python3_sitelibdir/__pycache__/

%changelog

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