diff --git a/.gitignore b/.gitignore index bae60a1..0a1f75f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ /pre-commit-2.4.0.tar.gz /pre-commit-2.5.0.tar.gz /pre-commit-2.5.1.tar.gz +/pre_commit-2.11.1.tar.gz +/pre-commit-2.11.1.tar.gz diff --git a/0001-disable-tests-with-network-install.patch b/0001-disable-tests-with-network-install.patch new file mode 100644 index 0000000..9e8ea3d --- /dev/null +++ b/0001-disable-tests-with-network-install.patch @@ -0,0 +1,23 @@ +--- a/tests/languages/node_test.py 2021-03-10 01:57:10.000000000 +0100 ++++ b/tests/languages/node_test.py 2021-03-23 20:20:58.740387439 +0100 +@@ -82,7 +82,7 @@ + assert not node.healthy(prefix, 'system') + + +-@xfailif_windows # pragma: win32 no cover ++@pytest.mark.xfail(strict=True) + def test_installs_without_links_outside_env(tmpdir): + tmpdir.join('bin/main.js').ensure().write( + '#!/usr/bin/env node\n' + +--- a/tests/languages/ruby_test.py 2021-03-10 01:57:10.000000000 +0100 ++++ b/tests/languages/ruby_test.py 2021-03-23 20:11:20.654877325 +0100 +@@ -65,7 +65,7 @@ + cmd_output('rbenv', '--help') + + +-@xfailif_windows # pragma: win32 no cover ++@pytest.mark.xfail(strict=True) + def test_install_ruby_with_version(fake_gem_prefix): + ruby.install_environment(fake_gem_prefix, '2.7.2', ()) + diff --git a/pre-commit.spec b/pre-commit.spec index 961a12f..4cfe26f 100644 --- a/pre-commit.spec +++ b/pre-commit.spec @@ -2,13 +2,14 @@ %global pypi_name pre-commit Name: %{pypi_name} -Version: 2.5.1 -Release: 3%{?dist} +Version: 2.11.1 +Release: 1%{?dist} Summary: Framework for managing and maintaining multi-language pre-commit hooks License: MIT URL: https://pre-commit.com Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +Patch0: 0001-disable-tests-with-network-install.patch BuildArch: noarch BuildRequires: python3-devel >= 3.6.1 @@ -23,7 +24,11 @@ BuildRequires: python3dist(identify) >= 1.0.0 %if 0%{?fedora} <= 31 BuildRequires: python3dist(importlib-metadata) %endif +BuildRequires: npm +BuildRequires: nodejs +BuildRequires: rubygems BuildRequires: python3dist(mock) +BuildRequires: python3dist(re-assert) BuildRequires: python3dist(nodeenv) >= 0.11.1 BuildRequires: python3dist(pytest) BuildRequires: python3dist(pyyaml) @@ -81,6 +86,9 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib} %changelog +* Sun Mar 21 2021 Chedi Toueiti - 2.11.1-1 +- Update to version 2.11.1 + * Wed Jan 27 2021 Fedora Release Engineering - 2.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index ef35e84..b084074 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pre-commit-2.5.1.tar.gz) = 860fe77434209148110d24ea67756b941f58d7bd9bf315615eec455f988de6d49764f1228c95e24a8cd5fabd6a6014ed56e5401c306a6e53f6ea5fc29e6782f4 +SHA512 (pre-commit-2.11.1.tar.gz) = 92c6eb5e9af2ef5c9a3707ea0c168dca6f07981814685c552c7c239aa60664d07c0f6b8c9a648d7e5627e3536725dc3c8323d9fddae3a8fd607fb087e395bc15