diff -Nru statsmodels-0.8.0/debian/changelog statsmodels-0.8.0/debian/changelog --- statsmodels-0.8.0/debian/changelog 2017-09-05 08:23:59.000000000 +0000 +++ statsmodels-0.8.0/debian/changelog 2017-09-30 05:17:33.000000000 +0000 @@ -1,8 +1,58 @@ -statsmodels (0.8.0-3build1) artful; urgency=medium +statsmodels (0.8.0-6) unstable; urgency=medium - * No-change rebuild to drop _PyFPE support. + * Build the architecture dependent files before building documentation + * Add myself to uploaders. - -- Matthias Klose Tue, 05 Sep 2017 08:23:59 +0000 + -- Diane Trout Fri, 29 Sep 2017 22:17:33 -0700 + +statsmodels (0.8.0-5) unstable; urgency=medium + + * Team Upload + + [ Diane Trout ] + * add sphinx-common to Build-Depends which fixes a FTBFS caused by + Sphinxdoc.pm not being present when building binary only packages. + * Split dh_auto_build-arch and dh_auto_build-indep targets so we only + build the docs once. + + -- Diane Trout Fri, 29 Sep 2017 16:48:20 -0700 + +statsmodels (0.8.0-4) unstable; urgency=medium + + * Team upload + + [ Diane Trout ] + * Add python-dateutil, patsy, tk as build depends + Marking nose & tk as !nocheck + * Add Python3 support + (Closes: #729956) (Closes: #782963) (Closes: #834495) + * Update Python 3 build depends, add components necessary to build + notebook examples + * Lintian warned that Conflicts with version should probably be Breaks + * Add use-system-inventory patch to use intersphinx inventory files from + other Debian doc packages. + Added those packages to the -doc package suggests list + * Let dh_sphinxdoc manage jquery dependencies. + Add libjs-requirejs for building notebooks. + * Use Python 3 for documentation building, and enable building notebook + examples as jupyter components are now available in stable. + * Extend a python3-statsmodels-lib description to make lintian happier + * Cleanup more files that might be generated during build + * Exclude test_sarimax test_structural test_dynamic_factor test_varmax + from unit testing + Closes: #873512 + * add patch use-cached-datasets, and cache all of the get_rdataset + datasets in debian/datasets/. This is needed so the documentation will + build without network access. + * Document data files needed for documentation in debian/README.source + + [ Andreas Tille ] + * Standards-Version: 4.1.0 (no changes needed) + * Add remark about documenting R data to debian/README.source + * Updating d/copyright + * DEP3 + + -- Diane Trout Tue, 26 Sep 2017 23:55:47 -0700 statsmodels (0.8.0-3) unstable; urgency=medium diff -Nru statsmodels-0.8.0/debian/control statsmodels-0.8.0/debian/control --- statsmodels-0.8.0/debian/control 2017-08-19 09:42:08.000000000 +0000 +++ statsmodels-0.8.0/debian/control 2017-09-30 05:17:33.000000000 +0000 @@ -2,29 +2,50 @@ Section: python Priority: optional Maintainer: Debian Science Maintainers -Uploaders: Yaroslav Halchenko , Michael Hanke +Uploaders: Yaroslav Halchenko , Michael Hanke , Diane Trout Build-Depends: debhelper (>= 9), + sphinx-common, python-all-dev, python-setuptools, + python-dateutil, python-numpy (>= 1:1.4.0), python-scipy, - python-nose, + python-nose , python-matplotlib, python-pandas, + python-patsy, python-joblib, cython, + python-tk , python-patsy, python-cvxopt, - dh-python -Build-Depends-Indep: - ipython (>= 5~) | ipython-notebook (>= 0.13.1) | ipython01x, - python-traitlets | ipython-notebook (>= 0.13.1) | ipython01x, - python-zmq, - python-sphinx (>= 1.0.6), - python-numpydoc, - nodejs, - pandoc, -Standards-Version: 4.0.1 + dh-python, + cython3, + python3-all-dev, + python3-dateutil, + python3-cvxopt , + python3-matplotlib, + python3-numpy (>= 1:1.4.0), + python3-nose, + python3-pandas, + python3-patsy , + python3-scipy, + python3-setuptools, + python3-tk , + python3-joblib, +Build-Depends-Indep: ipython3 (>= 5~) | ipython3-notebook (>= 0.13.1) , + python3-nbconvert , + python3-jupyter-client , + python3-ipykernel , + python3-numpydoc , + python-numpy-doc , + python-patsy-doc , + python-pandas-doc , + python3-doc , + python3-sphinx (>= 1.0.6) , + python3-traitlets | ipython3-notebook (>= 0.13.1) +Standards-Version: 4.1.0 X-Python-Version: >= 2.7 +X-Python3-Version: >= 3.3 Homepage: http://statsmodels.sourceforge.net/ Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/statsmodels.git Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/statsmodels.git @@ -38,12 +59,11 @@ python-patsy, python-pandas Recommends: python-matplotlib, - python-nose, python-joblib, python-cvxopt, Suggests: python-statsmodels-doc, Provides: ${python:Provides} -Conflicts: python-scikits-statsmodels, python-scikits.statsmodels (<< 0.4) +Breaks: python-scikits-statsmodels, python-scikits.statsmodels (<< 0.4) Replaces: python-scikits-statsmodels, python-scikits.statsmodels (<< 0.4) Description: Python module for the estimation of statistical models statsmodels Python module provides classes and functions for the @@ -57,20 +77,56 @@ Architecture: any Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}, python-numpy -Conflicts: python-scikits-statsmodels, python-scikits.statsmodels (<< 0.4) +Breaks: python-scikits-statsmodels, python-scikits.statsmodels (<< 0.4) Replaces: python-scikits-statsmodels, python-scikits.statsmodels (<< 0.4) Description: low-level implementations and bindings for statsmodels This package contains architecture dependent extensions for python-statsmodels. Package: python-statsmodels-doc -Conflicts: python-scikits-statsmodels-doc, python-scikits.statsmodels-doc +Breaks: python-scikits-statsmodels-doc, python-scikits.statsmodels-doc Replaces: python-scikits-statsmodels-doc, python-scikits.statsmodels-doc Architecture: all Section: doc -Depends: ${misc:Depends}, libjs-jquery +Depends: ${misc:Depends}, libjs-requirejs, ${sphinxdoc:Depends} Recommends: libjs-mathjax -Suggests: python-statsmodels +Suggests: python-statsmodels, + python3-doc, + python-numpy-doc, + python-patsy-doc, + python-pandas-doc, + python-scipy-doc, Description: documentation and examples for statsmodels This package contains HTML documentation and example scripts for python-statsmodels. + +Package: python3-statsmodels +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends}, + python3-numpy, + python3-scipy, + python3-statsmodels-lib (>= ${source:Version}), + python3-patsy, + python3-pandas +Recommends: python3-matplotlib, + python3-joblib, + python3-cvxopt, +Suggests: python-statsmodels-doc, +Provides: ${python3:Provides} +Description: Python3 module for the estimation of statistical models + statsmodels Python3 module provides classes and functions for the + estimation of several categories of statistical models. These + currently include linear regression models, OLS, GLS, WLS and GLS + with AR(p) errors, generalized linear models for six distribution + families and M-estimators for robust linear models. An extensive list + of result statistics are available for each estimation problem. + +Package: python3-statsmodels-lib +Architecture: any +Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}, + python3-numpy +Description: Python3 low-level implementations and bindings for statsmodels + Statsmodels is a Python module for the estimation of statistical models + . + This package contains architecture dependent extensions for + python3-statsmodels. diff -Nru statsmodels-0.8.0/debian/copyright statsmodels-0.8.0/debian/copyright --- statsmodels-0.8.0/debian/copyright 2017-08-19 09:42:08.000000000 +0000 +++ statsmodels-0.8.0/debian/copyright 2017-09-29 22:06:26.000000000 +0000 @@ -34,7 +34,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Files: statsmodels/stats/libqsturng +Files: statsmodels/stats/libqsturng/* Copyright: 2011, Roger Lew License: BSD-3 @@ -55,7 +55,6 @@ statsmodels/datasets/sunspots/sunspots.csv Copyright: N/A License: public-domain - Factual data Files: statsmodels/datasets/ccard/ccard.csv Copyright: William Greene @@ -65,7 +64,7 @@ Files: statsmodels/datasets/committee/committee.csv statsmodels/datasets/copper/copper.csv statsmodels/datasets/cpunish/cpunish.csv - statsmodels/datasets/scotland/scotland.csv + statsmodels/datasets/scotland/scotvote.csv statsmodels/datasets/star98/star98.csv Copyright: Jeff Gill License: BSD-3 @@ -81,10 +80,32 @@ 2009-2011, Statsmodels Developers License: MIT and BSD-3 +Files: statsmodels/sandbox/pca.py +Copyright: 2008 Erik Tollerud +License: BSD-3 + +Files: docs/source/_static/facebox.js +Copyright: 2007, 2008 Chris Wanstrath +License: MIT + +Files: docs/sphinxext/* +Copyright: 2008 Stefan van der Walt , Pauli Virtanen +License: MIT + +Files: docs/sphinxext/github.py +Copyright: 2010 Doug Hellmann +License: BSD-3 + Files: debian/* Copyright: 2010-2013, Yaroslav Halchenko License: BSD-3 +Files: debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,HistData,Guerry.csv.zip + debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,doc,HistData,rst,Guerry.rst.zip +Comment: Pubished 1833 Andre-Michel Guerry +Copyright: N/A +License: public-domain + License: BSD-3 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -136,3 +157,6 @@ copyright holders shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization. + +License: public-domain + Factual data Binary files /tmp/tmp5wM_D3/s4TwO7mDOQ/statsmodels-0.8.0/debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,car,Duncan.csv.zip and /tmp/tmp5wM_D3/QWggPOZYau/statsmodels-0.8.0/debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,car,Duncan.csv.zip differ diff -Nru statsmodels-0.8.0/debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,car,Moore.csv.zip statsmodels-0.8.0/debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,car,Moore.csv.zip --- statsmodels-0.8.0/debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,car,Moore.csv.zip 1970-01-01 00:00:00.000000000 +0000 +++ statsmodels-0.8.0/debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,car,Moore.csv.zip 2017-09-29 22:06:26.000000000 +0000 @@ -0,0 +1,2 @@ +xuSn0iԃ?gko[yH GT]'^8ٙY>vSW"h")cYcSa,@@6۶?oVX>Tm_K!>헌2!с:n/cCbW45Bjf!!qCSWͅ|+To!s&Z YqS7$ǏxĂT@N3ԝ eh +P[YFpảZNQqLHxKxm>g!H'1CmD 4H)3L=(BٹǽaC"hRP٤POWPC!egHbK +1_;7Yb׍Y +Last-Update: 2017-09-26 22:43:33 -0700 +Description: Use cached datasets to enable building documentation + without accessing internet. The datasets were described in + debian/README.source + +--- a/docs/source/contingency_tables.rst ++++ b/docs/source/contingency_tables.rst +@@ -49,7 +49,7 @@ + import pandas as pd + import statsmodels.api as sm + +- df = sm.datasets.get_rdataset("Arthritis", "vcd").data ++ df = sm.datasets.get_rdataset("Arthritis", "vcd", cache=True).data + + tab = pd.crosstab(df['Treatment'], df['Improved']) + tab = tab.loc[:, ["None", "Some", "Marked"]] +--- a/docs/source/duration.rst ++++ b/docs/source/duration.rst +@@ -42,7 +42,7 @@ + + import statsmodels.api as sm + +- data = sm.datasets.get_rdataset("flchain", "survival").data ++ data = sm.datasets.get_rdataset("flchain", "survival", cache=True).data + df = data.loc[data.sex == "F", :] + sf = sm.SurvfuncRight(df["futime"], df["death"]) + +@@ -155,7 +155,7 @@ + import statsmodels.api as sm + import statsmodels.formula.api as smf + +- data = sm.datasets.get_rdataset("flchain", "survival").data ++ data = sm.datasets.get_rdataset("flchain", "survival", cache=True).data + del data["chapter"] + data = data.dropna() + data["lam"] = data["lambda"] +--- a/docs/source/example_formulas.rst ++++ b/docs/source/example_formulas.rst +@@ -45,7 +45,7 @@ + + .. ipython:: python + +- df = sm.datasets.get_rdataset("Guerry", "HistData").data ++ df = sm.datasets.get_rdataset("Guerry", "HistData", cache=True).data + df = df[['Lottery', 'Literacy', 'Wealth', 'Region']].dropna() + df.head() + +--- a/docs/source/gee.rst ++++ b/docs/source/gee.rst +@@ -24,7 +24,7 @@ + import statsmodels.api as sm + import statsmodels.formula.api as smf + +- data = sm.datasets.get_rdataset('epil', package='MASS').data ++ data = sm.datasets.get_rdataset('epil', package='MASS', cache=True).data + + fam = sm.families.Poisson() + ind = sm.cov_struct.Exchangeable() +--- a/docs/source/gettingstarted.rst ++++ b/docs/source/gettingstarted.rst +@@ -43,7 +43,7 @@ + + .. ipython:: python + +- df = sm.datasets.get_rdataset("Guerry", "HistData").data ++ df = sm.datasets.get_rdataset("Guerry", "HistData", cache=True).data + + The `Input/Output doc page `_ shows how to import from various + other formats. +--- a/docs/source/index.rst ++++ b/docs/source/index.rst +@@ -25,7 +25,7 @@ + import statsmodels.formula.api as smf + + # Load data +- dat = sm.datasets.get_rdataset("Guerry", "HistData").data ++ dat = sm.datasets.get_rdataset("Guerry", "HistData", cache=True).data + + # Fit regression model (using the natural log of one of the regressors) + results = smf.ols('Lottery ~ Literacy + np.log(Pop1831)', data=dat).fit() +--- a/docs/source/mixed_linear.rst ++++ b/docs/source/mixed_linear.rst +@@ -35,7 +35,7 @@ + import statsmodels.api as sm + import statsmodels.formula.api as smf + +- data = sm.datasets.get_rdataset("dietox", "geepack").data ++ data = sm.datasets.get_rdataset("dietox", "geepack", cache=True).data + + md = smf.mixedlm("Weight ~ Time", data, groups=data["Pig"]) + mdf = md.fit() +--- a/docs/source/release/version0.6.rst ++++ b/docs/source/release/version0.6.rst +@@ -43,7 +43,7 @@ + import statsmodels.api as sm + import statsmodels.formula.api as smf + +- data = sm.datasets.get_rdataset("epil", "MASS").data ++ data = sm.datasets.get_rdataset("epil", "MASS", cache=True).data + + md = smf.gee("y ~ age + trt + base", "subject", data, + cov_struct=sm.cov_struct.Independence(), +--- a/docs/source/datasets/index.rst ++++ b/docs/source/datasets/index.rst +@@ -30,7 +30,7 @@ + .. ipython:: python + + import statsmodels.api as sm +- duncan_prestige = sm.datasets.get_rdataset("Duncan", "car") ++ duncan_prestige = sm.datasets.get_rdataset("Duncan", "car", cache=True) + print(duncan_prestige.__doc__) + duncan_prestige.data.head(5) + diff -Nru statsmodels-0.8.0/debian/patches/use-python3-for-doc-build statsmodels-0.8.0/debian/patches/use-python3-for-doc-build --- statsmodels-0.8.0/debian/patches/use-python3-for-doc-build 1970-01-01 00:00:00.000000000 +0000 +++ statsmodels-0.8.0/debian/patches/use-python3-for-doc-build 2017-09-29 22:06:26.000000000 +0000 @@ -0,0 +1,20 @@ +Author: Diane Trout +Last-Update: 2017-09-24 23:27:12 -0700 +Description: Use Python3 to create documentation + +Index: statsmodels-0.8.0/docs/Makefile +=================================================================== +--- statsmodels-0.8.0.orig/docs/Makefile ++++ statsmodels-0.8.0/docs/Makefile +@@ -65,9 +65,9 @@ html: + @echo "Generating reST from examples folder" + #$(TOOLSPATH)$(EXAMPLEBUILD) + @echo "Generating datasets from installed statsmodels.datasets" +- $(TOOLSPATH)$(DATASETBUILD) ++ python3 $(TOOLSPATH)$(DATASETBUILD) + @echo "Generating notebooks from examples/notebooks folder" +- $(TOOLSPATH)$(NOTEBOOKBUILD) --execute=True --allow_errors=True ++ python3 $(TOOLSPATH)$(NOTEBOOKBUILD) --execute=True --allow_errors=True + @echo "Running sphinx-build" + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo "Copying rendered example notebooks" diff -Nru statsmodels-0.8.0/debian/patches/use-system-inventory statsmodels-0.8.0/debian/patches/use-system-inventory --- statsmodels-0.8.0/debian/patches/use-system-inventory 1970-01-01 00:00:00.000000000 +0000 +++ statsmodels-0.8.0/debian/patches/use-system-inventory 2017-09-29 22:06:26.000000000 +0000 @@ -0,0 +1,24 @@ +Author: Diane Trout +Description: Use intersphinx inventory files from other Debian packages. +Forwarded: not-needed + +Index: statsmodels-0.8.0/docs/source/conf.py +=================================================================== +--- statsmodels-0.8.0.orig/docs/source/conf.py ++++ statsmodels-0.8.0/docs/source/conf.py +@@ -321,11 +321,11 @@ epub_copyright = u'2009-2017, Josef Perk + + # Example configuration for intersphinx: refer to the Python standard library. + intersphinx_mapping = { +- 'numpy' : ('https://docs.scipy.org/doc/numpy/', None), +- 'python' : ('https://docs.python.org/3.2', None), ++ 'numpy' : ('https://docs.scipy.org/doc/numpy/', '/usr/share/doc/python-numpy-doc/html/objects.inv'), ++ 'python' : ('https://docs.python.org/3.2', '/usr/share/doc/python3-doc/html/objects.inv'), + 'pydagogue' : ('http://matthew-brett.github.io/pydagogue/', None), +- 'patsy' : ('http://patsy.readthedocs.io/en/latest/', None), +- 'pandas' : ('http://pandas.pydata.org/pandas-docs/stable/', None), ++ 'patsy' : ('http://patsy.readthedocs.io/en/latest/', '/usr/share/doc/python-patsy-doc/html/objects.inv'), ++ 'pandas' : ('http://pandas.pydata.org/pandas-docs/stable/', '/usr/share/doc/python-pandas-doc/html/objects.inv'), + } + + from os.path import dirname, abspath, join diff -Nru statsmodels-0.8.0/debian/python-statsmodels-doc.doc-base statsmodels-0.8.0/debian/python-statsmodels-doc.doc-base --- statsmodels-0.8.0/debian/python-statsmodels-doc.doc-base 1970-01-01 00:00:00.000000000 +0000 +++ statsmodels-0.8.0/debian/python-statsmodels-doc.doc-base 2017-09-29 22:06:26.000000000 +0000 @@ -0,0 +1,12 @@ +Document: python-statsmodels-doc +Title: Statsmodels documentation +Author: Statsmodels Develoeprs +Abstract: Documentation for Statsmodels classes and functions for the + estimation of many different statistical models, as well as for + conducting statistical tests, and statistical data exploration. An + extensive list of result statistics are available for each estimator. +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python-statsmodels-doc/html/index.html +Files: /usr/share/doc/python-statsmodels-doc/html/* diff -Nru statsmodels-0.8.0/debian/README.source statsmodels-0.8.0/debian/README.source --- statsmodels-0.8.0/debian/README.source 2017-08-19 09:42:08.000000000 +0000 +++ statsmodels-0.8.0/debian/README.source 2017-09-29 22:06:26.000000000 +0000 @@ -6,3 +6,148 @@ to carry the packaging. orig.tar.gz is fetched from tags on github. -- Yaroslav Halchenko , Thu, 7 Jul 2011 22:50:02 -0400 + + +To build the documentation without accessing the internet at Build time +several data sets are provided as cached data in the directory debian/datasets. +The files are compressed versions of text data (csv, rst) and probably not +copyrighteable. For the sake of clarity we are using here the form of +documentation that ftpmaster suggested in + http://lists.debian.org/debian-devel/2013/09/msg00332.html +for R packages since all data are obtained from CRAN. + +Arthritis + https://vincentarelbundock.github.io/Rdatasets/doc/vcd/Arthritis.html + From package: vcd + https://cran.r-project.org/web/packages/vcd/vcd.pdf + License: GPL-2 + Source + + Michael Friendly (2000), Visualizing Categorical Data: http://euclid.psych.yorku.ca/ftp/sas/vcd/catdata/arthrit.sas + References + + G. Koch \& S. Edwards (1988), Clinical efficiency trials with categorical data. In K. E. Peace (ed.), Biopharmaceutical Statistics for Drug Development, 403–451. Marcel Dekker, New York. + + M. Friendly (2000), Visualizing Categorical Data. SAS Institute, Cary, NC. + +dietox + https://vincentarelbundock.github.io/Rdatasets/doc/geepack/dietox.html + From package: geepack + https://cran.r-project.org/web/packages/geepack/geepack.pdf + License GPL (>= 3) + Source + + Lauridsen, C., Højsgaard, S.,Sørensen, M.T. C. (1999) Influence of + Dietary Rapeseed Oli, Vitamin E, and Copper on Performance and + Antioxidant and Oxidative Status of Pigs. J. Anim. Sci.77:906-916 + +Duncan + https://vincentarelbundock.github.io/Rdatasets/doc/car/Duncan.html + From package: car + https://cran.r-project.org/web/packages/car/car.pdf + License: GPL (>= 2) + Source + + Duncan, O. D. (1961) A socioeconomic index for all occupations. In + Reiss, A. J., Jr. (Ed.) Occupations and Social Status. Free Press + [Table VI-1]. + + References + + Fox, J. (2008) Applied Regression Analysis and Generalized Linear Models, Second Edition. Sage. + + Fox, J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition, Sage. + +epil + https://vincentarelbundock.github.io/Rdatasets/doc/MASS/epil.html + From package: MASS + https://cran.r-project.org/web/packages/MASS/MASS.pdf + License: GPL-2 | GPL-3 + Source + + Thall, P. F. and Vail, S. C. (1990) Some covariance models for longitudinal count data with over-dispersion. Biometrics 46, 657–671. + References + + Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth Edition. Springer. + +Guerry + https://vincentarelbundock.github.io/Rdatasets/doc/HistData/Guerry.html + Originally from package: HistData + https://cran.r-project.org/web/packages/HistData/HistData.pdf + This says GPL 2 | GPL 3 + Source + + Angeville, A. (1836). Essai sur la Statistique de la Population française Paris: F. Doufour. + + Guerry, A.-M. (1833). Essai sur la statistique morale de la France + Paris: Crochard. English translation: Hugh P. Whitt and Victor + W. Reinking, Lewiston, N.Y. : Edwin Mellen Press, 2002. + + Parent-Duchatelet, A. (1836). De la prostitution dans la ville de Paris, 3rd ed, 1857, p. 32, 36 + References + + Dray, S. and Jombart, T. (2011). A Revisit Of Guerry's Data: + Introducing Spatial Constraints In Multivariate Analysis. The Annals + of Applied Statistics, Vol. 5, No. 4, + 2278-2299. http://arxiv.org/pdf/1202.6485.pdf, DOI: + 10.1214/10-AOAS356. + + Brunsdon, C. and Dykes, J. (2007). Geographically weighted + visualization: interactive graphics for scale-varying exploratory + analysis. Geographical Information Science Research Conference + (GISRUK 07), NUI Maynooth, Ireland, April, 2007. + + Friendly, M. (2007). A.-M. Guerry's Moral Statistics of France: + Challenges for Multivariable Spatial Analysis. Statistical Science, + 22, 368-399. + + Friendly, M. (2007). Data from A.-M. Guerry, Essay on the Moral + Statistics of France (1833), + http://datavis.ca/gallery/guerry/guerrydat.html. + +medpar + https://vincentarelbundock.github.io/Rdatasets/doc/COUNT/medpar.html + From package: COUNT + https://cran.r-project.org/web/packages/COUNT/COUNT.pdf + License: GPL-2 + + Source + + 1991 National Medpar data, National Health Economics & Research Co. + References + + Hilbe, Joseph M (2014), Modeling Count Data, Cambridge University + Press Hilbe, Joseph M (2007, 2011), Negative Binomial Regression, + Cambridge University Press Hilbe, Joseph M (2009), Logistic + Regression Models, Chapman & Hall/CRC first used in Hardin, JW and + JM Hilbe (2001, 2007), Generalized Linear Models and Extensions, + Stata Press + +Moore + https://vincentarelbundock.github.io/Rdatasets/doc/car/Moore.html + From package: car + https://cran.r-project.org/web/packages/car/car.pdf + License: GPL (>= 2) + Source + + Moore, J. C., Jr. and Krupat, E. (1971) Relationship between source + status, authoritarianism and conformity in a social + setting. Sociometry 34, 122–134. + + Personal communication from J. Moore, Department of Sociology, York University. + References + + Fox, J. (2008) Applied Regression Analysis and Generalized Linear Models, Second Edition. Sage. + + Fox, J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition, Sage. + +starsCYG + https://vincentarelbundock.github.io/Rdatasets/doc/robustbase/starsCYG.html + From package: robustbase + https://cran.r-project.org/web/packages/robustbase/robustbase.pdf + License GPL >= 2 + Source + + P. J. Rousseeuw and A. M. Leroy (1987) Robust Regression and Outlier Detection; Wiley, p.27, table 3. + + -- Diane Trout Tue, 26 Sep 2017 23:55:47 -0700 diff -Nru statsmodels-0.8.0/debian/rules statsmodels-0.8.0/debian/rules --- statsmodels-0.8.0/debian/rules 2017-08-19 09:42:08.000000000 +0000 +++ statsmodels-0.8.0/debian/rules 2017-09-30 05:14:44.000000000 +0000 @@ -6,107 +6,76 @@ export HOME=$(CURDIR)/build export MPLCONFIGDIR=$(HOME) -PACKAGE_NAME = python-statsmodels -PACKAGE_ROOT_DIR = debian/${PACKAGE_NAME} +export PY3VER=$(shell py3versions -vd) -PYVERS = $(shell pyversions -vr) -PYVER = $(shell pyversions -vd) - -UVER := $(shell LC_ALL=C dpkg-parsechangelog | awk '/^Version:/{print $$2;}' | sed -e 's,-[^-]*$$,,g') -CYTHONVER := $(shell dpkg -l cython | awk '/^ii/{print $$3;}' || echo 0) -MPLVER := $(shell dpkg -l python-matplotlib | awk '/^ii/{print $$3;}' || echo 0) -IPYTHONVER := $(shell ipython -V || echo 0) # 0.12 is needed to build docs, otherwise use IPython01x -IPYTHONPATH := $(shell dpkg --compare-versions $(IPYTHONVER) lt 0.13 \ - && echo ":/usr/lib/python$(PYVER)/dist-packages/IPython01X" || echo '') - -MIN_CYTHONVER = 0.19 - -ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) -export OPT+=-g -O0 -endif +export PYBUILD_NAME=statsmodels +export PYBUILD_INSTALL_ARGS=--install-layout=deb +export PYBUILD_TEST_ARGS = --exclude='(test_sarimax)|(test_structural)|(test_dynamic_factor)|(test_varmax)' %: - dh $@ --with python2 + dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild - -cythonize: - find statsmodels -iname *.pyx | sed -e 's,\.pyx,\.c,g' | xargs -r rm -f - : # since there is no cython command and I have no time... - python setup.py build_ext --inplace -f - mkdir -p debian/cythonized-files - cp $$(find statsmodels -iname *.pyx | sed -e 's,\.pyx,\.c,g') debian/cythonized-files - echo "$(UVER)" >| debian/cythonized-files/VERSION - - -override_dh_auto_configure: - dpkg --compare-versions $(CYTHONVER) lt $(MIN_CYTHONVER) && { \ - echo "I: Using pre-Cython-ed files"; \ - find -iname *pyx | while read p; do \ - f=$$(basename $$p); f=$${f%%.pyx}; d=$$(dirname $$p); \ - cp -rp debian/cythonized-files/$$f.c $$d/; done; } || : - dh_auto_configure - - -override_dh_auto_test: - : # overriden since testing happens against installed version across - : # all supported python versions +ifeq (,$(filter nocheck,$(DEB_BUILD_PROFILES))) +.PHONY: override_dh_auto_test +endif # To guarantee HOME existence with mpl 1.3.0 # See https://github.com/matplotlib/matplotlib/issues/2300 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=719384 $(HOME): mkdir "$@" + : # Hardcode backend to Agg to avoid doc build and tests failures + echo "backend : Agg" >| $(MPLCONFIGDIR)/matplotlibrc -# Build docs during build override_dh_auto_build-arch: $(HOME) dh_auto_build - : # Hardcode backend to Agg to avoid doc build and tests failures - echo "backend : Agg" >| $(MPLCONFIGDIR)/matplotlibrc -override_dh_auto_build-indep: python-install$(PYVER) +override_dh_auto_build-indep: $(HOME) + : # Documentation depends on built package + dh_auto_build : # I: Generate documentation : # Build Documentation -- assure existence of build/html for nodoc mkdir -p build/html ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) - PYTHONPATH=`/bin/ls -d $(CURDIR)/$(PACKAGE_ROOT_DIR)/usr/lib/python$(PYVER)/*/`:$(CURDIR)$(IPYTHONPATH) \ - $(MAKE) -C docs html + http_proxy=127.0.0.1:9 \ + PYTHONPATH=$(CURDIR)/.pybuild/pythonX.Y_${PY3VER}/build \ + BUILDDIR=$(CURDIR)/build \ + STATSMODELS_DATA=$(CURDIR)/debian/datasets/ \ + make -C docs html mv docs/build/* build/ : # Fix up links to MathJax to be local grep -l '/mathjax/' -R build/html/examples/notebooks \ - | xargs -r sed -i -e 's,https://\S*.com/mathjax/latest/MathJax.js,file:///usr/share/javascript/mathjax/MathJax.js,g' - rm -rf docs/source/generated/ + | xargs -r sed -i -e 's,https://\S*.org/mathjax/latest/MathJax.js,file:///usr/share/javascript/mathjax/MathJax.js,g' + : # Replace require + grep -l '/requirejs/' -R build/html/examples/notebooks \ + | xargs -r sed -i -e 's,https://\S*.com/ajax/libs/require.js/.*/require.min.js,file:///usr/share/javascript/requirejs/require.min.js,g' + grep -l '/jquery/' -R build/html/examples/notebooks \ + | xargs -r sed -i -e 's,https://\S*.com/ajax/libs/jquery/.*/jquery.min.js,file:///usr/share/javascript/jquery/jquery.min.js,g' endif -override_dh_auto_clean: $(HOME) - dh_auto_clean - -rm -f cythonize.dat +override_dh_installdocs: + rm -rf docs/source/generated/ + dh_installdocs -override_dh_clean: - dh_clean - rm -rf build *-stamp *.egg-info docs/source/generated +override_dh_auto_clean: + dh_auto_clean + -rm -rf cythonize.dat \ + *.egg-info \ + *.png \ + docs/build/ \ + docs/rehab.table \ + docs/salary.table \ + docs/source/datasets/generated \ + docs/source/dev/generated \ + docs/source/datasets/statsmodels.datasets.*.rst \ + docs/source/examples/notebooks/generated \ + examples/executed \ + statsmodels/tsa/statespace/_statespace.pyx \ + statsmodels/tsa/regime_switching/_hamilton_filter.pyx \ + tools/hash_dict.pickle : # Remove autogenerated version.py rm -f statsmodels/version.py -override_dh_auto_install-arch: ${PYVERS:%=python-install%} ${PYVERS:%=python-test%} - -override_dh_auto_install-indep: - -# Per Python version logic -- install, test, move .so into -lib -python-install%: - python$* setup.py install --install-layout=deb --root=$(PACKAGE_ROOT_DIR) - -python-test%: python-install% -ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) - : # Run unittests here against installed statsmodels - cd build/ && \ - PYTHONPATH=`/bin/ls -d $(CURDIR)/$(PACKAGE_ROOT_DIR)/usr/lib/python$*/*/` \ - MPLCONFIGDIR=$(CURDIR)/build \ - python$* /usr/bin/nosetests -s -v --exclude=sandbox --exclude=test_plot_month statsmodels -else - : # Skip unittests due to nocheck -endif - - override_dh_install: dh_install : # Remove compiled due to testing files @@ -121,35 +90,32 @@ dh_compress -X.py -X.html -X.pdf -X.css -X.jpg -X.txt -X.js -X.json -X.rtc -X.inv -Xobjects.inv -override_dh_installdocs: - : # Use jquery from Debian package, so prune shipped one - -rm ./build/html/_static/jquery.js - dh_installdocs - ## move binary libraries into -lib -override_dh_python2: - : # Move platform-specific libraries into -lib - for lib in $$(find $(PACKAGE_ROOT_DIR)/usr -name '*.so'); do \ - sdir=$$(dirname $$lib) ; \ - tdir=$(PACKAGE_ROOT_DIR)-lib/$${sdir#*$(PACKAGE_NAME)/} ; \ - mkdir -p $$tdir ; \ - echo "I: Moving '$$lib' into '$$tdir'." ; \ - mv $$lib $$tdir ; \ +override_dh_auto_install: + dh_auto_install + for PACKAGE_NAME in python-statsmodels python3-statsmodels; do \ + for lib in $$(find debian/$${PACKAGE_NAME}/usr -name '*.so'); do \ + sdir=$$(dirname $$lib) ; \ + tdir=debian/$${PACKAGE_NAME}-lib/$${sdir#*$${PACKAGE_NAME}/} ; \ + mkdir -p $$tdir ; \ + echo "I: Moving '$$lib' into '$$tdir'." ; \ + mv $$lib $$tdir ; \ + done ; \ done - if [ -x /usr/bin/dh_numpy ]; then dh_numpy -ppython-statsmodels-lib; fi : # Prune scikits/__init__.py to avoid conflicts find debian -wholename \*scikits/__init__.py -delete : # Move scikits. space into a compatibility package set -e; \ find debian -wholename \*scikits -type d | while read skd; do \ skbd=$$(dirname $$skd); \ - skbd_=$$(echo $$skbd | sed -e 's/python-statsmodels/python-scikits.statsmodels/g'); \ + skbd_=$$(echo $$skbd | sed -e 's/python-statsmodels/python-scikits.statsmodels/g' \ + | sed -e 's/python3-statsmodels/python3-scikits.statsmodels/g'); \ mkdir -p $$skbd_; \ mv $$skd $$skbd_; \ done - dh_python2 - + dh_numpy + dh_numpy3 get-orig-source: uscan --upstream-version 0 --rename diff -Nru statsmodels-0.8.0/debian/source/include-binaries statsmodels-0.8.0/debian/source/include-binaries --- statsmodels-0.8.0/debian/source/include-binaries 1970-01-01 00:00:00.000000000 +0000 +++ statsmodels-0.8.0/debian/source/include-binaries 2017-09-29 22:06:26.000000000 +0000 @@ -0,0 +1,16 @@ +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,datasets.csv.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,HistData,Guerry.csv.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,doc,HistData,rst,Guerry.rst.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,COUNT,medpar.csv.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,doc,COUNT,rst,medpar.rst.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,car,Duncan.csv.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,doc,car,rst,Duncan.rst.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,robustbase,starsCYG.csv.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,doc,robustbase,rst,starsCYG.rst.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,doc,car,rst,Moore.rst.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,vcd,Arthritis.csv.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,doc,vcd,rst,Arthritis.rst.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,MASS,epil.csv.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,doc,MASS,rst,epil.rst.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,csv,geepack,dietox.csv.zip +debian/datasets/raw.github.com,vincentarelbundock,Rdatasets,master,doc,geepack,rst,dietox.rst.zip diff -Nru statsmodels-0.8.0/debian/tests/control statsmodels-0.8.0/debian/tests/control --- statsmodels-0.8.0/debian/tests/control 1970-01-01 00:00:00.000000000 +0000 +++ statsmodels-0.8.0/debian/tests/control 2017-09-29 22:06:26.000000000 +0000 @@ -0,0 +1,16 @@ +Test-Command: set -e + ; for py in $(pyversions -r 2>/dev/null) + ; do cd "$ADTTMP" ; echo "Testing with $py:" + ; $py -c "import statsmodels; print statsmodels" + ; $py -c "import statsmodels.nonparametric._smoothers_lowess; print(statsmodels.nonparametric._smoothers_lowess)" + ; done +Depends: python-all, python-statsmodels + +Test-Command: set -e + ; for py in $(py3versions -r 2>/dev/null) + ; do cd "$ADTTMP" ; echo "Testing with $py:" + ; $py -c "import statsmodels; print(statsmodels)" + ; $py -c "import statsmodels.nonparametric._smoothers_lowess; print(statsmodels.nonparametric._smoothers_lowess)" + ; done +Depends: python3-all, python3-statsmodels + diff -Nru statsmodels-0.8.0/debian/TODO statsmodels-0.8.0/debian/TODO --- statsmodels-0.8.0/debian/TODO 2017-08-19 09:42:08.000000000 +0000 +++ statsmodels-0.8.0/debian/TODO 2017-09-29 22:06:26.000000000 +0000 @@ -1,12 +1,7 @@ -W: statsmodels source: out-of-date-standards-version 3.9.4 (current is 3.9.5) -E: python-statsmodels: privacy-breach-statistics-website usr/lib/python2.7/dist-packages/statsmodels/datasets/scotland/src/scotland_devolution.html -W: python-statsmodels: executable-not-elf-or-script usr/lib/python2.7/dist-packages/statsmodels/datasets/cancer/cancer.csv -W: python-statsmodels-doc: embedded-javascript-library usr/share/doc/python-statsmodels-doc/html/_static/underscore.js -W: python-scikits.statsmodels: empty-binary-package +In next upstream version (0.9?) the line -use shipped along copies of ipython sphinx extensions whenever n/a from system ones -Extension error: -Could not import extension IPython.sphinxext.ipython_console_highlighting (exception: No module named sphinxext.ipython_console_highlighting) -WARNING: Not building inheritance diagrams on sphinx 1.1.3. See https://github.com/statsmodels/statsmodels/issues/1002 -make[1]: *** [html] Error 1 + export PYBUILD_TEST_ARGS = --exclude='(test_sarimax)|(test_structural)|(test_dynamic_factor)|(test_varmax)' +should be removed from debian/rules. Leaving out the tests +works around bug #873512 which has a proper but complex fix +upstream