summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew Parsons <dparsons@debian.org>2023-06-18 01:59:46 +0200
committerDrew Parsons <dparsons@debian.org>2023-06-18 01:59:46 +0200
commitf9c64d1361220bedf0f24d2862708a7804c61d1b (patch)
treeb4f2a0d203dbb3ec934b63a0fcef52bb038284b3
parenta8b0f21418624e101f501ef5a08ae5b31b3e2b7f (diff)
parentc563d3b378ee976a944245d6f26686cb64982525 (diff)
lmfit-py (1.2.1-1) unstable; urgency=medium
* Team upload. * New upstream release. * Build-Depends: python3-setuptools-scm - drop debian patch preserve_version.patch - closes: #1034585 * update versioned Build-Depends python3-asteval (>= 0.9.28~), python3-numpy (>= 1.19~), python3-scipy (>= 1.6~) [dgit import unpatched lmfit-py 1.2.1-1]
-rw-r--r--debian/changelog255
-rw-r--r--debian/control142
-rw-r--r--debian/copyright32
-rw-r--r--debian/patches/0004-jupyter_sphinx-is-not-yet-working-on-Debian.patch19
-rw-r--r--debian/patches/deactivate_test.patch22
-rw-r--r--debian/patches/series2
-rw-r--r--debian/python-lmfit-doc.doc-base9
-rw-r--r--debian/python3-lmfit.remove1
-rwxr-xr-xdebian/rules26
-rw-r--r--debian/source/format1
-rw-r--r--debian/tests/control16
-rw-r--r--debian/upstream/metadata4
-rw-r--r--debian/watch6
13 files changed, 535 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..03186ed
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,255 @@
+lmfit-py (1.2.1-1) unstable; urgency=medium
+
+ * Team upload.
+ * New upstream release.
+ * Build-Depends: python3-setuptools-scm
+ - drop debian patch preserve_version.patch
+ - closes: #1034585
+ * update versioned Build-Depends
+ python3-asteval (>= 0.9.28~),
+ python3-numpy (>= 1.19~),
+ python3-scipy (>= 1.6~)
+
+ -- Drew Parsons <dparsons@debian.org> Sun, 18 Jun 2023 01:59:46 +0200
+
+lmfit-py (1.1.0-1) unstable; urgency=medium
+
+ * Team upload.
+
+ [ Debian Janitor ]
+ * Remove constraints unnecessary since buster (oldstable):
+ + Build-Depends: Drop versioned constraint on python3-uncertainties.
+
+ [ Drew Parsons ]
+ * New upstream release. Closes: #1026737, #1027172, #1027226.
+ * Build-Depends: pybuild-plugin-pyproject to use pyproject.toml
+ * drop debian patches
+ - 0003-upstream-fix-for-scipy-1.7.0.patch applied upstream
+ - exclude_failing_test.patch, example_emcee_Model_interface.py is
+ an example not a test (needs corner module to run, which is not
+ packaged for debian)
+ * add debian patch preserve_version.patch to prevent setuptools-scm
+ from corrupting version.py
+ * dh_installdocs override: prefix example_emcee_Model_interface.py
+ with nodoc_ to prevent processing by sphinx (corner module is not
+ available)
+ * override_dh_installdocs-indep copies extensions.py manually when
+ building docs (following doc/Makefile). extensions.py is longer
+ shipped in upstream source tarball
+ * Build-Depends: python3-pytest-cov <!nocheck>
+ - execute_before_dh_python3: delete coverage (htmlcov) files from
+ installation dirs (they were generated by build-time tests)
+ * register html docs with doc-base
+ * Standards-Version: 4.6.2
+
+ -- Drew Parsons <dparsons@debian.org> Fri, 30 Dec 2022 17:46:34 +0100
+
+lmfit-py (1.0.2-1) unstable; urgency=medium
+
+ * New upstream version 1.0.2
+ * d/control:
+ + Used dh-sequence-X
+ + Added Build-Depends python3-sympy <!nodoc>
+ * d/rules: Simplified thanks to dh-sequence-X
+ * d/p/0003-upstream-fix-for-scipy-1.7.0.patch
+ * Bug fix: "scipy breaks lmfit-py autopkgtest", thanks to Paul Gevers
+ (Closes: #992674).
+ * Bump debhelper from old 12 to 13.
+ * Update standards version to 4.5.1, no changes needed.
+ * Apply multi-arch hints.
+ + python-lmfit-doc: Add Multi-Arch: foreign.
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Sat, 04 Sep 2021 11:00:36 +0200
+
+lmfit-py (1.0.1-6) unstable; urgency=medium
+
+ * Team upload
+
+ [ Picca Frédéric-Emmanuel ]
+ * Acknowledge Ole Streicher for fixing #987459
+
+ [ Graham Inggs ]
+ * Skip test_model_nan_policy and test_manypeaks_speed (Closes: #976952)
+
+ -- Graham Inggs <ginggs@debian.org> Thu, 06 May 2021 08:32:40 +0000
+
+lmfit-py (1.0.1-5) unstable; urgency=medium
+
+ * Bug fix: "python-lmfit-doc is empty", thanks to Adrian Bunk (Closes:
+ #987459).
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Sat, 01 May 2021 07:44:52 +0200
+
+lmfit-py (1.0.1-4) unstable; urgency=medium
+
+ * Bug fix: "copyright file missing (policy 12.5)", thanks to Andreas
+ Beckmann (Closes: #983827).
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Tue, 02 Mar 2021 11:41:36 +0100
+
+lmfit-py (1.0.1-3) unstable; urgency=medium
+
+ * d/patches/python3.9.patch: Fix test that fails under Python 3.9 because a
+ module name changed. (Closes: #972604)
+ * d/control: Add myself to Uploaders.
+
+ -- Michael Hudson-Doyle <mwhudson@debian.org> Thu, 22 Oct 2020 08:34:34 +1300
+
+lmfit-py (1.0.1-2) unstable; urgency=medium
+
+ * Do not build the doc for now
+ * d/control: Removed jupyter-sphinx as Build-Depends.
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Tue, 08 Sep 2020 14:50:54 +0200
+
+lmfit-py (1.0.1-1) unstable; urgency=medium
+
+ [ Debian Janitor ]
+ * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
+ Repository-Browse.
+
+ [ Picca Frédéric-Emmanuel ]
+ * New upstream version 1.0.1
+ * d/control: Added Rules-Requires-Root: no
+ * d/control: Standards-Verion bumped to 4.3.0 (nothing to do)
+ * d/rules: examples was not meant to be installed (Closes: #947265)
+ * d/rules: Build the documentation
+ * d/tests/control: Now it works.
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Mon, 03 Aug 2020 11:21:26 +0200
+
+lmfit-py (1.0.0-1) unstable; urgency=medium
+
+ [ Alexandre Marie ]
+ * Fixed compatibility with python3.8 (Closes: #943786)
+ * Forced asteval version to >=0.9.16
+
+ [ Picca Frédéric-Emmanuel ]
+ * added jupyter-sphinx as Build-Depends
+ * Forgotten with the previous upload (Closes: #934871, #922111)
+ * Do not build the documentation for now.
+
+ [ Andreas Tille ]
+ * Use secure URI in Homepage field.
+ * Fix day-of-week for changelog entry 0.8.3+dfsg.1-1~exp1.
+ * Build-Depends: python3-sphinx-gallery
+ TODO:
+ Exception occurred:
+ File "/usr/lib/python3/dist-packages/sphinx_gallery/gen_gallery.py", line 313, in sumarize_failing_examples
+ "\n" + "-" * 79)
+ ValueError: Here is a summary of the problems encountered when running the examples
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Mon, 23 Dec 2019 13:52:39 +0100
+
+lmfit-py (0.9.14-1) unstable; urgency=medium
+
+ [ Picca Frédéric-Emmanuel ]
+ * New upstream version 0.9.14
+ * d/tests: Use AUTOPKGTEST_TMP instead of ADTTMP.
+ * Use debhelper-compat instead of debian/compat.
+ * Use 'python3 -m sphinx' instead of sphinx-build for building docs.
+ * Added the salsa-ci.yml file.
+ * d/control: Added python3-ipython to Build-Depends.
+ * unactivated the doc build until jupyter_sphinx is available.
+ * replace nose -> pytest
+ * install doc via d/rules
+ * Remove Python2 module (Closes: #936960)
+ * switched to compat level 12
+ * Bumped Standards-Version to 4.4.1 (nothing to do)
+
+ [ Andreas Tille ]
+ * New upstream version 0.9.11+dfsg
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Sun, 20 Oct 2019 16:43:41 +0200
+
+lmfit-py (0.9.11+dfsg-2) unstable; urgency=medium
+
+ * Team upload
+ * Deactivate randomly failing test (thanks for the patch to
+ Santiago Vila <sanvila@debian.org>)
+ Closes: #921979
+ * Standards-Version: 4.3.0
+ * Remove build time test results from binary package
+
+ -- Andreas Tille <tille@debian.org> Mon, 18 Feb 2019 11:50:01 +0100
+
+lmfit-py (0.9.11+dfsg-1) unstable; urgency=medium
+
+ * Team upload.
+ * New upstream version
+ * New Build-Depends: python-asteval, python-uncertainties
+ * Remove ancient X-Python*-Version fields
+ * debhelper 11
+ * Point Vcs fields to salsa.debian.org
+ * Standards-Version: 4.2.1
+ * Versioned Build-Depends: python*-uncertainties (>= 3.0.2.github~)
+ * debian/copyright: do not mention local copy of uncertainties which
+ was removed any more
+ * Build-Depends: s/python-sphinx/python3-sphinx
+ * Remove duplicated from in description
+ * Drop unnecessary field Testsuite: autopkgtest
+
+ -- Andreas Tille <tille@debian.org> Sat, 13 Oct 2018 21:02:35 +0200
+
+lmfit-py (0.9.7+dfsg-1) unstable; urgency=medium
+
+ * New upstream version 0.9.7+dfsg
+ * Standards-Verion bumped to 4.1.3 (extra -> optional)
+ * d/watch
+ - Updated to version 4
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Sun, 18 Feb 2018 10:55:39 +0100
+
+lmfit-py (0.9.5+dfsg-2) unstable; urgency=medium
+
+ * Standards-Verion bumped to 3.9.8 (nothing to do)
+ * Removed ipython(3)-notebook dependency (Closes: #840521)
+ * Removed matplotlib, tk, latex, pandas Build-Depends (useless)
+ * Simplified d/rules
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Sat, 15 Oct 2016 09:01:40 +0200
+
+lmfit-py (0.9.5+dfsg-1) unstable; urgency=medium
+
+ * Imported Upstream version 0.9.5+dfsg
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Wed, 17 Aug 2016 08:29:47 +0200
+
+lmfit-py (0.9.3+dfsg-1) unstable; urgency=medium
+
+ * Imported Upstream version 0.9.3+dfsg
+ * fix the autopkgtest scripts
+ * Use cme to update the package
+ * Standards-Verion bumped to 3.9.7 (nothing to do)
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Thu, 31 Mar 2016 18:46:36 +0200
+
+lmfit-py (0.9.2+dfsg-1) unstable; urgency=medium
+
+ * Imported Upstream version 0.9.2+dfsg (Closes: #802085)
+ * Use the pypi redirector
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Sat, 31 Oct 2015 08:20:22 +0100
+
+lmfit-py (0.8.3+dfsg.1-1~exp1) experimental; urgency=medium
+
+ * Imported Upstream version 0.8.3+dfsg.1
+ * Run the test suite during the build
+ * Standards-Version bumped to 3.9.6 (no other changes required)
+ * Add the autopkgtest test suite.
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Tue, 30 Dec 2014 14:18:53 +0100
+
+lmfit-py (0.8.0+dfsg.1-1) unstable; urgency=medium
+
+ * Imported Upstream version 0.8.0+dfsg.1
+ * Remove all patches (applyed upstream)
+ * Add the doc-base registration
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Sun, 31 Aug 2014 10:56:03 +0200
+
+lmfit-py (0.7.4+dfsg.2-1) unstable; urgency=low
+
+ * Initial release (Closes: #741078)
+
+ -- Picca Frédéric-Emmanuel <picca@debian.org> Fri, 07 Mar 2014 09:05:26 +0200
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..9f46275
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,142 @@
+Source: lmfit-py
+Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
+Uploaders: Picca Frédéric-Emmanuel <picca@debian.org>,
+ Michael Hudson-Doyle <mwhudson@debian.org>
+Section: science
+Priority: optional
+Build-Depends: debhelper-compat (= 13),
+ dh-python,
+ pybuild-plugin-pyproject,
+ dh-sequence-numpy3,
+ dh-sequence-python3,
+ dh-sequence-sphinxdoc <!nodoc>,
+ python3-all,
+ python3-asteval (>= 0.9.28~),
+ python3-ipython <!nodoc>,
+ python3-numpy (>= 1.19~),
+ python3-pandas,
+ python3-pytest <!nocheck>,
+ python3-pytest-cov <!nocheck>,
+ python3-scipy (>= 1.6~),
+ python3-setuptools,
+ python3-setuptools-scm,
+ python3-sphinx <!nodoc>,
+ python3-sphinx-gallery <!nodoc>,
+ python3-sympy <!nodoc>,
+ python3-uncertainties
+Standards-Version: 4.6.2
+Vcs-Browser: https://salsa.debian.org/science-team/lmfit-py
+Vcs-Git: https://salsa.debian.org/science-team/lmfit-py.git
+Homepage: https://lmfit.github.io/lmfit-py/
+Rules-Requires-Root: no
+
+Package: python3-lmfit
+Architecture: all
+Section: python
+Depends: ${misc:Depends}, ${python3:Depends}
+Suggests: python-lmfit-doc
+Description: Least-Squares Minimization with Constraints (Python 3)
+ The lmfit Python package provides a simple, flexible interface to
+ non-linear optimization or curve fitting problems. The package
+ extends the optimization capabilities of scipy.optimize by replacing
+ floating pointing values for the variables to be optimized with
+ Parameter objects. These Parameters can be fixed or varied, have
+ upper and/or lower bounds placed on its value, or written as an
+ algebraic expression of other Parameters.
+ .
+ The principal advantage of using Parameters instead of simple
+ variables is that the objective function does not have to be
+ rewritten to reflect every change of what is varied in the fit, or
+ what relationships or constraints are placed on the Parameters. This
+ means a scientific programmer can write a general model that
+ encapsulates the phenomenon to be optimized, and then allow user of
+ that model to change what is varied and fixed, what range of values
+ is acceptable for Parameters, and what constraints are placed on the
+ model. The ease with which the model can be changed also allows one
+ to easily test the significance of certain Parameters in a fitting
+ model.
+ .
+ The lmfit package allows a choice of several optimization methods
+ available from scipy.optimize. The default, and by far best tested
+ optimization method used is the Levenberg-Marquardt algorithm from
+ MINPACK-1 as implemented in scipy.optimize.leastsq. This method
+ is by far the most tested and best support method in lmfit, and much
+ of this document assumes this algorithm is used unless explicitly
+ stated. An important point for many scientific analysis is that this
+ is only method that automatically estimates uncertainties and
+ correlations between fitted variables from the covariance matrix
+ calculated during the fit.
+ .
+ A few other optimization routines are also supported, including
+ Nelder-Mead simplex downhill, Powell's method, COBYLA, Sequential
+ Least Squares methods as implemented in scipy.optimize.fmin, and
+ several others from scipy.optimize. In their native form, some of
+ these methods setting allow upper or lower bounds on parameter
+ variables, or adding constraints on fitted variables. By using
+ Parameter objects, lmfit allows bounds and constraints for all of
+ these methods, and makes it easy to swap between methods without
+ hanging the objective function or set of Parameters.
+ .
+ Finally, because the approach derived from MINPACK-1 usin the
+ covariance matrix to determine uncertainties is sometimes questioned
+ (and sometimes rightly so), lmfit supports methods to do a brute
+ force search of the confidence intervals and correlations for sets of
+ parameters.
+ .
+ This is the Python 3 version of the package.
+
+Package: python-lmfit-doc
+Architecture: all
+Section: doc
+Depends: libjs-mathjax, ${misc:Depends}, ${sphinxdoc:Depends}
+Built-Using: ${sphinxdoc:Built-Using}
+Multi-Arch: foreign
+Description: Least-Squares Minimization with Constraints (Documentation)
+ The lmfit Python package provides a simple, flexible interface to
+ non-linear optimization or curve fitting problems. The package
+ extends the optimization capabilities of scipy.optimize by replacing
+ floating pointing values for the variables to be optimized with
+ Parameter objects. These Parameters can be fixed or varied, have
+ upper and/or lower bounds placed on its value, or written as an
+ algebraic expression of other Parameters.
+ .
+ The principal advantage of using Parameters instead of simple
+ variables is that the objective function does not have to be
+ rewritten to reflect every change of what is varied in the fit, or
+ what relationships or constraints are placed on the Parameters. This
+ means a scientific programmer can write a general model that
+ encapsulates the phenomenon to be optimized, and then allow user of
+ that model to change what is varied and fixed, what range of values
+ is acceptable for Parameters, and what constraints are placed on the
+ model. The ease with which the model can be changed also allows one
+ to easily test the significance of certain Parameters in a fitting
+ model.
+ .
+ The lmfit package allows a choice of several optimization methods
+ available from scipy.optimize. The default, and by far best tested
+ optimization method used is the Levenberg-Marquardt algorithm from
+ MINPACK-1 as implemented in scipy.optimize.leastsq. This method
+ is by far the most tested and best support method in lmfit, and much
+ of this document assumes this algorithm is used unless explicitly
+ stated. An important point for many scientific analysis is that this
+ is only method that automatically estimates uncertainties and
+ correlations between fitted variables from the covariance matrix
+ calculated during the fit.
+ .
+ A few other optimization routines are also supported, including
+ Nelder-Mead simplex downhill, Powell's method, COBYLA, Sequential
+ Least Squares methods as implemented in scipy.optimize.fmin, and
+ several others from scipy.optimize. In their native form, some of
+ these methods setting allow upper or lower bounds on parameter
+ variables, or adding constraints on fitted variables. By using
+ Parameter objects, lmfit allows bounds and constraints for all of
+ these methods, and makes it easy to swap between methods without
+ hanging the objective function or set of Parameters.
+ .
+ Finally, because the approach derived from MINPACK-1 usin the
+ covariance matrix to determine uncertainties is sometimes questioned
+ (and sometimes rightly so), lmfit supports methods to do a brute
+ force search of the confidence intervals and correlations for sets of
+ parameters.
+ .
+ This is the common documentation package.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..36eacdb
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: LM-Fit Development Team
+Upstream-Contact: matt.newville@gmail.com
+Source: http://lmfit.github.io/lmfit-py/
+
+Files: *
+Copyright: 2012-2014, 2019 Matthew Newville, The University of Chicago
+ Till Stensitzki, Freie Universitat Berlin
+License: Expat
+
+Files: debian/*
+Copyright: © 2014, Picca Frédéric-Emmanuel <picca@debian.org>
+License: Expat
+
+License: Expat
+ Permission to use and redistribute the source code or binary forms of
+ this software and its documentation, with or without modification is
+ hereby granted provided that the above notice of copyright, these
+ terms of use, and the disclaimer of warranty below appear in the
+ source code and documentation, and that none of the names of above
+ institutions or authors appear in advertising or endorsement of works
+ derived from this software without specific prior written permission
+ from all parties.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THIS
+ SOFTWARE.
diff --git a/debian/patches/0004-jupyter_sphinx-is-not-yet-working-on-Debian.patch b/debian/patches/0004-jupyter_sphinx-is-not-yet-working-on-Debian.patch
new file mode 100644
index 0000000..02d7be7
--- /dev/null
+++ b/debian/patches/0004-jupyter_sphinx-is-not-yet-working-on-Debian.patch
@@ -0,0 +1,19 @@
+From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca@debian.org>
+Date: Sat, 4 Sep 2021 10:25:10 +0200
+Subject: jupyter_sphinx is not yet working on Debian
+
+---
+ doc/extensions.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: lmfit-py/doc/sphinx/ext_mathjax.py
+===================================================================
+--- lmfit-py.orig/doc/sphinx/ext_mathjax.py 2022-12-30 14:06:06.289278212 +0100
++++ lmfit-py/doc/sphinx/ext_mathjax.py 2022-12-30 15:03:57.948518084 +0100
+@@ -7,5 +7,5 @@
+ 'sphinx.ext.napoleon',
+ 'sphinx.ext.todo',
+ 'IPython.sphinxext.ipython_console_highlighting',
+- 'jupyter_sphinx',
++# 'jupyter_sphinx',
+ 'sphinx_gallery.gen_gallery']
diff --git a/debian/patches/deactivate_test.patch b/debian/patches/deactivate_test.patch
new file mode 100644
index 0000000..625550a
--- /dev/null
+++ b/debian/patches/deactivate_test.patch
@@ -0,0 +1,22 @@
+From: Santiago Vila <sanvila@debian.org>
+Date: Mon, 18 Nov 2019 14:17:10 +0100
+Subject: Since this bug randomly fails it is deactivated
+
+Last-Update: Sun, 10 Feb 2019 20:45:02 UTC
+Bug-Debian: https://bugs.debian.org/921979
+---
+ tests/test_covariance_matrix.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tests/test_covariance_matrix.py b/tests/test_covariance_matrix.py
+index 55d1b85..97fcc33 100644
+--- a/tests/test_covariance_matrix.py
++++ b/tests/test_covariance_matrix.py
+@@ -16,6 +16,7 @@ def check(para, real_val, sig=3):
+
+
+ def test_bounded_parameters():
++ return
+ # create data to be fitted
+ np.random.seed(1)
+ x = np.linspace(0, 15, 301)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..9ae3e28
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+deactivate_test.patch
+0004-jupyter_sphinx-is-not-yet-working-on-Debian.patch
diff --git a/debian/python-lmfit-doc.doc-base b/debian/python-lmfit-doc.doc-base
new file mode 100644
index 0000000..8ca28f3
--- /dev/null
+++ b/debian/python-lmfit-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-lmfit-doc
+Title: lmfit module for python
+Author: Matthew Newville
+Abstract: Non-Linear Least-Squares Minimization and Curve-Fitting for Python
+Section: Science/Data Analysis
+
+Format: HTML
+Index: /usr/share/doc/python3-lmfit/html/index.html
+Files: /usr/share/doc/python3-lmfit/html/*.html
diff --git a/debian/python3-lmfit.remove b/debian/python3-lmfit.remove
new file mode 100644
index 0000000..0ba55b6
--- /dev/null
+++ b/debian/python3-lmfit.remove
@@ -0,0 +1 @@
+python3.7/dist-packages/modelresult_1.sav
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f05654b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+## Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+export PYBUILD_NAME=lmfit
+
+export PYBUILD_TEST_ARGS=-k 'not speed and not test_model_nan_policy'
+export PYBUILD_BEFORE_TEST=cp -r NIST_STRD examples {build_dir}
+export PYBUILD_AFTER_TEST=rm -fr {build_dir}/NIST_STRD {build_dir}/examples; find {build_dir} -name "*.sav" -delete
+
+%:
+ dh $@ --buildsystem=pybuild
+
+override_dh_installdocs-indep:
+ mv examples/example_emcee_Model_interface.py examples/nodoc_example_emcee_Model_interface.py
+ cp doc/sphinx/ext_mathjax.py doc/extensions.py
+ PYTHONPATH=. http_proxy='localhost' python3 -m sphinx -N -bhtml -D mathjax_path="/usr/share/javascript/mathjax/MathJax.js" doc/ .pybuild/html # HTML generator
+ rm doc/extensions.py
+ mv examples/nodoc_example_emcee_Model_interface.py examples/example_emcee_Model_interface.py
+ dh_installdocs -i
+ dh_installdocs .pybuild/html -p python-lmfit-doc --doc-main-package=python3-lmfit
+
+execute_before_dh_python3:
+ rm -rf debian/python3-lmfit/usr/lib/python3*/dist-packages/htmlcov debian/python3-lmfit/usr/lib/python3*/dist-packages/.coverage
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..11b44e5
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,16 @@
+Test-Command: set -efu
+ ; cp -a NIST_STRD/ "$AUTOPKGTEST_TMP"
+ ; cp -a tests/ "$AUTOPKGTEST_TMP"
+ ; cp -a examples/ "$AUTOPKGTEST_TMP"
+ ; for py in $(py3versions -s 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; $py -m pytest -ra -k 'not speed and not test_model_nan_policy'
+ ; done
+Depends: python3-all,
+ python3-lmfit,
+ python3-matplotlib,
+ python3-pandas,
+ python3-pytest,
+ python3-scipy,
+ python3-tk
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..488b63d
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,4 @@
+Bug-Database: https://github.com/lmfit/lmfit-py/issues
+Bug-Submit: https://github.com/lmfit/lmfit-py/issues/new
+Repository: https://github.com/lmfit/lmfit-py.git
+Repository-Browse: https://github.com/lmfit/lmfit-py
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..4087808
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=4
+opts=repacksuffix=+dfsg,\
+dversionmangle=s/.dfsg//,\
+uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.python.org/packages/source/l/lmfit/ \
+ lmfit-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian uupdate