Blob Blame History Raw
Name:           python-expandvars
Version:        0.12.0
Release:        %autorelease
Summary:        Expand system variables Unix style

License:        MIT
Source:         %{pypi_source expandvars}

BuildArch:      noarch

BuildRequires:  python3-devel

# Most of the dependencies in the “test” extra and almost everything tox.ini
# pertain to linting and coverage analysis. Rather than working around all of
# these, it is simpler to BR and invoke pytest manually.
BuildRequires:  %{py3_dist pytest}

%global common_description %{expand:
This module is inspired by GNU bash’s variable expansion features. It can be
used as an alternative to Python’s os.path.expandvars function.

A good use case is reading config files with the flexibility of reading values
from environment variables using advanced features like returning a default
value if some variable is not defined.}

%description %{common_description}

%package -n python3-expandvars
Summary:        %{summary}

%description -n python3-expandvars %{common_description}

%autosetup -n expandvars-%{version}
sed -r -i "s/--cov[^[:blank:]'\"]*[[:blank:]]*//g" pyproject.toml



%pyproject_save_files -l expandvars


%files -n python3-expandvars -f %{pyproject_files}