Sisyphus repositório
Última atualização: 18 novembro 2019 | SRPMs: 17519 | Visitas: 15773728
en ru br
ALT Linux repositórios
S:1.3.0-alt2

Group :: Desenvolvimento/Python
RPM: python-module-atomicwrites

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname atomicwrites

%def_with check

Name: python-module-%oname
Version: 1.2.0
Release: alt1

Summary: Python Atomic file writes on POSIX
License: MIT
Group: Development/Python
# Source-git: https://github.com/untitaker/python-atomicwrites.git
Url: https://pypi.org/project/atomicwrites

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3

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

BuildArch: noarch

%define long_desc This module provides atomic file writes on POSIX operating  \
systems. It supports:                                                         \
* Race-free assertion that the target file doesn't yet exist                  \
* Simple high-level API that wraps a very flexible class-based API            \
* Consistent error handling across platforms

%description
%long_desc

%package -n python3-module-%oname
Summary: Python3 Atomic file writes on POSIX
Group: Development/Python3

%description -n python3-module-%oname
%long_desc

%prep
%setup
cp -a . ../python3

%build
%python_build

pushd ../python3
%python3_build
popd

%install
%python_install

pushd ../python3
%python3_install
popd

%check
export PIP_INDEX_URL=http://host.invalid./

# copy nessecary exec deps

tox --sitepackages -e py%{python_version_nodots python}-test --notest
cp -T %_bindir/py.test .tox/py%{python_version_nodots python}-test/bin/py.test

export PYTHONPATH=build/lib
TOX_TESTENV_PASSENV='PYTHONPATH' tox --sitepackages -e \
py%{python_version_nodots python}-test -v -- -v

pushd ../python3
tox.py3 --sitepackages -e py%{python_version_nodots python3}-test --notest
cp -T %_bindir/py.test3 .tox/py%{python_version_nodots python3}-test/bin/py.test

TOX_TESTENV_PASSENV='PYTHONPATH' tox.py3 --sitepackages -e \
py%{python_version_nodots python3}-test -v -- -v
popd

%files
%doc LICENSE README.rst
%python_sitelibdir/atomicwrites/
%python_sitelibdir/atomicwrites-*.egg-info/

%files -n python3-module-%oname
%doc LICENSE README.rst
%python3_sitelibdir/atomicwrites/
%python3_sitelibdir/atomicwrites-*.egg-info/

%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