forked from pool/python-pre-commit
Accepting request 1129254 from home:theMarix:branches:devel:languages:python
- For Leap, build this on modern Python as 3.6 is no longer supported. - On Leap, use Lua 5.3 as luarocks is not packaged for Lua 5.4. - On Leap, disable Perl install test as that requires network for CPAN initialisation. Note that, right now, this won't fix the 15.6 build as the dependency python-editdistance is from devel:languages:python:numeric and the fixed version in that repo is not visible in devel:languages:python. However, this will at least give us a working build on devel:languages:python:backports. And once the fixed version of python-editdistance makes it into 15.6 we will also get a working build for 15.6 over here. OBS-URL: https://build.opensuse.org/request/show/1129254 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=29
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 27 20:27:50 UTC 2023 - Matthias Bach <marix@marix.org> - 3.5.0
|
||||||
|
|
||||||
|
- For Leap, build this on modern Python as 3.6 is no longer supported.
|
||||||
|
- On Leap, use Lua 5.3 as luarocks is not packaged for Lua 5.4.
|
||||||
|
- On Leap, disable Perl install test as that requires network for
|
||||||
|
CPAN initialisation.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 1 10:32:51 UTC 2023 - Matthias Fehring <buschmann23@opensuse.org> - 3.5.0
|
Wed Nov 1 10:32:51 UTC 2023 - Matthias Fehring <buschmann23@opensuse.org> - 3.5.0
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pre-commit
|
Name: python-pre-commit
|
||||||
Version: 3.5.0
|
Version: 3.5.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -26,8 +26,6 @@ URL: https://github.com/pre-commit/pre-commit
|
|||||||
Source: https://github.com/pre-commit/pre-commit/archive/v%{version}.tar.gz#/pre-commit-%{version}.tar.gz
|
Source: https://github.com/pre-commit/pre-commit/archive/v%{version}.tar.gz#/pre-commit-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: lua54-devel
|
|
||||||
BuildRequires: lua54-luarocks
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-PyYAML >= 5.1
|
Requires: python-PyYAML >= 5.1
|
||||||
Requires: python-cfgv >= 2.0.0
|
Requires: python-cfgv >= 2.0.0
|
||||||
@@ -35,8 +33,15 @@ Requires: python-identify >= 1.0.0
|
|||||||
Requires: python-nodeenv >= 0.11.1
|
Requires: python-nodeenv >= 0.11.1
|
||||||
Requires: python-virtualenv >= 20.10.0
|
Requires: python-virtualenv >= 20.10.0
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if 0%{?sle_version} <= 150600 && 0%{?is_opensuse}
|
||||||
|
BuildRequires: lua53-devel
|
||||||
|
BuildRequires: lua53-luarocks
|
||||||
|
%else
|
||||||
|
BuildRequires: lua54-devel
|
||||||
|
BuildRequires: lua54-luarocks
|
||||||
|
%endif
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module PyYAML >= 5.1}
|
BuildRequires: %{python_module PyYAML >= 5.1}
|
||||||
BuildRequires: %{python_module cfgv >= 2.0.0}
|
BuildRequires: %{python_module cfgv >= 2.0.0}
|
||||||
@@ -94,6 +99,11 @@ EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_python_repo_python2 or rust_test"
|
|||||||
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_run_example_executable or test_run_dep or test_perl_additional_dependencies or test_lua_additional_dependencies"
|
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_run_example_executable or test_run_dep or test_perl_additional_dependencies or test_lua_additional_dependencies"
|
||||||
# requires swift
|
# requires swift
|
||||||
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_swift_language"
|
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_swift_language"
|
||||||
|
%if 0%{?sle_version} <= 150600 && 0%{?is_opensuse}
|
||||||
|
# requires network on Leap
|
||||||
|
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_perl_install"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Fix issue with git submodule in OBS
|
# Fix issue with git submodule in OBS
|
||||||
git config --global --add protocol.file.allow always
|
git config --global --add protocol.file.allow always
|
||||||
|
Reference in New Issue
Block a user