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

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define pypi_name configupdater

%def_with check

Name: python3-module-%pypi_name
Version: 3.1.1
Release: alt1

Summary: Parser like ConfigParser but for updating configuration files
License: MIT
Group: Development/Python3
# Source-git: https://github.com/pyscaffold/configupdater.git
Url: https://pypi.org/project/configupdater

Source: %name-%version.tar
Patch: %name-%version-alt.patch

BuildRequires(pre): rpm-build-python3

# build backend and its deps

BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(setuptools_scm)

%if_with check
BuildRequires: python3(pytest)
%endif

BuildArch: noarch

%description
The sole purpose of ConfigUpdater is to easily update an INI config file with no
changes to the original file except the intended ones. This means comments, the
ordering of sections and key/value-pairs as wells as their cases are kept as in
the original file. Thus ConfigUpdater provides complementary functionality to
Python's ConfigParser which is primarily meant for reading config files and
writing new ones.

%prep
%setup
%autopatch -p1
# setuptools_scm implements a file_finders entry point which returns all files
# tracked by SCM.
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
export TOXENV=py3-all
%tox_check_pyproject

%files
%doc README.rst
%python3_sitelibdir/configupdater/
%python3_sitelibdir/ConfigUpdater-%version.dist-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