Skip to content

Commit

Permalink
Merge pull request #343 from lmfit/prep0.9.4
Browse files Browse the repository at this point in the history
Prepare 0.9.4
  • Loading branch information
newville authored Jul 7, 2016
2 parents 22f48e6 + 4baaae8 commit 2720249
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 23 deletions.
11 changes: 9 additions & 2 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ To install the lmfit python module, use::
python setup.py build
python setup.py install

Python 2.6 or higher is required, as are numpy and scipy.
For lmfit 0.9.4, the following versions are required:
Python: 2.6, 2.7, 3.3, 3.4, or 3.5
Numpy: 1.5 or higher
Scipy: 0.13 or higher

Note that Python 2.6 and scipy 0.13 are deprecated, and
support and testing with them will be dropped in 0.9.5.


Matt Newville <newville@cars.uchicago.edu>
Last Update: 2013-Dec-15
Last Update: 2016-July-1
3 changes: 2 additions & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Non-Linear Least-Square Minimization and Curve-Fitting for Python

.. warning::

Support for Python 2.6.x will be officially dropped following version 0.9.4 (in 0.9.5)
Support for Python 2.6 and scipy 0.13 will be dropped with version 0.9.5.


Lmfit provides a high-level interface to non-linear optimization and curve
fitting problems for Python. Lmfit builds on and extends many of the
Expand Down
38 changes: 21 additions & 17 deletions doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,42 @@ Downloading and Installation
Prerequisites
~~~~~~~~~~~~~~~

The lmfit package requires Python, Numpy, and Scipy. Scipy version 0.13 or
higher is recommended, but extensive testing on compatibility with various
versions of scipy has not been done. Lmfit works with Python 2.7, 3.3 and
3.4. Lmfit works with Python 2.6 only for versions <= 0.9.4. No testing has
been done with Python 3.5, but as the package is pure Python, relying only on
scipy and numpy, no significant troubles are expected. The `nose`_ framework
is required for running the test suite, and IPython and matplotib are
recommended. If Pandas is available, it will be used in portions of lmfit.
The lmfit package requires Python, Numpy, and Scipy.

Lmfit works with Python 2.7, 3.3, 3.4, and 3.5. Lmfit version 0.9.4 works
with Python 2.6, but support for it will dropped in version 0.9.5. Scipy
version 0.13 or higher is required, with 0.17 or higher recommended to be
able to use the latest optimization features from scipy. Support for scipy
0.13 will be dropped in version 0.9.5. Numpy version 1.5 or higher is
required.

In order to run the test suite, the `nose`_ framework is required. Some
parts of lmfit will be able to make use of IPython (version 4 or higher),
matplotlib, and pandas if those libraries are installed, but no core
functionality of lmfit requires these.


Downloads
~~~~~~~~~~~~~


The latest stable version of lmfit is available from `PyPi <http://pypi.python.org/pypi/lmfit/>`_.
The latest stable version of lmfit is |release| is available from `PyPi
<http://pypi.python.org/pypi/lmfit/>`_.

Installation
~~~~~~~~~~~~~~~~~

If you have `pip`_ installed, you can install lmfit with::
If you have `pip`_ installed, you can install lmfit with::

pip install lmfit

or, if you have `Python Setup Tools`_ installed, you install lmfit with::

easy_install -U lmfit
or you can download the source kit, unpack it and install with::

python setup.py install

or, you can download the source kit, unpack it and install with::
For Anaconda Python, lmfit is not an official packages, but several
Anaconda channels provide it, allowing installation with (for example)::

python setup.py install
conda install -c newville lmfit


Development Version
Expand All @@ -50,7 +55,6 @@ To get the latest development version, use::

git clone http://github.com/lmfit/lmfit-py.git


and install using::

python setup.py install
Expand Down
13 changes: 10 additions & 3 deletions lmfit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* Many pre-built models for common lineshapes are included and ready to use.
version: 0.8.0
last update: 2014-Sep-21
version: 0.9.4
last update: 2016-Jul-1
License: MIT
Authors: Matthew Newville, The University of Chicago
Till Stensitzki, Freie Universitat Berlin
Expand Down Expand Up @@ -57,4 +57,11 @@

# PY26 Depreciation Warning
if sys.version_info[:2] == (2, 6):
warnings.warn('Support for Python 2.6.x is depreciated in Lmfit 0.9.4 and will be dropped in 0.9.5', DeprecationWarning)
warnings.warn('Support for Python 2.6.x will be dropped in lmfit 0.9.5')

# SCIPY 0.13 Depreciation Warning
import scipy
scipy_major, scipy_minor, scipy_other = scipy.__version__.split('.', 2)

if int(scipy_major) == 0 and int(scipy_minor) < 14:
warnings.warn('Support for Scipy 0.13 will be dropped in lmfit 0.9.5')

0 comments on commit 2720249

Please sign in to comment.