From 48dac7dee95ae04e7e49c2e9d5eb24471df4a31f Mon Sep 17 00:00:00 2001 From: Aniket Pradhan Date: Jul 04 2021 18:59:48 +0000 Subject: Update to v2.13.0 --- diff --git a/.gitignore b/.gitignore index 0a1f75f..e18bcb5 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /pre-commit-2.5.1.tar.gz /pre_commit-2.11.1.tar.gz /pre-commit-2.11.1.tar.gz +/pre-commit-2.13.0.tar.gz diff --git a/pre-commit.spec b/pre-commit.spec index ef985bb..d06978f 100644 --- a/pre-commit.spec +++ b/pre-commit.spec @@ -2,8 +2,8 @@ %global pypi_name pre-commit Name: %{pypi_name} -Version: 2.11.1 -Release: 2%{?dist} +Version: 2.13.0 +Release: 1%{?dist} Summary: Framework for managing and maintaining multi-language pre-commit hooks License: MIT @@ -12,7 +12,7 @@ Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-% Patch0: 0001-disable-tests-with-network-install.patch BuildArch: noarch -BuildRequires: python3-devel >= 3.6.1 +BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %if %{with check} @@ -21,9 +21,6 @@ BuildRequires: python3dist(aspy.yaml) BuildRequires: python3dist(cfgv) >= 2.0.0 BuildRequires: python3dist(flake8) BuildRequires: python3dist(identify) >= 1.0.0 -%if 0%{?fedora} <= 31 -BuildRequires: python3dist(importlib-metadata) -%endif BuildRequires: npm BuildRequires: nodejs BuildRequires: rubygems @@ -37,8 +34,6 @@ BuildRequires: python3dist(toml) BuildRequires: python3dist(virtualenv) >= 20 %endif -%?python_enable_dependency_generator - %description A framework for managing and maintaining multi-language pre-commit hooks. @@ -68,9 +63,9 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib} # Disable few tests # * 'make_archives_test' and 'repository_test' need a network connection, hence disabled. # * 'install_uninstall_test' needs pytest-env (currently not packaged) -%{python3} -m pytest -v \ - --deselect tests/make_archives_test.py \ - --deselect tests/repository_test.py \ +%pytest -v \ + --deselect tests/make_archives_test.py \ + --deselect tests/repository_test.py \ --deselect tests/commands/install_uninstall_test.py %endif @@ -86,6 +81,13 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib} %changelog +* Sat Jul 03 2021 Aniket Pradhan - 2.13.0-1 +- Version update to 2.13.0 +- Remove redundant dependency generator call +- Use pytest macro +- Remove unnecessary python-devel version requirement +- Removed the dependency for Fedora 31 or lower + * Fri Jun 04 2021 Python Maint - 2.11.1-2 - Rebuilt for Python 3.10 diff --git a/sources b/sources index b084074..d72f811 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pre-commit-2.11.1.tar.gz) = 92c6eb5e9af2ef5c9a3707ea0c168dca6f07981814685c552c7c239aa60664d07c0f6b8c9a648d7e5627e3536725dc3c8323d9fddae3a8fd607fb087e395bc15 +SHA512 (pre-commit-2.13.0.tar.gz) = 5dfc297b3f900afef8f1c355b38ce086af7c836d1e577af8ec95ffb30e82df8b866131da4ff12933339bda63e4a90833c3852265d4f2d4a59bf92bce2b972a5e