From 48f5e847a505e6c8e7e3dd5e28c660d514880ce1aa42026a0a03c43700b0261f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 19 Jul 2020 05:17:11 +0000 Subject: [PATCH] Accepting request 821705 from home:jayvdb:branches:devel:languages:python - Ignore one test failure to fix builds - Set LANG to fix openSUSE 15.1 builds - specfile: * update version requirement for virtualenv - update to version 2.6.0: OBS-URL: https://build.opensuse.org/request/show/821705 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=8 --- pre_commit-2.3.0.tar.gz | 3 -- pre_commit-2.6.0.tar.gz | 3 ++ python-pre-commit.changes | 93 +++++++++++++++++++++++++++++++++++++++ python-pre-commit.spec | 11 ++--- 4 files changed, 102 insertions(+), 8 deletions(-) delete mode 100644 pre_commit-2.3.0.tar.gz create mode 100644 pre_commit-2.6.0.tar.gz diff --git a/pre_commit-2.3.0.tar.gz b/pre_commit-2.3.0.tar.gz deleted file mode 100644 index 443e631..0000000 --- a/pre_commit-2.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cbe534c57d0e0e17b0a739d71bb0d33a3bc295e65d6d125860bcfc7053abd645 -size 217937 diff --git a/pre_commit-2.6.0.tar.gz b/pre_commit-2.6.0.tar.gz new file mode 100644 index 0000000..a2939a5 --- /dev/null +++ b/pre_commit-2.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e97b47762f75a2dbbb863cfe824ffab6782fc2bb6763e83876efa6164665038 +size 219530 diff --git a/python-pre-commit.changes b/python-pre-commit.changes index 5acb711..168dab3 100644 --- a/python-pre-commit.changes +++ b/python-pre-commit.changes @@ -1,3 +1,96 @@ +------------------------------------------------------------------- +Sun Jul 19 03:46:47 UTC 2020 - John Vandenberg + +- Ignore one test failure to fix builds +- Set LANG to fix openSUSE 15.1 builds + +------------------------------------------------------------------- +Fri Jul 3 03:05:43 UTC 2020 - Arun Persaud + +- specfile: + * update version requirement for virtualenv + +- update to version 2.6.0: + * Fixes + + Fix node hooks when NPM_CONFIG_USERCONFIG is set + #1521 PR by @asottile. + #1516 issue by @rkm. + * Features + + Skip rbenv / ruby-download if system ruby is available + #1509 PR by @asottile. + + Partial support for ruby on windows (if system ruby is + installed) + #1509 PR by @asottile. + #201 issue by @asottile. + +------------------------------------------------------------------- +Sun Jun 28 18:48:43 UTC 2020 - Arun Persaud + +- update to version 2.5.1: + * Fixes + + Prevent infinite recursion of post-checkout on clone + #1497 PR by @asottile. + #1496 issue by @admorgan. + +- changes from version 2.5.0: + * Features + + Expose a PRE_COMMIT=1 environment variable when running hooks + #1467 PR by @tech-chad. + #1426 issue by @lorenzwalthert. + * Fixes + + Fix UnicodeDecodeError on windows when using the py launcher to + detect executables with non-ascii characters in the path + #1474 PR by @asottile. + #1472 issue by DrFobos. + + Fix DeprecationWarning on python3.9 for random.shuffle method + #1480 PR by @asottile. + #1479 issue by @isidentical. + + Normalize slashes earlier such that global files / exclude use + forward slashes on windows as well. + #1494 PR by @asottile. + #1476 issue by @harrybiddle. + +------------------------------------------------------------------- +Sat May 23 19:57:34 UTC 2020 - Arun Persaud + +- update to version 2.4.0: + * Features + + Add support for post-commit hooks + #1415 PR by @ModischFabrications. + #1411 issue by @ModischFabrications. + + Silence pip version warning in python installation error + #1412 PR by @asottile. + + Improve python healthy() when upgrading operating systems. + #1431 PR by @asottile. + #1427 issue by @ahonnecke. + + language: python_venv is now an alias to language: python (and + will be removed in a future version). + #1431 PR by @asottile. + + Speed up python healthy() check. + #1431 PR by @asottile. + + pre-commit autoupdate now tries to maintain quoting style of + rev. + #1435 PR by @marcjay. + #1434 issue by @marcjay. + * Fixes + + Fix installation of go modules in repo: local. + #1428 PR by @scop. + + Fix committing with unstaged files and a failing post-checkout + hook. + #1422 PR by @domodwyer. + #1418 issue by @domodwyer. + + Fix installation of node hooks with system node installed on + freebsd. + #1443 PR by @asottile. + #1440 issue by @jockej. + + Fix ruby hooks when GEM_PATH is set globally. + #1442 PR by @tdeo. + + Improve error message when pre-commit autoupdate / pre-commit + migrate-config are run but the pre-commit configuration is not + valid yaml. + #1448 PR by @asottile. + #1447 issue by @rpdelaney. + ------------------------------------------------------------------- Sat May 2 21:01:03 UTC 2020 - Arun Persaud diff --git a/python-pre-commit.spec b/python-pre-commit.spec index 6244673..8713c30 100644 --- a/python-pre-commit.spec +++ b/python-pre-commit.spec @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pre-commit -Version: 2.3.0 +Version: 2.6.0 Release: 0 Summary: Multi-language pre-commit hooks License: MIT @@ -34,7 +34,7 @@ Requires: python-cfgv >= 2.0.0 Requires: python-identify >= 1.0.0 Requires: python-nodeenv >= 0.11.1 Requires: python-toml -Requires: python-virtualenv >= 15.2 +Requires: python-virtualenv >= 20.0.8 BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyYAML >= 5.1} @@ -45,7 +45,7 @@ BuildRequires: %{python_module nodeenv >= 0.11.1} BuildRequires: %{python_module pytest-env} BuildRequires: %{python_module pytest} BuildRequires: %{python_module toml} -BuildRequires: %{python_module virtualenv >= 15.2} +BuildRequires: %{python_module virtualenv >= 20.0.8} BuildRequires: git-core BuildRequires: python3 # /SECTION @@ -68,7 +68,7 @@ sed -i 's|^#!%{_bindir}/env python|#!%{_bindir}/python|' pre_commit/resources/ho %check export GIT_AUTHOR_NAME=test GIT_COMMITTER_NAME=test \ GIT_AUTHOR_EMAIL=test@example.com GIT_COMMITTER_EMAIL=test@example.com \ - VIRTUALENV_NO_DOWNLOAD=1 PRE_COMMIT_NO_CONCURRENCY=1 + VIRTUALENV_NO_DOWNLOAD=1 PRE_COMMIT_NO_CONCURRENCY=1 LANG=en_US.UTF-8 # # gh#pre-commit/pre-commit#1202 # # test_switch_language_versions_doesnt_clobber - looks like your installation of python is broken? # # test_run_a_ruby_hook, test_additional_ruby_dependencies_installed: you need to have gem installed @@ -76,8 +76,9 @@ export GIT_AUTHOR_NAME=test GIT_COMMITTER_NAME=test \ # # test_rust_hook, test_additional_rust_lib_dependencies_installed, test_local_rust_additional_dependencies: you need to have cargo installed # # test_installed_from_venv I suspect you have some PYTHONPATH shenanigans going on? hard to tell # # conda tests: we do not have conda +# # test_node_hook_with_npm_userconfig_set: need internet # # test_perl_hook, test_local_perl_additional_dependencies: need internet -EXCLUDED_TESTS="test_main or test_run_a_node_hook or test_run_versioned_node_hook or test_additional_node_dependencies_installed" +EXCLUDED_TESTS="test_main or test_run_a_node_hook or test_run_versioned_node_hook or test_additional_node_dependencies_installed or test_node_hook_with_npm_userconfig_set" EXCLUDED_TESTS="$EXCLUDED_TESTS or test_run_versioned_ruby_hook or test_run_ruby_hook_with_disable_shared_gems or test_additional_dependencies_roll_forward" EXCLUDED_TESTS="$EXCLUDED_TESTS or test_golang or test_additional_ruby_ or test_additional_golang_ or test_additional_rust_ or test_rust" EXCLUDED_TESTS="$EXCLUDED_TESTS or test_switch_language_versions_doesnt_clobber or test_run_a_ruby_hook or test_local_golang_additional_dependencies"