forked from pool/pyenv
- Almost working testing.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/pyenv?expand=0&rev=96
This commit is contained in:
parent
171b74ebcb
commit
c03d71c59e
21
fix-tests.patch
Normal file
21
fix-tests.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
Makefile | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -7,7 +7,7 @@ unexport PYTHON_CONFIGURE_OPTS
|
||||||
|
test: test-unit test-plugin
|
||||||
|
|
||||||
|
test-unit: bats
|
||||||
|
- PATH="./bats/bin:$$PATH" test/run
|
||||||
|
+ test/run
|
||||||
|
|
||||||
|
test-plugin: bats
|
||||||
|
cd plugins/python-build && $(PWD)/bats/bin/bats $${CI:+--tap} test
|
||||||
|
@@ -26,4 +26,4 @@ test-build:
|
||||||
|
$(PYTHON_BUILD_TEST_PREFIX)/bin/pip -V
|
||||||
|
|
||||||
|
bats:
|
||||||
|
- git clone --depth 1 --branch v1.2.0 https://github.com/bats-core/bats-core.git bats
|
||||||
|
+ /bin/true
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 22 18:45:30 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Almost working testing.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 22 08:11:10 UTC 2024 - Thomas Schraitle <thomas.schraitle@suse.com> - 2.4.8
|
Mon Jul 22 08:11:10 UTC 2024 - Thomas Schraitle <thomas.schraitle@suse.com> - 2.4.8
|
||||||
|
|
||||||
|
@ -26,8 +26,12 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/pyenv/pyenv
|
URL: https://github.com/pyenv/pyenv
|
||||||
Source: https://github.com/pyenv/pyenv/archive/refs/tags/v%{version}.tar.gz#/pyenv-%{version}.tar.gz
|
Source: https://github.com/pyenv/pyenv/archive/refs/tags/v%{version}.tar.gz#/pyenv-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM fix-tests.patch bsc#[0-9]+ mcepl@suse.com
|
||||||
|
# make bats working
|
||||||
|
Patch0: fix-tests.patch
|
||||||
#
|
#
|
||||||
BuildRequires: bash-completion
|
BuildRequires: bash-completion
|
||||||
|
BuildRequires: bats
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: fish
|
BuildRequires: fish
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -145,6 +149,10 @@ popd
|
|||||||
|
|
||||||
%fdupes %{buildroot}%{pyenv_dir}
|
%fdupes %{buildroot}%{pyenv_dir}
|
||||||
|
|
||||||
|
%check
|
||||||
|
export PATH="$PATH:%{buildroot}%{_libexecdir}/pyenv/libexec"
|
||||||
|
make test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc CHANGELOG.md COMMANDS.md README.md
|
%doc CHANGELOG.md COMMANDS.md README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user