Blob Blame History Raw
Name:           python-beniget
Version:        0.4.1
Release:        %autorelease
Summary:        Extract semantic information about static Python code
License:        BSD-3-Clause
Source0:        %{url}/archive/%{version}/beniget-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-pytest

%global _description %{expand:
A static analyzer for Python2 and Python3 code.Beniget provides a static over-
approximation of the global and local definitions inside Python
Module/Class/Function. It can also compute def-use chains from each definition.}
%description %_description

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

%description -n python3-beniget %_description

%autosetup -n beniget-%{version}

# Don't use tox options to avoid an unwanted dependency in RHEL


%pyproject_save_files beniget

# tox.ini has test, but that's deprecated
# use pytest, but beware the tests are not named test*.py
%pytest -v tests/*.py

%files -n python3-beniget -f %{pyproject_files}
%doc README.rst