forked from pool/python-lmfit
Accepting request 873457 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/873457 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lmfit?expand=0&rev=2
This commit is contained in:
commit
2336efa3a3
@ -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
3
lmfit-1.0.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:67090ce56685cf7f92bd7358a1e7d4ad862b3758988109ec440e9825e5184b45
|
||||||
|
size 306039
|
@ -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>
|
Tue Jun 16 08:44:01 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-lmfit
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,8 +18,9 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
|
%define skip_python36 1
|
||||||
Name: python-lmfit
|
Name: python-lmfit
|
||||||
Version: 1.0.1
|
Version: 1.0.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Least-Squares Minimization with Bounds and Constraints
|
Summary: Least-Squares Minimization with Bounds and Constraints
|
||||||
License: MIT AND BSD-3-Clause
|
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: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-asteval >= 0.9.16
|
Requires: python-asteval >= 0.9.21
|
||||||
Requires: python-numpy >= 1.16
|
Requires: python-numpy >= 1.18
|
||||||
Requires: python-scipy >= 1.2
|
Requires: python-scipy >= 1.3
|
||||||
Recommends: python-dill
|
Recommends: python-dill
|
||||||
Recommends: python-emcee
|
Recommends: python-emcee
|
||||||
Recommends: python-matplotlib
|
Recommends: python-matplotlib
|
||||||
@ -38,10 +39,10 @@ Recommends: python-pandas
|
|||||||
Recommends: python-uncertainties >= 3.0.1
|
Recommends: python-uncertainties >= 3.0.1
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module asteval >= 0.9.16}
|
BuildRequires: %{python_module asteval >= 0.9.21}
|
||||||
BuildRequires: %{python_module numpy >= 1.16}
|
BuildRequires: %{python_module numpy >= 1.18}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module scipy >= 1.2}
|
BuildRequires: %{python_module scipy >= 1.3}
|
||||||
BuildRequires: %{python_module uncertainties >= 3.0.1}
|
BuildRequires: %{python_module uncertainties >= 3.0.1}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@ -77,7 +78,16 @@ sed -i -e '/^#!\//, 1d' lmfit/jsonutils.py
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%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
|
cat << 'EOF' >> testexample.py
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@ -109,8 +119,7 @@ EOF
|
|||||||
|
|
||||||
cat testexample.py
|
cat testexample.py
|
||||||
|
|
||||||
python3 testexample.py
|
%python_exec testexample.py
|
||||||
|
|
||||||
|
|
||||||
# We don't care about speed, and test_itercb is architecture-specific
|
# We don't care about speed, and test_itercb is architecture-specific
|
||||||
# test_model_nan_policy - fails on non x86_64
|
# test_model_nan_policy - fails on non x86_64
|
||||||
@ -120,6 +129,7 @@ python3 testexample.py
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst THANKS.txt
|
%doc README.rst THANKS.txt
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/lmfit
|
||||||
|
%{python_sitelib}/lmfit-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user