Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37612408
en ru br
ALT Linux repos
S:1.4.1-alt1

Group :: Development/Python3
RPM: python3-module-atomicwrites

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%def_with check

Name: python3-module-atomicwrites
Version: 1.4.1
Release: alt1

Summary: Python Atomic file writes on POSIX
License: MIT
Group: Development/Python3
# 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: 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

%prep
%setup

%build
%python3_build

%install
%python3_install

%check
sed -i '/\[testenv\]$/a whitelist_externals =\
   \/bin\/cp\
   \/bin\/sed\
setenv =\
   py%{python_version_nodots python3}: _PYTEST_BIN=%_bindir\/py.test3\
commands_pre =\
   \/bin\/cp {env:_PYTEST_BIN:} \{envbindir\}\/py.test\
   \/bin\/sed -i \x271c #!\{envpython\}\x27 \{envbindir\}\/py.test' tox.ini
export PIP_NO_INDEX=YES
export TOXENV=py%{python_version_nodots python3}-test
tox.py3 --sitepackages -vvr

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

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin