bb56e9f
Name:           python-beniget
b59233d
Version:        0.4.1
3989a47
Release:        %autorelease
65d5d7c
Summary:        Extract semantic information about static Python code
41f66f6
License:        BSD-3-Clause
65d5d7c
URL:            https://github.com/serge-sans-paille/beniget/
bb56e9f
Source0:        %{url}/archive/%{version}/beniget-%{version}.tar.gz
65d5d7c
BuildArch:      noarch
65d5d7c
65d5d7c
BuildRequires:  python3-devel
cf53d27
BuildRequires:  python3-pytest
65d5d7c
bb56e9f
bb56e9f
%global _description %{expand:
65d5d7c
A static analyzer for Python2 and Python3 code.Beniget provides a static over-
65d5d7c
approximation of the global and local definitions inside Python
bb56e9f
Module/Class/Function. It can also compute def-use chains from each definition.}
bb56e9f
%description %_description
bb56e9f
65d5d7c
bb56e9f
%package -n     python3-beniget
65d5d7c
Summary:        %{summary}
65d5d7c
bb56e9f
%description -n python3-beniget %_description
65d5d7c
65d5d7c
65d5d7c
%prep
bb56e9f
%autosetup -n beniget-%{version}
bb56e9f
bb56e9f
bb56e9f
%generate_buildrequires
cf53d27
# Don't use tox options to avoid an unwanted dependency in RHEL
cf53d27
%pyproject_buildrequires
bb56e9f
65d5d7c
65d5d7c
%build
bb56e9f
%pyproject_wheel
bb56e9f
65d5d7c
65d5d7c
%install
bb56e9f
%pyproject_install
bb56e9f
%pyproject_save_files beniget
bb56e9f
65d5d7c
65d5d7c
%check
cf53d27
# tox.ini has setup.py test, but that's deprecated
cf53d27
# use pytest, but beware the tests are not named test*.py
cf53d27
%pytest -v tests/*.py
65d5d7c
bb56e9f
bb56e9f
%files -n python3-beniget -f %{pyproject_files}
65d5d7c
%doc README.rst
bb56e9f
65d5d7c
65d5d7c
%changelog
3989a47
%autochangelog