diff --git a/b4-0.13.0.tar.gz b/b4-0.13.0.tar.gz deleted file mode 100644 index 28ec809..0000000 --- a/b4-0.13.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:816aa2a26539e2ac92790b04726fbe74d52bfe49bd24570e6cfea8281464b9e2 -size 243729 diff --git a/b4-0.14.0.tar.gz b/b4-0.14.0.tar.gz new file mode 100644 index 0000000..3c9cf7c --- /dev/null +++ b/b4-0.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2470164ffeffd3b8217de658d2a2ee9053698f272268ac7563c752d605881d3 +size 267895 diff --git a/b4.changes b/b4.changes index e7924ed..d740861 100644 --- a/b4.changes +++ b/b4.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Jun 17 06:41:56 UTC 2024 - Jiri Slaby + +- update to 0.14.0: + * Switch to using pyproject.toml + * Automatic dependency resolution + * Checkpatch and other pre-submit checks + * Document new features + * Miscellaneous enhancements + ------------------------------------------------------------------- Fri Feb 16 04:40:09 UTC 2024 - Jiri Slaby diff --git a/b4.spec b/b4.spec index 0e76156..3603fd8 100644 --- a/b4.spec +++ b/b4.spec @@ -24,7 +24,7 @@ %global pprefix python311 %endif Name: b4 -Version: 0.13.0 +Version: 0.14.0 Release: 0 Summary: Helper scripts for kernel.org patches License: GPL-2.0-or-later @@ -33,16 +33,16 @@ URL: https://git.kernel.org/pub/scm/utils/b4/b4.git Source0: https://github.com/mricon/b4/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module dkimpy >= 1.0.5} -BuildRequires: %{python_module dnspython >= 2.0.0} -BuildRequires: %{python_module patatt >= 0.5} +BuildRequires: %{python_module patatt >= 0.6} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests >= 2.24.0} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: git-core BuildRequires: git-filter-repo >= 2.30 BuildRequires: python-rpm-macros Requires: %{pprefix}-dkimpy -Requires: %{pprefix}-dnspython Requires: %{pprefix}-patatt Requires: %{pprefix}-requests Requires: git-core @@ -65,21 +65,23 @@ precursor to Lore and Data in the Star Trek universe. rm -rf patatt # ditch shebang from .py files, they are non-executables anyway -sed -i.old '1{/#!.*/d}' b4/*.py +sed -i.old '1{/#!.*/d}' src/b4/*.py %build -%python_build +%pyproject_wheel %install -%python_install -%python_expand %{$python_fix_shebang} +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand rm -rf %{buildroot}%{$python_sitelib}/{tests,b4/man}/ +install -m644 -Dt %{buildroot}%{_mandir}/man5/ src/b4/man/b4.5 %check -%python_exec setup.py check -export PYTHONPATH="./" +rm -r build/lib/tests/ +%pytest +export PYTHONPATH="./build/lib" THEIRS=`%{buildroot}/%{_bindir}/b4 --version` -OURS=`sed -n "s/__VERSION__ = '\(.*\)'/\1/p" b4/__init__.py` +OURS=`sed -n "s/__VERSION__ = '\(.*\)'/\1/p" src/b4/__init__.py` test "$THEIRS" = "$OURS" %{buildroot}/%{_bindir}/b4 --help | grep -q 'mbox,am,shazam,pr' %{buildroot}/%{_bindir}/b4 mbox abc |& grep -q 'Grabbing thread from lore.kernel.org/all/abc/t.mbox.gz'