SHA256
1
0
forked from pool/python-lmfit

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
This commit is contained in:
Markéta Machová 2021-02-18 15:30:09 +00:00 committed by Git OBS Bridge
parent cfb4789d41
commit 635dd2b355
4 changed files with 44 additions and 15 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d249eb756899360f4d2a544c9458f47fc8f765ac22c09e099530585fd64e286e
size 258368

3
lmfit-1.0.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:67090ce56685cf7f92bd7358a1e7d4ad862b3758988109ec440e9825e5184b45
size 306039

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Wed Feb 17 11:46:57 UTC 2021 - Ben Greiner <code@bnavigator.de>
- 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 <tchvatal@suse.com>

View File

@ -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