From e80e9f4a2a038592a7ecf37c505f454ce67ff06f Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) Date: Jan 11 2023 12:14:11 +0000 Subject: feat: update to 1.4.7 (fixes rhbz#2099926) --- diff --git a/.gitignore b/.gitignore index 391f01b..6a85c6a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /python-SALib-1.4.0.2.tar.gz /python-SALib-1.4.4.tar.gz /python-SALib-1.4.5.tar.gz +/python-SALib-1.4.7.tar.gz diff --git a/python-SALib.spec b/python-SALib.spec index 1bc8f56..3eeb0ee 100644 --- a/python-SALib.spec +++ b/python-SALib.spec @@ -22,7 +22,7 @@ Methods included: - Fractional Factorial Sensitivity Analysis (Saltelli et al. 2008)} Name: python-SALib -Version: 1.4.5 +Version: 1.4.7 Release: %autorelease Summary: Sensitivity Analysis Library @@ -39,7 +39,6 @@ Summary: %{summary} BuildRequires: python3-devel %if %{with tests} BuildRequires: %{py3_dist pytest} -BuildRequires: %{py3_dist pytest-cov} %endif # Not mentioned in setup.py, so won't be picked up by the generator @@ -57,26 +56,19 @@ Requires: %{py3_dist matplotlib} >= 1.4.3 sed -i 's/python {cli}/python3 {cli}/' tests/test_cli_sample.py sed -i 's/python {cli}/python3 {cli}/' tests/test_cli_analyze.py -# https://github.com/SALib/SALib/commit/2eb776b6c7ff0737e4d9855709e6e24c19e36971.patch -sed -i 's/rU/r/' src/SALib/util/__init__.py - # Correct permission -chmod -x LICENSE.txt +chmod -x LICENSE.md src/SALib/analyze/__init__.py src/SALib/sample/__init__.py # Remove /usr/bin/env python shebang find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' # Correct end of line encoding -sed -i 's/\r$//' LICENSE.txt +sed -i 's/\r$//' LICENSE.md sed -i 's/\r$//' src/SALib/analyze/rbd_fast.py %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} -%if %{with tests} -%pyproject_buildrequires -r -%else %pyproject_buildrequires -%endif %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} @@ -87,9 +79,6 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_install %pyproject_save_files SALib -# Add a shebang to missing script -sed -i "1 i \#\!%{python3}" $RPM_BUILD_ROOT/%{_bindir}/salib.py - %check %if %{with tests} export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} @@ -99,7 +88,6 @@ PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib} %{pytest} %files -n python3-SALib -f %{pyproject_files} %doc README.rst README-advanced.md CHANGELOG.md CITATIONS.rst AUTHORS.rst FAQ.MD %{_bindir}/salib -%{_bindir}/salib.py %changelog %autochangelog diff --git a/sources b/sources index feabe66..cab3868 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-SALib-1.4.5.tar.gz) = ba8679c70a67ef17a526b5e95bf6bac19f38bb710e44b1ae4d616398bbf7e104d0160464d466212a9594f4742412e72fc30e333a1883661a66952d32aa743e59 +SHA512 (python-SALib-1.4.7.tar.gz) = 582ce060232215f6fca992e85629b560b10586288fb15bfb08b976dd56a0613865b9ad143f33bdd4c7bc951102f7f2ccf3d28278486d1bdd22b317f027e8be94