From 635dd2b355b2e89bcf3ba7de4c1e3be7099c2e44e42d13e2a8fea024398d5d27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 18 Feb 2021 15:30:09 +0000 Subject: [PATCH] Accepting request 873450 from home:bnavigator:branches:devel:languages:python:numeric - Update to version 1.0.2 * officially supports Python 3.9 and has dropped support for Python 3.5. The minimum version of the following dependencies were updated: asteval>=0.9.21, numpy>=1.18, and scipy>=1.3. New features: * added two-dimensional Gaussian lineshape and model (PR #642; @mpmdean) * all built-in models are now registered in lmfit.models. lmfit_models; new Model class attribute valid_forms (PR #663; @rayosborn) * added a SineModel (PR #676; @lneuhaus) * add the run_mcmc_kwargs argument to Minimizer.emcee to pass to the emcee.EnsembleSampler.run_mcmc function (PR #694; @rbnvrw) - Skip python36 build: Numpy 1.20 dropped support for Python 3.6 (NEP 29) OBS-URL: https://build.opensuse.org/request/show/873450 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-lmfit?expand=0&rev=4 --- lmfit-1.0.1.tar.gz | 3 --- lmfit-1.0.2.tar.gz | 3 +++ python-lmfit.changes | 19 +++++++++++++++++++ python-lmfit.spec | 34 ++++++++++++++++++++++------------ 4 files changed, 44 insertions(+), 15 deletions(-) delete mode 100644 lmfit-1.0.1.tar.gz create mode 100644 lmfit-1.0.2.tar.gz diff --git a/lmfit-1.0.1.tar.gz b/lmfit-1.0.1.tar.gz deleted file mode 100644 index 060b24a..0000000 --- a/lmfit-1.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d249eb756899360f4d2a544c9458f47fc8f765ac22c09e099530585fd64e286e -size 258368 diff --git a/lmfit-1.0.2.tar.gz b/lmfit-1.0.2.tar.gz new file mode 100644 index 0000000..d5e1bf3 --- /dev/null +++ b/lmfit-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67090ce56685cf7f92bd7358a1e7d4ad862b3758988109ec440e9825e5184b45 +size 306039 diff --git a/python-lmfit.changes b/python-lmfit.changes index aa6ec72..373da2b 100644 --- a/python-lmfit.changes +++ b/python-lmfit.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Wed Feb 17 11:46:57 UTC 2021 - Ben Greiner + +- Update to version 1.0.2 + * officially supports Python 3.9 and has dropped support for + Python 3.5. The minimum version of the following dependencies + were updated: asteval>=0.9.21, numpy>=1.18, and scipy>=1.3. + New features: + * added two-dimensional Gaussian lineshape and model (PR #642; + @mpmdean) + * all built-in models are now registered in lmfit.models. + lmfit_models; new Model class attribute valid_forms (PR #663; + @rayosborn) + * added a SineModel (PR #676; @lneuhaus) + * add the run_mcmc_kwargs argument to Minimizer.emcee to pass to + the emcee.EnsembleSampler.run_mcmc function (PR #694; @rbnvrw) +- Skip python36 build: Numpy 1.20 dropped support for Python 3.6 + (NEP 29) + ------------------------------------------------------------------- Tue Jun 16 08:44:01 UTC 2020 - Tomáš Chvátal diff --git a/python-lmfit.spec b/python-lmfit.spec index 4d9d28c..ca494b6 100644 --- a/python-lmfit.spec +++ b/python-lmfit.spec @@ -1,7 +1,7 @@ # # spec file for package python-lmfit # -# Copyright (c) 2020 SUSE LLC. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,8 +18,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 +%define skip_python36 1 Name: python-lmfit -Version: 1.0.1 +Version: 1.0.2 Release: 0 Summary: Least-Squares Minimization with Bounds and Constraints License: MIT AND BSD-3-Clause @@ -28,9 +29,9 @@ Source: https://files.pythonhosted.org/packages/source/l/lmfit/lmfit-%{v BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-asteval >= 0.9.16 -Requires: python-numpy >= 1.16 -Requires: python-scipy >= 1.2 +Requires: python-asteval >= 0.9.21 +Requires: python-numpy >= 1.18 +Requires: python-scipy >= 1.3 Recommends: python-dill Recommends: python-emcee Recommends: python-matplotlib @@ -38,10 +39,10 @@ Recommends: python-pandas Recommends: python-uncertainties >= 3.0.1 BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module asteval >= 0.9.16} -BuildRequires: %{python_module numpy >= 1.16} +BuildRequires: %{python_module asteval >= 0.9.21} +BuildRequires: %{python_module numpy >= 1.18} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module scipy >= 1.2} +BuildRequires: %{python_module scipy >= 1.3} BuildRequires: %{python_module uncertainties >= 3.0.1} # /SECTION %python_subpackages @@ -77,7 +78,16 @@ sed -i -e '/^#!\//, 1d' lmfit/jsonutils.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -python3 -c "import sys, lmfit, numpy, scipy, asteval, uncertainties, six;print('Python: {}\n\nlmfit: {}, scipy: {}, numpy: {}, asteval: {}, uncertainties: {}, six: {}'.format(sys.version, lmfit.__version__, scipy.__version__, numpy.__version__, asteval.__version__, uncertainties.__version__, six.__version__))" +%{python_exec -c "import sys, lmfit, numpy, scipy, asteval, uncertainties, six; +print('Python: {}\n\n' +'lmfit: {}, scipy: {}, numpy: {}, asteval: {}, uncertainties: {}, six: {}'.format( + sys.version, + lmfit.__version__, + scipy.__version__, + numpy.__version__, + asteval.__version__, + uncertainties.__version__, + six.__version__))"} cat << 'EOF' >> testexample.py import numpy as np @@ -109,8 +119,7 @@ EOF cat testexample.py -python3 testexample.py - +%python_exec testexample.py # We don't care about speed, and test_itercb is architecture-specific # test_model_nan_policy - fails on non x86_64 @@ -120,6 +129,7 @@ python3 testexample.py %files %{python_files} %doc README.rst THANKS.txt %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/lmfit +%{python_sitelib}/lmfit-%{version}*-info %changelog