Blob Blame History Raw
Name:           python-gelidum
Version:        0.5.7
Release:        %autorelease
Summary:        Freeze your objects in python

# The entire source is MIT except resources/gelidum.jpg, which is CC0 (and is
# not installed)
License:        MIT
Source0:        %{url}/archive/v%{version}/gelidum-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel

%global _description %{expand:
Inspired by the method freeze found in other languages like
Javascript, this package tries to make immutable objects to make it
easier avoiding accidental modifications in your code.}

%description %_description

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

%description -n python3-gelidum %_description

%autosetup -p1 -n gelidum-%{version}

# The build/test/runtime BuildRequires are generated from upstream metadata
%pyproject_buildrequires -r

# The macro supports and pyproject.toml-based build

# The macro supports and pyproject.toml-based build

# Library and metadata files can be saved automatically
%pyproject_save_files gelidum

# %%tox
# for projects without tox, %%pytest is preferred
python3 -m unittest discover -s ./gelidum/tests

# %%{pyproject_files} handles code files, but executables,
# documentation and license must be listed in the spec file:
%files -n python3-gelidum -f %{pyproject_files}
%license LICENSE
%exclude %{python3_sitelib}/gelidum/tests