diff --git a/0001-fix-rpmbuild-failed.patch b/0001-fix-rpmbuild-failed.patch deleted file mode 100644 index 35fd3771d04b2b8bd58f3919c571af06988e2182..0000000000000000000000000000000000000000 --- a/0001-fix-rpmbuild-failed.patch +++ /dev/null @@ -1,19 +0,0 @@ -From 4b0f2531a2dc78c57ceb65e3b224dc246c08dbde Mon Sep 17 00:00:00 2001 -From: huangduirong -Date: Wed, 25 Aug 2021 09:00:54 -0400 -Subject: [PATCH 1/1] fix rpmbuild failed - ---- - beniget-0.4.1/requirements.txt | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/beniget-0.4.1/requirements.txt b/beniget-0.4.1/requirements.txt -index 6c43616..e7dff95 100644 ---- a/beniget-0.4.1/requirements.txt -+++ b/beniget-0.4.1/requirements.txt -@@ -1 +1 @@ --gast ~= 0.5.0 -+gast>=0.5.0 --- -2.27.0 - diff --git a/beniget-0.4.1.tar.gz b/beniget-0.4.1.tar.gz deleted file mode 100644 index 503270b31b2fe90ae98923f548a4e8fd9eb67cff..0000000000000000000000000000000000000000 Binary files a/beniget-0.4.1.tar.gz and /dev/null differ diff --git a/beniget-0.4.2.post1.tar.gz b/beniget-0.4.2.post1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c28e888d05cdf687f97d282b535483475f00f6d5 Binary files /dev/null and b/beniget-0.4.2.post1.tar.gz differ diff --git a/python-beniget.spec b/python-beniget.spec index 76da75ba49edbcf1816a5a4dfd4b89435e51b397..3fd7e7b7b5937dd0f8b9e21feca52bb2e8a3392c 100644 --- a/python-beniget.spec +++ b/python-beniget.spec @@ -1,17 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-beniget -Version: 0.4.1 -Release: 2 +Version: 0.4.2.post1 +Release: 1 Summary: Extract semantic information about static Python code License: BSD-3-Clause URL: https://github.com/serge-sans-paille/beniget/ -Source0: https://files.pythonhosted.org/packages/14/e7/50cbac38f77eca8efd39516be6651fdb9f3c4c0fab8cf2cf05f612578737/beniget-0.4.1.tar.gz +Source0: %{url}/archive/%{version}/beniget-%{version}.tar.gz BuildArch: noarch -Requires: python3-gast - -Patch0: 0001-fix-rpmbuild-failed.patch - %description A static analyzer for Python2 and Python3 code. Beniget provides a static over-approximation of the global and @@ -23,6 +19,8 @@ Summary: Extract semantic information about static Python code Provides: python-beniget BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pytest +BuildRequires: python3-gast %description -n python3-beniget A static analyzer for Python2 and Python3 code. Beniget provides a static over-approximation of the global and @@ -39,7 +37,7 @@ local definitions inside Python Module/Class/Function. It can also compute def-use chains from each definition. %prep -%autosetup -n beniget-0.4.1 +%autosetup -n beniget-%{version} %build %py3_build @@ -72,6 +70,9 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . +%check +pytest -v tests/*.py + %files -n python3-beniget -f filelist.lst %dir %{python3_sitelib}/* @@ -79,6 +80,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Wed Apr 30 2025 liangqifeng - 0.4.2.post1-1 +- Update to 0.4.2.post1 + * Fri Jun 17 2022 liukuo - 0.4.1-2 - License compliance rectification diff --git a/python-beniget.yaml b/python-beniget.yaml new file mode 100644 index 0000000000000000000000000000000000000000..12eaf7a9454a253f79b26f19f86a2d91a8198923 --- /dev/null +++ b/python-beniget.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: serge-sans-paille/beniget +tag_prefix: ^ +separator: .