debian/0000755000000000000000000000000013401524703007165 5ustar debian/README.source0000644000000000000000000000037011300075176011345 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. For more information about quilt, see /usr/share/doc/quilt/README.source debian/python-matplotlib-doc.doc-base0000644000000000000000000000126111300061334015005 0ustar Document: python-matplotlib-doc Title: Matplotlib Author: Darren Dale, Michael Droettboom, Eric Firing, John Hunter Abstract: matplotlib is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. matplotlib can be used in Python scripts, the Python and ipython shell (ala matlab or mathematica), web application servers, and six graphical user interface toolkits. Section: Programming/Python Format: HTML Index: /usr/share/doc/python-matplotlib-doc/html/index.html Files: /usr/share/doc/python-matplotlib-doc/html/* Format: PDF Files: /usr/share/doc/python-matplotlib-doc/Matplotlib.pdf debian/python-matplotlib-data.install0000644000000000000000000000065012027413166015156 0ustar lib/matplotlib/backends/Matplotlib.nib /usr/share/matplotlib/ lib/matplotlib/mpl-data/fonts/ /usr/share/matplotlib/mpl-data/ lib/matplotlib/mpl-data/images/ /usr/share/matplotlib/mpl-data/ lib/matplotlib/mpl-data/lineprops.glade /usr/share/matplotlib/mpl-data/ matplotlibrc.template /usr/share/matplotlib/matplotlib.conf lib/matplotlib/mpl-data/matplotlibrc /etc/ lib/matplotlib/mpl-data/sample_data/ /usr/share/matplotlib/ debian/changelog0000644000000000000000000011776013401523101011042 0ustar matplotlib (1.3.1-1ubuntu5.1) trusty-security; urgency=medium * SECURITY UPDATE: Buffer Overrun - debian/patches/CVE-2013-1424: Replace vsprintf with vsnprintf to avoid buffer overrun. The patch is thanks to Debian. - CVE-2013-1424 -- Mike Salvatore Tue, 04 Dec 2018 10:39:06 -0500 matplotlib (1.3.1-1ubuntu5) trusty; urgency=medium * No change rebuild to drop python3.3 compiled extension. -- Dimitri John Ledkov Mon, 31 Mar 2014 19:36:10 +0100 matplotlib (1.3.1-1ubuntu4) trusty; urgency=medium * Fix build failure with updated numpy. -- Matthias Klose Thu, 06 Mar 2014 11:55:45 +0100 matplotlib (1.3.1-1ubuntu3) trusty; urgency=medium [ Tim Lunn ] * debian/control: Build depend against tcl/tk 8.6 since this is the default for python2.7 now (LP: #1266605) [ Julian Taylor ] * add python{,3}-tk-dbg build dependency for debug tkagg backend * add autopkgtest doing basic testing of a few backends -- Tim Lunn Tue, 07 Jan 2014 11:08:52 +1100 matplotlib (1.3.1-1ubuntu2) trusty; urgency=low * Backport upstream patch (fix_infinite_recursion.diff) to fix nitime build failure. -- Dmitry Shachnev Tue, 24 Dec 2013 19:31:52 +0400 matplotlib (1.3.1-1ubuntu1) trusty; urgency=low * Merge with Debian unstable. Remaining changes: - multiarch-tktcl.patch: add multiarch path to tk/tclConfig.sh search path (LP #752647) -- Martin Pitt Tue, 29 Oct 2013 07:17:53 +0100 matplotlib (1.3.1-1) unstable; urgency=low * New upstream release * Acknowledge NMU, thanks Anton Gladky; Closes: #719065, #719384 * debian/patches/70_fix_UnicodeDecodeError.patch - removed, merged upstream * debian/{control, README.debian} - added nose and tornado to Suggests, needed to require matplotlib with pkg_resources; thanks to Javi Merino for the report; Closes: #725048 * debian/control - added ghostscript and inkscape to Suggests (to run tests) and python-imaging to Recommends (enhance mpl usage); thanks to Tobias Megies for the report; Closes: #725047 - added python{,3}-tornato to b-d, needed for tests * debian/{control, patches/70_bts720549_try_StayPuft_for_xkcd.patch} - try also StayPuft font when using xkcd style function; thanks to Elena Grandi for the report; Closes: #720549 -- Sandro Tosi Sun, 13 Oct 2013 10:47:22 +0200 matplotlib (1.3.0-1.1) unstable; urgency=low * Non-maintainer upload. * Fix error in font_manager.py: UnicodeDecodeError when starting ipython --pylab. (Closes: #719065) * Fix AttributeError error where there are no writable directories. -- Anton Gladky Sun, 29 Sep 2013 16:10:15 +0200 matplotlib (1.3.0-1) unstable; urgency=low [ Sandro Tosi ] * New upstream release; thanks to Julian Taylor for the report; Closes: #705631 * debian/watch - switch back to SF for upstream tarballs * Remove references to Fltk backend, now removed upstream * debian/control - add python-numpydoc to b-d, needed to build doc - add python{,3}-pyparsing, it's no longer bundled in the upstream tarball; Closes: #531024 - bump Standards-Version to 3.9.4 (no changes needed) * debian/README.debian - changed location of user-specific config file * debian/patches/* - refreshed and removed merged patch * debian/copyright - extend packaging copyright years - update upstream copyright notice * debian/rules - setupegg.py was removed, use setup.py instead - remove .pyc files from -doc package [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. * Fix typos in README.debian. -- Sandro Tosi Mon, 05 Aug 2013 22:15:44 +0200 matplotlib (1.2.0-1) experimental; urgency=low * New upstream release * debian/{control, rules} - run tests for python3 module * debian/{control, README.debian} - add several missing dependencies (and b-d) for Matplotlib backends * debian/rules - no longer set examples.* options in matplotlibrc when building doc (they are not needed with 1.2.0) * debian/patches/60_bts691960_reintroduce_examples.directory_rcparam.patch - reintroduce (removed in 1.2.x series) 'examples.directory' rc parameter, in order to specify the Debian custom sample_data path; thanks to Julian Taylor for the report; Closes: #691960 -- Sandro Tosi Sun, 11 Nov 2012 12:17:37 +0100 matplotlib (1.2.0~rc2-2) experimental; urgency=low * debian/{control, rules} - provide Python 3 packages, based on the work of Thomas Kluyver (thanks!); thanks to Yaroslav Halchenko for the report; Closes: #669272 -- Sandro Tosi Tue, 23 Oct 2012 22:55:15 +0200 matplotlib (1.2.0~rc2-1) experimental; urgency=low * New upstream release candidate * debian/control - updated Homepage field to new upstream website location * debian/copyright - converted to DEP-5 format - updated to new upstream code - extended packaging copyright years * debian/patches/60_new_syntax_to_load_searchindex.patch - removed, merged upstream * debian/watch - updated to point to github * debian/patches/30_disable_sample_downloads.patch - removed, no longer needed * debian/patches/10_build_fix.patch - disabled, but not removed in case we'll have to restore it * debian/python-matplotlib-data.install - install sampledata from new location (now it's in upstream tarball) - use matplotlibrc.template to install base matplotlib.conf file * debian/rules - set backend and not datapath in matplotlibrc when running tests - fix broken symlinks to TrueType fonts; thanks to Ian Zimmerman for the report; Closes: #687674 * debian/{control, rules} - run tests under 'xvfb-run', needed to run inkscape (which is required to compare SVG images); adding relevant b-d (xvfb and xauth) -- Sandro Tosi Tue, 25 Sep 2012 19:44:06 +0200 matplotlib (1.1.1-1) experimental; urgency=low * New upstream release - Closes: #680883; thanks to Yannick Roehlly for the report * debian/control - add ghostscript and inkscape to b-d, needed to run tests -- Sandro Tosi Sat, 11 Aug 2012 20:15:53 +0200 matplotlib (1.1.1~rc2-1) unstable; urgency=low * New upstream release candidate * debian/control - remove some unnecessary build-depends; thanks to Michael Droettboom from upstream for the review of the b-d packages list - remove Qt3 dependencies, not required since a long time, easying Qt3 removal from Debian; thanks to Ana Guerrero for report; Closes: #673399 - add python-nose to b-d, needed to run tests * debian/rules - enable tests at build time -- Sandro Tosi Sun, 10 Jun 2012 16:21:11 +0200 matplotlib (1.1.1~rc1-2) unstable; urgency=low * debian/patches/60_new_syntax_to_load_searchindex.patch - use new Sphinx syntax to load searchindex.js so dh_sphinxdoc is able to recognize search.html as a valid Sphinx search page * debian/{control, rules} - use dh_sphinxdoc * debian/rules - set MPLCONFIGDIR to a writable directory; thanks to Lucas Nussbaum for the report; Closes: #669549 -- Sandro Tosi Sat, 12 May 2012 18:05:15 +0200 matplotlib (1.1.1~rc1-1) unstable; urgency=low * New upstream (release candidate) release - provide ipython 0.11 compatibility; thanks to Julian Taylor for the report; Closes: #636464 * debian/control - replace ttf-lyx with fonts-lyx (package rename); thanks to Ryo IGARASHI for the report; Closes: #664048 - bump required numpy version to 1.4 at least - bump Standards-Version to 3.9.3 (no changes needed) * debian/{control, rules} - use dh_numpy -- Sandro Tosi Sun, 25 Mar 2012 14:45:00 +0200 matplotlib (1.1.0-1) unstable; urgency=low * New upstream release * debian/control - remove Alexandre from Uploaders: thanks for all the work! * debian/rules - install debug files where gdb looks for them - removed some doc files no more present in upstream tarball - don't install baseline_images dir, contains images only needed for tests and takes a lot of disk space * debian/copyright - updated to new release * debian/patches/* - updated/deleted/refreshed as per new code -- Sandro Tosi Sat, 08 Oct 2011 17:32:16 +0200 matplotlib (1.0.1-3) unstable; urgency=low * debian/patches/80_fix_tkinter_version_detection.patch - fix tkinter version detection; Closes: #632963 -- Sandro Tosi Mon, 11 Jul 2011 20:53:08 +0200 matplotlib (1.0.1-2) unstable; urgency=low * Upload to unstable - fixed a FTBFS since the failing code (unicode vs byte-string) is rewritten in 1.0.x branch; thanks to Lucas Nussbaum for the report and to Stefano Rivera for the analysis; Closes: #625150 * debian/rules - remove verbose logging for debhelper - remove compiled python code from documentation * debian/patches/70_search_new_tkdir.patch - added patch to look for the updated location of 'tkConfig.sh' script; thanks to Julian Taylor for the report and patch; Closes: #621700 * debian/control - bump Standards-Version to 3.9.2 (no changes needed) - removed XB-P-V/Conflicts/Replaces/Provides, no more needed -- Sandro Tosi Sat, 07 May 2011 11:14:24 +0200 matplotlib (1.0.1-1) experimental; urgency=low * New upstream release; Closes: #606116 * debian/patches/{10_build_fix.patch, 20_matplotlibrc_path_search_fix.patch} - updated to new upstream code * debian/patches/30_doc_pass_dpi.patch - removed, merged upstream * debian/rules - don't compress objects.inv; thanks to Michael Fladischer for the report; Closes: #608760 * debian/rules, debian/patches/30_disable_sample_downloads.patch - bypass examples data download from internet, but use local copy instead * debian/python-matplotlib-data.install - install examples sample data * debian/control - bump Standards-Version: to 3.9.1 (no changes needed) - removed DM-U-A flag, no more needed - added python-xlwt to b-d, needed to build doc examples - Benjamin Drung removed himself from the Uploaders list * debian/copyright - updated debian packaging copyright * debian/patches/40_bts608939_draw_markers_description.patch - fix a glitch (missing reference to documentation page) in draw_markers() description; thanks to Jakub Wilk for report and patch; Closes: #608939 * debian/patches/50_bts608942_spaces_in_param_args.patch - don't separate param and its argument with a space, new sphinx consider the first argument as the type; thanks to Jakub Wilk for the report; Closes: #608942 * debian/patches/60_doc_output_format.patch - obtain the documentation output format even if the value is a unicode (as returned by recent sphinx); thanks to Jakub Wilk for the tip on IRC -- Sandro Tosi Tue, 25 Jan 2011 18:17:56 +0100 matplotlib (0.99.3-1) unstable; urgency=low * New upstream release * debian/patches/05-find-tcl-tk-directory.patch - removed, now merged upstream * debian/patches/10_build_fix.patch - adapted to new upstream code * debian/pycompat - removed, not needed * debian/mkcopyright.sh - removed, not needed anymore -- Sandro Tosi Tue, 22 Jun 2010 00:32:30 +0200 matplotlib (0.99.1.2-3) unstable; urgency=low [ Sandro Tosi ] * debian/control - Recommends python-tk directly and Suggests all other other Python bindings (changes from Ubuntu); this way the default backend ('TkAgg') will work out-of-the-box and the others will need manual bindings installation; Closes: #563137 [ Benjamin Drung ] * Bump Standards-Version to 3.8.4 (no changes required). * Add trailing blank line to debian/NEWS. * Add platform entry for GNU/Hurd to 10_build_fix.patch; thanks to Pino Toscano for the patch (Closes: #568599). -- Benjamin Drung Sat, 06 Feb 2010 09:34:01 +0100 matplotlib (0.99.1.2-2) unstable; urgency=low * Build depend on texlive-latex-recommended instead of latex-ucs to fix FTBFS (Closes: #562346). * Bump python-numpy dependency to version 1.3.0 (Closes: #559990). * Add ${misc:Depends} to Depends. * Switch to 3.0 (quilt) source format. * Refresh patches. -- Benjamin Drung Mon, 28 Dec 2009 15:57:32 +0100 matplotlib (0.99.1.2-1) unstable; urgency=low * New upstream release. * Fix spelling error in doc-base abstract field. * Add missing section field to doc-base file. * Convert patch system back to quilt and use DEP-3 patch tagging guidelines. -- Benjamin Drung Sun, 15 Nov 2009 22:17:31 +0100 matplotlib (0.99.1.1-1) unstable; urgency=low [ Sandro Tosi ] * New upstream release * debian/control - added python-wxgtk2.8-dbg to b-d (needed to build -dbg package) - added python-imaging to b-d (needed for -doc package) - added librsvg2-common to Suggests of python-matplotlib, needed by GTKAgg backend; thanks to Jonas for the report and suggestion; Closes: #548874 - moved python-excelerator from Depends to Suggests; thanks to W. Martin Borgert for the report; Closes: #547437 - removed Ondrej from Uploaders: thanks for your work! * debian/patches/30_doc_pass_dpi.dpatch - pass DPI when building doc images * debian/python-matplotlib-doc.doc-base - added doc-base [ Benjamin Drung ] * wrote 05-find-tcl-tk-directory.dpatch * strip not working parts from 10_build_fix.dpatch * debian/rules - refresh clean target * link to fonts in ttf-lyx to make lintian happy * Add latex-ucs and texlive-fonts-recommended to Build-Depends (Closes: #551248). * Demote GUI toolkits from Depends to Recommends; thanks to Thomas Bechtold for this hint (Closes: #547437). * Install lib/matplotlib/mpl-data/lineprops.glade; thanks to Ambrose Andrews for the report (Closes: #518488). -- Benjamin Drung Sun, 08 Nov 2009 21:58:23 +0100 matplotlib (0.99.0-1) unstable; urgency=low * New upstream release - thanks to Michael S. Gilbert for the report; Closes: #541146 * debian/control - removed Marco Presi from uploaders: thanks for your work! - bump Standards-Version to 3.8.3 (no changes needed) -- Sandro Tosi Thu, 17 Sep 2009 12:46:17 +0200 matplotlib (0.98.5.3-2) unstable; urgency=medium [ Benjamin Drung ] * Build with tcl/tk8.5 as python-tk was build with tcl/tk8.5; thanks to Lucas Nussbaum for the report; Closes: #536985 (RC bug, hence urgency=medium) * Bump Standards-Version to 3.8.2 (no changes). -- Sandro Tosi Wed, 15 Jul 2009 10:16:45 +0200 matplotlib (0.98.5.3-1) unstable; urgency=low [ Benjamin Drung ] * debian/control - Rename python-enthought-traits to python-traits - Move python-matplotlib-dbg to section debug - Build depends on python-qt4 - Update my e-mail address. - Sort build depends and break depends. * debian/rules - In clean target use rm -rf instead dh_clean for removing build directory; thanks Andrew Straw for the patch - Let all stamp files end with -stamp for automatically cleaning by dh_clean - Remove generated doc files in clean target; upstreams doc clean target only runs svn-clean, which is useless without a repository * Switch to debhelper 7 * Install egg-info files and add python-setuptools to build depends; thanks to Gediminas Paulauskas [ Sandro Tosi ] * New upstream release (ready to be uploaded in unstable) - ensure WX examples use version >= 2.8, thanks to giacomo boffi for the report; Closes: #518150 * debian/control - removed Vittorio Palmisano from uploaders (mia); thanks for your work! - bump Standards-Version to 3.8.1 (no changes needed) * debian/copyright - completely rewritten to match new upstream code * debian/{rules, *.lintian-overrides} - added these lintian overrides: + arch-dep-package-has-big-usr-share . python-matplotlib has large arch-indep with some arch-dep code + copyright-should-refer-to-common-license-file-for-lgpl . false warning, since it greps for LGPL that's in the license text as example + extra-license-file . license embedded in the documentation, will break links if removed + font-in-non-font-package . we ship fonts, so no need to warning for this * debian/{control, rules, python-matplotlib.preinst} - switch to python-support (adding preinst for the migration) -- Sandro Tosi Fri, 29 May 2009 08:40:48 +0200 matplotlib (0.98.5.2-1) experimental; urgency=low [ Benjamin Drung ] * debian/control - Added python-pkg-resources to build dependency for version detection of python-enthought-traits - merged python-tk into GUI Python packages alternative dependency list - add myself to uploaders * Move content of debian/patches/setup.cfg.patch to debian/setup.cfg to set the default backend to TkAgg [ Sandro Tosi ] * New upstream release - Fixed histogram autoscaling bug when bins or range are given explicitly; Closes: #503148 - fix a FTBFS if built with GCC 4.4; thanks to Martin Michlmayr for the report and the patch; Closes: #505618 * debian/control - switch Vcs-Browser field to viewsvn - removed python from Depends since introduced by python:Depends - depending on python-all-dbg for -dbg package (to install all dbg interpreters) - moved python-tk to the first position of multiple GUI bindings Depends line - moved 'dvipng' from Recommends to Suggests (to avoid texlive to be automatically taken in); Closes: #490992 - bump build-depends in python-sphinx to at least 0.5.1 (upstream doc build system requires it) * debian/NEWS - added to notify users about default backend (TkAgg) - added note about 'dvipng' not installed automatically anymore * debian/README.debian - added information about changing backend * debian/rules - merging all "rm" calls into "dh_clean" call - removed 'API_CHANGES' installation, since removed upstream - doc building with '--small' option, to reduce doc size (removing hi-res and pdf gallery images) * debian/{control,rules,patches/*,README.source} - moved from quilt to dpatch * debian/patches/{matplotlibrc.template-typo.patch, doc_graphviz_errors_fix.patch,bts-498229_axes3d_typo.patch} - removed since merged upstream * debian/docs - removed since not needed (the same files were listed in debian/rules) -- Sandro Tosi Wed, 14 Jan 2009 22:09:58 +0100 matplotlib (0.98.3-5) unstable; urgency=medium [ Benjamin Drung ] * debian/patches/matplotlibrc.template-typo.patch - fix typo in matplotlibrc.template [ Sandro Tosi ] * debian/control - updated my email address - replaced python-wxgtk2.6 with python-wxgtk2.8 * debian/patches/setup.cfg.patch - added to create "setup.cfg" file to guide building (in particular for "backend" configuration); Closes: #502976 * debian/patches/bts-498229_axes3d_typo.patch - added to fix a typo when importing "axes3d"; thanks to Tiziano Zito for the report; Closes: #498229 -- Sandro Tosi Fri, 31 Oct 2008 13:51:20 +0100 matplotlib (0.98.3-4) unstable; urgency=low [ Sandro Tosi ] * Release in collaboration with Benjamin Drung, from Ubuntu * debian/control - applied Benjamin Drung patch to split dep fields a package per line; thanks to him; Closes: #495287 - replaced dep on python-dev with python; thanks to Benjamin Drung for the notice - depends reorganization: dvipng moved to recommends (optional tex depends), python-configobj and python-enthought-traits to suggests (experimental support); Closes: #490992 - added python-matplotlib-dbg package and python-all-dbg, python-numpy-dbg to build-dep - removed python-gd depends since no more needed * debian/README.debian - removed outdated info, added notice for MATPLOTLIBDATA env variable * debian/python-matplotlib-data.install - added matplotlib.conf installation * debian/patches/matplotlibrc_fix.patch - refreshed to match new upstream code * debian/rules - added build, clean and install for -dbg package [ Ondrej Certik ] * debian/patches/build_fix.patch updated thanks to Thiemo Seufer. Closes: #501618 -- Sandro Tosi Mon, 25 Aug 2008 23:28:30 +0200 matplotlib (0.98.3-3) unstable; urgency=medium * debian/control - moved depends on libjs-jquery from binary to -doc package; thanks to Nicolas Évrard for the report; part of #490992 resolution * debian/rules - used distutils to retrieve the build directory for matplotlib, needed for doc generation; thanks to Lucas Nussbaum for the report and to Piotr for the fix; Closes: #494236 -- Sandro Tosi Mon, 11 Aug 2008 20:51:52 +0200 matplotlib (0.98.3-2) unstable; urgency=low * debian/patches/build_fix.patch - added kfreebsd7/8 based systems; thanks to Petr Salinger for the patch; Closes: #493858 -- Sandro Tosi Tue, 05 Aug 2008 19:39:18 +0200 matplotlib (0.98.3-1) unstable; urgency=medium * New upstream release - fixed memory leaks; Closes: #492735 (RC bug, hence urgency=medium) * debian/control - added python-sphinx (versioned to easy Lenny entrance), graphviz, ipython, texlive-latex-extra build-deps in order to build documentation - added Suggests on python-scipy; thanks to Chris Walker for the report; Closes: #488138 - added Vcs-{Browser,Svn} fields - added depend on libjs-jquery to replace embedded one * debian/rules - build and install documentation; Closes: #401629 - symlinked jquery.js from libjs-jquery instead of the embedded one - added dh_link -i call for indep packages * debian/watch - removed comment lines since not needed * debian/patches/doc_graphviz_errors_fix.patch - added to fix graphviz errors during doc build (from upstream svn r5962) * debian/copyright - shortened some long line (to make lintian happy) -- Sandro Tosi Mon, 04 Aug 2008 21:42:05 +0200 matplotlib (0.98.1-1) unstable; urgency=low * New upstream release; Closes: #486074 -- Sandro Tosi Mon, 23 Jun 2008 21:13:50 +0200 matplotlib (0.98.0-1) experimental; urgency=low * New upstream release; Closes: #486074 * debian/rules - changed doc name * debian/control - bump build-dep to python-numpy to at least 1.1.0 - added python-excelerator to Depends * debian/patches/build_fix.patch - updated to match new upstream source code -- Sandro Tosi Thu, 19 Jun 2008 20:40:43 +0200 matplotlib (0.91.3-1) unstable; urgency=low * New upstream release; Closes: #485950 * debian/patches/bts-468977_memory_api_usage.patch - removed since merged upstream * debian/patches/bts-478237_ftbfs_gcc43.patch - removed since merged upstream * debian/patches/build_fix.patch - updated to match new upstream code * debian/control - bump Standards-Version to 3.8.0 - removed build-dep on xbase-clients; it was a lintian error, but the package works fine without it - added python-pyparsing, python-cairo and python-glade2 to Depends * debian/README.source - added to reflect Policy 3.8.0 -- Sandro Tosi Fri, 13 Jun 2008 20:52:01 +0200 matplotlib (0.91.2-2) unstable; urgency=medium * debian/patches/bts-478237_ftbfs_gcc43.patch - added (Closes: #478237) * debian/rules - removed some files changes during build * debian/control - removed Depends on python-numeric-ext, python-numarray-ext (Closes: #478451) -- Sandro Tosi Tue, 29 Apr 2008 19:09:08 +0200 matplotlib (0.91.2-1) unstable; urgency=low [ Piotr Ożarowski ] * Replace libwxgtk2.4-python with python-wxgtk2.6 in Depends (closes: #466470) [ Sandro Tosi ] * New upstream release (Closes: #459200, #474001, #447741, #408955) * debian/patches/build_fix.patch - edited to match new code * debian/rules - adjusted doc files installation * debian/docs - removed since the same files were already in debian/rules * debian/patches/matplotlibrc_fix.patch - edited to match new code (sync from Ubuntu) * debian/control - added "dvipng, python-configobj, python-enthought-traits (>= 2.0), python-qt-dev, python-qt4-dev, python-wxgtk2.6" as build-dep (sync from Ubuntu) - bump depends on python-numpy (sync from Ubuntu) - added "python-qt4, dvipng, python-configobj, python-enthought-traits (>= 2.0)" to Depends (sync from Ubuntu) - merged Recommends into Depends - removed Depends on python-pypaint since that package is unavailable - added myself to Uploaders * debian/patches/bts-468977_memory_api_usage.patch - fixes Python API memory usage (Closes: #468977) -- Sandro Tosi Wed, 23 Apr 2008 17:37:03 +0200 matplotlib (0.90.1-4) unstable; urgency=low * Maintainer changed to Debian Python Modules Team * Vittorio Palmisano and Ondrej Certik added to Uploaders * "DM-Upload-Allowed: yes" field added * Standards-Version bumped to 3.7.3 * python-numarray and python-numeric removed from build-depends and debian/rules fixed to make the package compile * debian/rules polished * patches moved under a quilt control * Package descriptions fixed (python -> Python) * Homepage field added (and removed from description) * python-matplotlib-doc package moved to the "doc" Section * /usr/share/matplotlib/mpl-data/images/*.svg made chmod 644 (i.e. not executable) * debian/watch uncommented, as it seems to work (and last line removed) * python2.3-matplotlib removed from Conflicts/Replaces -- Ondrej Certik Sun, 09 Mar 2008 20:39:04 +0100 matplotlib (0.90.1-3.1) unstable; urgency=medium * Non-maintainer upload to fix an RC bug. python-numpy conflicts with python-matplotlib (<< 0.90.1-3), that's why we use 0.90.1-3.1 instead of 0.90.1-2.1. * Rebuilt against python-numpy 1:1.0.4-6 (Closes: #467099) -- Ondrej Certik Sun, 24 Feb 2008 14:36:08 +0100 matplotlib (0.90.1-2) unstable; urgency=low * Upload to unstable and not experimental (closes: #411709) * New version can coexist with python-numpy (closes: #426953) * Removed spurious dependency on python-gst (closes: #422711) * New package correctly detects numpy, numeric and numarray (closes: #425906) * applied debian/rules patch for the check that plugins were built (closes: #422475) * Changed dependency on dvipng to a recommendation (closes: #403198) * use texlive instead of tetex (closes: #406176) * added suggests on texlive-latex-extra (closes: #410777) * reworded the description bit about "publication quality" (closes: #421593) -- Alexandre Fayolle Thu, 19 Jul 2007 11:58:24 +0200 matplotlib (0.90.1-1) experimental; urgency=low * New upstream release * updated debian/copyright file -- Alexandre Fayolle Fri, 06 Jul 2007 17:49:05 +0200 matplotlib (0.90.0-2) experimental; urgency=low * Changed dvipng dependency to a recommends (Closes: #403198) * Added to suggests tetex-extra | texlive-extra-utils (Closes: 406176) * Added to suggests texlive-latex-extra (Closes: #410777) * Changed python-gst dependency to python-gobject * Already closed bug: (Closes: #396386) -- Vittorio Palmisano Thu, 26 Apr 2007 11:00:02 +0200 matplotlib (0.90.0-1) experimental; urgency=low * New upstream release * Added depend on python-tk (Closes: #408944) -- Marco Presi (Zufus) Thu, 1 Mar 2007 22:32:45 +0000 matplotlib (0.87.7-0.2) unstable; urgency=high * Non-maintainer upload. * Using patch provided by Mark Hymers - Add check to debian/rules to prevent builds silently failing to build one of the plugins. (Closes: #411925) -- Martin Zobel-Helas Wed, 28 Feb 2007 10:39:43 +0100 matplotlib (0.87.7-0.1) unstable; urgency=medium * Remove build dependency on python-numpy-ext. * Prefer python-numpy over (python-numeric as a dependency. Closes: #389669. * Already fixed: - Build dependency on python-numpy. Closes: #375558. * Readd dependency on python-gst. Closes: #385590. * Mention pylab in the package description. Closes: #403723. -- Matthias Klose Sun, 7 Jan 2007 21:30:23 +0000 matplotlib (0.87.7-0) experimental; urgency=low * New upstream version (compatible with python-numpy-1.0). Closes: #361181. * (Build-)depend on python-numpy (>= 1:1.0.1). * Remove redundant (build-)dependencies. * Remove references to explicit python versions. Closes: #405611. -- Matthias Klose Wed, 3 Jan 2007 22:52:34 +0100 matplotlib (0.87.5-2.2) unstable; urgency=low * Non-maintainer upload. * Also Depend: on python-dateutil (closes: #396335) -- Mark Hymers Tue, 31 Oct 2006 18:05:10 +0000 matplotlib (0.87.5-2.1) unstable; urgency=low * Non-maintainer upload. * Build-Depend on python-dateutil so that we don't supply our internal copy. Closes: #393074. -- Mark Hymers Sun, 29 Oct 2006 01:57:17 +0100 matplotlib (0.87.5-2) unstable; urgency=low * Fixed python-numpy dependency. Closes: #387440 * python-gtk2 includes gobject module and it is an optional dependency for those who use an X server. Closes: #382400, #385590 -- Vittorio Palmisano Sat, 16 Sep 2006 18:14:25 +0200 matplotlib (0.87.5-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Fri, 08 Sep 2006 15:46:46 +0200 matplotlib (0.87.4-3) unstable; urgency=low * Removed wrong "Section: doc" from python-matplotlib-doc package -- Vittorio Palmisano Wed, 09 Aug 2006 16:15:44 +0200 matplotlib (0.87.4-2) unstable; urgency=low * Removed pytz files. Closes: #335991, #377275 * Added numpy support. Closes: #353342 * Removed duplicate README.debian. Closes: #380102 -- Vittorio Palmisano Wed, 02 Aug 2006 18:28:22 +0200 matplotlib (0.87.4-1) unstable; urgency=low * New upstream release -- Marco Presi (Zufus) Wed, 12 Jul 2006 09:27:16 +0200 matplotlib (0.87.3-1) unstable; urgency=low * New upstream version. Closes: #361181 * Added numpy support. Closes: #375558 * Added depends on python-tz. Closes: #376715 -- Marco Presi (Zufus) Thu, 6 Jul 2006 09:54:55 +0200 matplotlib (0.86.2-6.1) unstable; urgency=low * Depend on python-tz, remove the pytz files. Closes: #376715. -- Matthias Klose Fri, 7 Jul 2006 18:38:43 +0000 matplotlib (0.86.2-6) unstable; urgency=low * Added a note about numeric/numarray deps in README.debian. Closes: #376198 * Added PYVERS to debian/rules (Carlo Segre patch). Closes: #376239 * Modified Vittorio Palmisano e-mail address. -- Marco Presi (Zufus) Tue, 4 Jul 2006 15:35:38 +0200 matplotlib (0.86.2-5) unstable; urgency=low * Updated to new Python policy (closes: #373462) * fixed dependency on python-numarray (closes: #373165) -- Alexandre Fayolle Thu, 15 Jun 2006 18:27:18 +0200 matplotlib (0.86.2-4) unstable; urgency=low * Added Build-Deps on python-setuputils. Closes: #358597 -- Marco Presi (Zufus) Wed, 29 Mar 2006 16:26:27 +0200 matplotlib (0.86.2-3) unstable; urgency=low * Fix the previuos BAD Non-maintaner upload. Closes: #357459 -- Marco Presi (Zufus) Mon, 20 Mar 2006 23:00:38 +0100 matplotlib (0.86.2-2.1) unstable; urgency=high * Non-maintainer upload. * Fix FTBFS 'rm: cannot remove ...: No such file ... (Closes: #354370). -- Luk Claes Thu, 16 Mar 2006 18:52:47 +0100 matplotlib (0.86.2-2) unstable; urgency=low * Packages now depend both on python-numarray and python-numeric. Closes: #353043 -- Marco Presi (Zufus) Thu, 16 Feb 2006 19:19:42 +0100 matplotlib (0.86.2-1) unstable; urgency=low * New upstream release. Closes: #341730 * Added ${shlibs:Depends}. Closes: #345366 * python-matplotlib-doc is suggested by python-matplotlib and enhances it. Closes: #341610 * Replaced latex dependency with tetex-extra. Closes: #337361 * subplot() behavior fixed. Closes: #346285 * Added users_guide in -doc package. Closes: #341399 -- Vittorio Palmisano Sat, 28 Jan 2006 19:29:15 +0100 matplotlib (0.85-1) unstable; urgency=low * New upstream release. Closes: #341730 * Added ipython among Enhanced packages. -- Marco Presi (Zufus) Sat, 10 Dec 2005 22:53:24 -0500 matplotlib (0.82-5) unstable; urgency=low * Added documentation package. Closes: #338622 * Added python-epydoc dependency for documentation generation. -- Vittorio Palmisano Sat, 12 Nov 2005 21:26:16 +0100 matplotlib (0.82-4) unstable; urgency=low * Fixed FTBFS on hppa: added patch to build on systems without X server (autobuilders) also in the clean stage. Closes: 338423. * The same patch fix the build also on GNU/kFreeBSD. Closes: #336953 -- Marco Presi (Zufus) Fri, 11 Nov 2005 20:51:08 -0500 matplotlib (0.82-3) unstable; urgency=low * Fixed deps on python-matplotlib (was depending on 0.82-1) -- Marco Presi (Zufus) Thu, 10 Nov 2005 23:46:04 -0500 matplotlib (0.82-2) unstable; urgency=low [Marco Presi] * Included patch by Aurelien Jarno to fix build on GNU/kFreeBSD. Closes: #336953 * Added latex as Suggested dependency. Closes: #337361 -- Marco Presi (Zufus) Sun, 6 Nov 2005 21:49:45 -0500 matplotlib (0.82-1) unstable; urgency=low * New upstream release * First Debian release. Closes: #206691 * Removed doc package, added notes in README.debian * Added dvipng dependency * Added python2.3-qt3, python2.4-qt3 optional dependency * Added API_CHANGES, INTERACTIVE, KNOWN_BUGS, NUMARRAY_ISSUES to docs * Removed import gtk/tk from setup.py for building on systems without X server (buildd) * Moved .matplolibrc to /etc/matplolibrc and patched lib/__init__.py in order to make the package compliant with Debian Policy -- Vittorio Palmisano Sat, 15 Oct 2005 22:42:01 +0200 matplotlib (0.81-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Sat, 11 Jun 2005 13:16:37 +0200 matplotlib (0.80-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Mon, 25 Apr 2005 19:16:59 +0200 matplotlib (0.74-1) unstable; urgency=low * New upstream release * Aurelien Jarno: - python-matplotlib does not need to depends on python-matplotlib-data - remove README.Debian file - README and TODO also in python2.3-matplotlib and python2.4-matplotlib - keep the name matplotlib for the source package only - remove generation of html docs, using User's Guide pdf -- Vittorio Palmisano Sun, 10 Apr 2005 09:53:51 +0200 python-matplotlib (0.72-4) unstable; urgency=low * Added support for different python versions -- Vittorio Palmisano Sat, 26 Feb 2005 22:05:40 +0100 python-matplotlib (0.72-3) unstable; urgency=low * Aurelien Jarno: - fixed find_tcltk() error if X display is not accessible - changed matlab to Matlab in debian/control file -- Vittorio Palmisano Wed, 23 Feb 2005 16:17:36 +0100 python-matplotlib (0.72-2) unstable; urgency=low * Aurelien Jarno: - Fixed debhelper(>=4.1.67) dependency - removed debian/postinst and debian/preinst - removed gunzip of example/data -- Vittorio Palmisano Sun, 20 Feb 2005 21:44:17 +0100 python-matplotlib (0.72-1) unstable; urgency=low * New upstream release * Added python-dev dependency -- Vittorio Palmisano Fri, 18 Feb 2005 15:16:26 +0100 python-matplotlib (0.71-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Sat, 22 Jan 2005 15:19:56 +0100 python-matplotlib (0.70.1-2) unstable; urgency=low * Added python-numeric-ext | python-numarray-ext dependency -- Vittorio Palmisano Mon, 17 Jan 2005 11:16:01 +0100 python-matplotlib (0.70.1-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Sun, 02 Jan 2005 23:35:30 +0100 python-matplotlib (0.65.1-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Thu, 23 Dec 2004 21:58:31 +0100 python-matplotlib (0.65-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Sat, 18 Dec 2004 15:22:58 +0100 python-matplotlib (0.64-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Sat, 13 Nov 2004 22:28:00 +0100 python-matplotlib (0.63.4-3) unstable; urgency=low * Jochen Voss: - fix the dependencies and build-dependencies - remove the Vera*.ttf files and depend on ttf-bitstream-vera instead * added Recommends: ipython(>=0.6.3) -- Vittorio Palmisano Sat, 23 Oct 2004 10:48:27 +0200 python-matplotlib (0.63.4-2) unstable; urgency=low * Updated copyright file (autogenerated) * Changed Description * Removed libttf-dev depends (thanks to Jochen Voss) -- Vittorio Palmisano Sun, 03 Oct 2004 23:05:06 +0200 python-matplotlib (0.63.4-1) unstable; urgency=low * New upstream release (closes: #206691) * fixed .svg files perms * removed Recommends: libwxgtk2.4-python -- Vittorio Palmisano Fri, 01 Oct 2004 22:31:28 +0200 python-matplotlib (0.62.4-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Mon, 30 Aug 2004 22:30:50 +0200 python-matplotlib (0.61.0-2) unstable; urgency=low * John Hunter: - Removed python-ttfquery dependency -- Vittorio Palmisano Sun, 15 Aug 2004 20:25:00 +0200 python-matplotlib (0.61.0-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Mon, 09 Aug 2004 23:40:44 +0200 python-matplotlib (0.60.2-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Sun, 11 Jul 2004 10:24:01 +0200 python-matplotlib (0.54.2-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Fri, 11 Jun 2004 22:48:50 +0200 python-matplotlib (0.54.1-1) unstable; urgency=low * New upstream release * Seo Sanghyeon: - Fixed python-numeric | python-numarray dependency - Fixed python-gtk2 dependency -- Vittorio Palmisano Sun, 30 May 2004 10:14:08 +0200 python-matplotlib (0.54-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Sat, 22 May 2004 22:47:59 +0200 python-matplotlib (0.53.1-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Sat, 1 May 2004 23:19:40 +0200 python-matplotlib (0.53-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Fri, 23 Apr 2004 20:49:25 +0200 python-matplotlib (0.52-2) unstable; urgency=low * Fixed python-gd dependency -- Vittorio Palmisano Fri, 26 Mar 2004 11:40:37 +0100 python-matplotlib (0.52-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Sat, 20 Mar 2004 17:40:06 +0100 python-matplotlib (0.51-1) unstable; urgency=low * New upstream release -- Vittorio Palmisano Fri, 5 Mar 2004 14:27:08 +0100 python-matplotlib (0.50-2) unstable; urgency=low * Removed python2.3-numeric-ext dependency -- Vittorio Palmisano Thu, 26 Feb 2004 15:27:30 +0100 python-matplotlib (0.50-1) unstable; urgency=low * Initial Release. -- Vittorio Palmisano Sat, 21 Feb 2004 23:52:10 +0100 debian/compat0000644000000000000000000000000211162036634010366 0ustar 7 debian/python-matplotlib-data.lintian-overrides0000644000000000000000000000012011207436360017136 0ustar font-in-non-font-package copyright-should-refer-to-common-license-file-for-lgpl debian/rules0000755000000000000000000001605612200004044010240 0ustar #!/usr/bin/make -f PY2VERS := $(shell pyversions -v -r debian/control) PY3VERS := $(shell py3versions -v -r debian/control) DEFPY := $(shell pyversions -v -d) PY_PLATFORM := $(shell python -c 'from distutils.util import get_platform; print get_platform()') pd := python-matplotlib-doc p := python-matplotlib p3 := python3-matplotlib pdata := python-matplotlib-data pdbg := python-matplotlib-dbg p3dbg := python3-matplotlib-dbg # build build: build-arch build-indep build-indep: build-indep-stamp build-indep-stamp: $(DEFPY:%=build-%-stamp) dh_testdir # build the doc -( cd doc ; MPLCONFIGDIR=. MATPLOTLIBDATA=../lib/matplotlib/mpl-data/ \ PYTHONPATH=../build/lib.$(PY_PLATFORM)-$(DEFPY) ./make.py --small all ) touch $@ build-arch: $(PY2VERS:%=build-%-stamp) $(PY3VERS:%=build-%-stamp) build-%-stamp: dh_testdir cp -f debian/setup.cfg setup.cfg python$* ./setup.py build $(PY_BUILD_FLAGS) python$*-dbg ./setup.py build $(PY_BUILD_FLAGS) ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) echo "backend : TkAgg" > matplotlibrc -PYTHONPATH=$(shell python$* -c "from distutils.command.build import build ; \ from distutils.core import Distribution ; \ b = build(Distribution()) ; \ b.finalize_options() ; \ print(b.build_platlib)") \ MATPLOTLIBDATA=$(CURDIR)/lib/matplotlib/mpl-data/ \ MPLCONFIGDIR=. \ xvfb-run python$* -c "import matplotlib as m ; m.test(verbosity=1)" -PYTHONPATH=$(shell python$*-dbg -c "from distutils.command.build import build ; \ from distutils.core import Distribution ; \ b = build(Distribution()) ; \ b.finalize_options() ; \ print(b.build_platlib)") \ MATPLOTLIBDATA=$(CURDIR)/lib/matplotlib/mpl-data/ \ MPLCONFIGDIR=. \ xvfb-run python$*-dbg -c "import matplotlib as m ; m.test(verbosity=1)" rm -f matplotlibrc endif touch $@ # clean clean: dh_testdir dh_testroot for i in $(PY2VERS) $(PY3VERS); do \ python$(i) ./setup.py clean --all; \ python$(i)-dbg ./setup.py clean --all; \ done # clean the doc -( cd doc ; ./make.py clean ) # workaround for cleaning the doc ("doc/make.py clean" only runs useless svn-clean) rm -rf doc/build doc/examples rm -f doc/mpl_examples/api/*.png rm -f doc/mpl_examples/pylab_examples/*.png rm -f doc/mpl_examples/pylab_examples/*.pdf rm -f doc/mpl_examples/units/*.png rm -f doc/pyplots/tex_demo.png rm -f doc/_static/matplotlibrc rm -f doc/_templates/gallery.html find . -name '*.pyc' -exec rm {} \; dh_clean lib/matplotlib/mpl-data/matplotlib.conf \ lib/matplotlib/mpl-data/matplotlibrc setup.cfg rm -rf build rm -rf lib/matplotlib.egg-info # restore "pristine" doc/matplotlibrc sed -i '/^examples\./d' $(CURDIR)/doc/matplotlibrc # remove doc symlinks to examples directory rm -rf doc/mpl_examples rm -rf doc/mpl_toolkits/axes_grid/examples # install install-arch: build-arch $(PY2VERS:%=install-%-stamp) $(PY3VERS:%=install-py3-%-stamp) dh_testdir dh_testroot dh_numpy dh_numpy3 install-%-stamp: build-%-stamp dh_testdir dh_testroot python$* ./setup.py install_lib \ -d $(CURDIR)/debian/$(p)/usr/lib/python$*/site-packages/ --no-compile python$* ./setup.py install_egg_info \ -d $(CURDIR)/debian/$(p)/usr/lib/python$*/site-packages/ python$*-dbg ./setup.py install_lib \ -d $(CURDIR)/debian/$(pdbg)/usr/lib/python$*/site-packages/ --no-compile find debian/$(pdbg) ! -type d ! -name '*.so' | xargs rm -f find debian/$(pdbg) -depth -empty -exec rmdir {} \; # don't install baseline_images, needed for tests only, but huge rm -rf $(CURDIR)/debian/$(p)/usr/lib/python$*/*-packages/matplotlib/tests/baseline_images/ rm -rf $(CURDIR)/debian/$(p)/usr/lib/python$*/site-packages/matplotlib/mpl-data/ rm -rf $(CURDIR)/debian/$(p)/usr/lib/python$*/site-packages/matplotlib/backends/Matplotlib.nib/ rm -rf $(CURDIR)/debian/$(pdbg)/usr/lib/python$*/site-packages/matplotlib/mpl-data/ rm -rf $(CURDIR)/debian/$(pdbg)/usr/lib/python$*/site-packages/matplotlib/backends/Matplotlib.nib/ touch $@ install-py3-%-stamp: build-%-stamp dh_testdir dh_testroot python$* ./setup.py install_lib \ -d $(CURDIR)/debian/$(p3)/usr/lib/python3/dist-packages/ --no-compile python$* ./setup.py install_egg_info \ -d $(CURDIR)/debian/$(p3)/usr/lib/python3/dist-packages/ python$*-dbg ./setup.py install_lib \ -d $(CURDIR)/debian/$(p3dbg)/usr/lib/python3/dist-packages/ --no-compile find debian/$(p3dbg) ! -type d ! -name '*.so' | xargs rm -f find debian/$(p3dbg) -depth -empty -exec rmdir {} \; # don't install baseline_images, needed for tests only, but huge rm -rf $(CURDIR)/debian/$(p3)/usr/lib/python3/*-packages/matplotlib/tests/baseline_images/ rm -rf $(CURDIR)/debian/$(p3)/usr/lib/python3/dist-packages/matplotlib/mpl-data/ rm -rf $(CURDIR)/debian/$(p3)/usr/lib/python3/dist-packages/matplotlib/backends/Matplotlib.nib/ rm -rf $(CURDIR)/debian/$(p3dbg)/usr/lib/python3/dist-packages/matplotlib/mpl-data/ rm -rf $(CURDIR)/debian/$(p3dbg)/usr/lib/python3/dist-packages/matplotlib/backends/Matplotlib.nib/ touch $@ install-indep: build-indep dh_testdir -i dh_testroot -i dh_prep dh_install -p $(pdata) rm -fr $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/fonts/ttf/Vera*.ttf rm -fr $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/fonts/ttf/*.TXT rm -fr $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/fonts/ttf/local.conf rm -fr $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/fonts/pdfcorefonts/readme.txt chmod 644 $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/images/*.svg # link to fonts in ttf-lyx for font in cmex10.ttf cmmi10.ttf cmr10.ttf cmsy10.ttf ; \ do \ ln -sf /usr/share/fonts/truetype/lyx/$$font $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/fonts/ttf/$$font; \ done # binary binary-indep: build-indep install-indep dh_testdir -i dh_testroot -i dh_installchangelogs -i CHANGELOG dh_installdocs -p$(pd) -i doc/build/html/ doc/build/latex/Matplotlib.pdf # remove pyc file from doc dh_installexamples -p$(pd) -i examples/* dh_compress -i -Xexamples -Xexamples/data -Xpdf -X.js -Xobjects.inv dh_link -i dh_sphinxdoc find $(CURDIR)/debian/$(pd)/ -type f -name '*.pyc' | xargs --no-run-if-empty rm dh_lintian -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary-arch: build-arch install-arch dh_testdir -a dh_testroot -a dh_installchangelogs -a CHANGELOG dh_installdocs -p$(p) -a README.rst TODO # make python scripts starting with '#!' executable for i in `find debian -mindepth 2 -type f ! -perm 755`; do \ if head -1 $$i | grep -q '^#!'; then \ chmod 755 $$i; \ echo "made executable: $$i"; \ fi; \ done dh_pysupport -a dh_python3 -a dh_link -a dh_lintian -a dh_strip -a -p$(p) --dbg-package=$(pdbg) dh_strip -a -p$(p3) --dbg-package=$(p3dbg) # fix python-debug-in-wrong-location lintian warning cd debian/*-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/patches/0000755000000000000000000000000013401523063010612 5ustar debian/patches/10_build_fix.patch0000644000000000000000000000315211640171651014106 0ustar Description: Fixes path for build on Debian Forwarded: no Author: Sandro Tosi Last-Update: 2010-02-06 Index: matplotlib-1.1.0~rc1/setupext.py =================================================================== --- matplotlib-1.1.0~rc1.orig/setupext.py 2011-09-24 17:08:27.000000000 +0200 +++ matplotlib-1.1.0~rc1/setupext.py 2011-09-26 23:37:43.195196916 +0200 @@ -50,13 +50,13 @@ basedir = { 'win32' : ['win32_static',], - 'linux2-alpha' : ['/usr/local', '/usr'], - 'linux2-hppa' : ['/usr/local', '/usr'], - 'linux2-mips' : ['/usr/local', '/usr'], - 'linux2-sparc' : ['/usr/local', '/usr'], - 'linux2' : ['/usr/local', '/usr'], - 'linux3' : ['/usr/local', '/usr'], - 'linux' : ['/usr/local', '/usr',], + 'linux2-alpha' : ['/usr'], + 'linux2-hppa' : ['/usr'], + 'linux2-mips' : ['/usr'], + 'linux2-sparc' : ['/usr'], + 'linux2' : ['/usr'], + 'linux3' : ['/usr'], + 'linux' : ['/usr',], 'cygwin' : ['/usr/local', '/usr',], '_darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local', '/usr', '/sw'], @@ -71,10 +71,10 @@ 'freebsd5' : ['/usr/local', '/usr'], 'freebsd6' : ['/usr/local', '/usr'], 'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',], - 'gnukfreebsd5' : ['/usr/local', '/usr'], - 'gnukfreebsd6' : ['/usr/local', '/usr'], - 'gnukfreebsd7' : ['/usr/local', '/usr'], - 'gnukfreebsd8' : ['/usr/local', '/usr'], + 'gnukfreebsd5' : ['/usr'], + 'gnukfreebsd6' : ['/usr'], + 'gnukfreebsd7' : ['/usr'], + 'gnukfreebsd8' : ['/usr'], 'gnu0' : ['/usr'], 'aix5' : ['/usr/local'], } debian/patches/fix_infinite_recursion.diff0000644000000000000000000000166212256324755016233 0ustar Description: fix infinite recursion in units with ndarray subclasses Origin: upstream, https://github.com/matplotlib/matplotlib/commit/21fd7c03ba1444 Last-Update: 2013-12-24 --- a/lib/matplotlib/units.py +++ b/lib/matplotlib/units.py @@ -145,7 +145,13 @@ return converter except AttributeError: # not a masked_array - converter = self.get_converter(xravel[0]) + # Make sure we don't recurse forever -- it's possible for + # ndarray subclasses to continue to return subclasses and + # not ever return a non-subclass for a single element. + next_item = xravel[0] + if (not isinstance(next_item, np.ndarray) or + next_item.shape != x.shape): + converter = self.get_converter(next_item) return converter if converter is None and iterable(x): debian/patches/issue2705.diff0000644000000000000000000002610612306051777013132 0ustar diff --git a/src/_backend_agg.cpp b/src/_backend_agg.cpp index c65af52..edbd3f2 100644 --- a/src/_backend_agg.cpp +++ b/src/_backend_agg.cpp @@ -2125,13 +2125,14 @@ RendererAgg::write_rgba(const Py::Tuple& args) args.verify_length(1); FILE *fp = NULL; + mpl_off_t offset; Py::Object py_fileobj = Py::Object(args[0]); PyObject* py_file = NULL; bool close_file = false; if (py_fileobj.isString()) { - if ((py_file = npy_PyFile_OpenFile(py_fileobj.ptr(), (char *)"wb")) == NULL) { + if ((py_file = mpl_PyFile_OpenFile(py_fileobj.ptr(), (char *)"wb")) == NULL) { throw Py::Exception(); } } @@ -2140,28 +2141,28 @@ RendererAgg::write_rgba(const Py::Tuple& args) py_file = py_fileobj.ptr(); } - if ((fp = npy_PyFile_Dup(py_file, (char *)"wb"))) + if ((fp = mpl_PyFile_Dup(py_file, (char *)"wb", &offset))) { if (fwrite(pixBuffer, 1, NUMBYTES, fp) != NUMBYTES) { - if (npy_PyFile_DupClose(py_file, fp)) { + if (mpl_PyFile_DupClose(py_file, fp, offset)) { throw Py::RuntimeError("Error closing dupe file handle"); } if (close_file) { - npy_PyFile_CloseFile(py_file); + mpl_PyFile_CloseFile(py_file); Py_DECREF(py_file); } throw Py::RuntimeError("Error writing to file"); } - if (npy_PyFile_DupClose(py_file, fp)) { + if (mpl_PyFile_DupClose(py_file, fp, offset)) { throw Py::RuntimeError("Error closing dupe file handle"); } if (close_file) { - npy_PyFile_CloseFile(py_file); + mpl_PyFile_CloseFile(py_file); Py_DECREF(py_file); } } diff --git a/src/_png.cpp b/src/_png.cpp index 840649f..1679448 100644 --- a/src/_png.cpp +++ b/src/_png.cpp @@ -105,6 +105,7 @@ Py::Object _png_module::write_png(const Py::Tuple& args) args.verify_length(4, 5); FILE *fp = NULL; + mpl_off_t offset; bool close_file = false; bool close_dup_file = false; Py::Object buffer_obj = Py::Object(args[0]); @@ -134,7 +135,7 @@ Py::Object _png_module::write_png(const Py::Tuple& args) PyObject* py_file = NULL; if (py_fileobj.isString()) { - if ((py_file = npy_PyFile_OpenFile(py_fileobj.ptr(), (char *)"wb")) == NULL) { + if ((py_file = mpl_PyFile_OpenFile(py_fileobj.ptr(), (char *)"wb")) == NULL) { throw Py::Exception(); } close_file = true; @@ -144,7 +145,7 @@ Py::Object _png_module::write_png(const Py::Tuple& args) py_file = py_fileobj.ptr(); } - if ((fp = npy_PyFile_Dup(py_file, (char *)"wb"))) + if ((fp = mpl_PyFile_Dup(py_file, (char *)"wb", &offset))) { close_dup_file = true; } @@ -240,14 +241,14 @@ Py::Object _png_module::write_png(const Py::Tuple& args) if (close_dup_file) { - if (npy_PyFile_DupClose(py_file, fp)) { + if (mpl_PyFile_DupClose(py_file, fp, offset)) { throw Py::RuntimeError("Error closing dupe file handle"); } } if (close_file) { - npy_PyFile_CloseFile(py_file); + mpl_PyFile_CloseFile(py_file); Py_DECREF(py_file); } /* Changed calls to png_destroy_write_struct to follow @@ -261,14 +262,14 @@ Py::Object _png_module::write_png(const Py::Tuple& args) delete [] row_pointers; if (close_dup_file) { - if (npy_PyFile_DupClose(py_file, fp)) { + if (mpl_PyFile_DupClose(py_file, fp, offset)) { throw Py::RuntimeError("Error closing dupe file handle"); } } if (close_file) { - npy_PyFile_CloseFile(py_file); + mpl_PyFile_CloseFile(py_file); Py_DECREF(py_file); } @@ -312,13 +313,14 @@ _png_module::_read_png(const Py::Object& py_fileobj, const bool float_result, { png_byte header[8]; // 8 is the maximum size that can be checked FILE* fp = NULL; + mpl_off_t offset; bool close_file = false; bool close_dup_file = false; PyObject *py_file = NULL; if (py_fileobj.isString()) { - if ((py_file = npy_PyFile_OpenFile(py_fileobj.ptr(), (char *)"rb")) == NULL) { + if ((py_file = mpl_PyFile_OpenFile(py_fileobj.ptr(), (char *)"rb")) == NULL) { throw Py::Exception(); } close_file = true; @@ -326,7 +328,7 @@ _png_module::_read_png(const Py::Object& py_fileobj, const bool float_result, py_file = py_fileobj.ptr(); } - if ((fp = npy_PyFile_Dup(py_file, "rb"))) + if ((fp = mpl_PyFile_Dup(py_file, "rb", &offset))) { close_dup_file = true; } @@ -574,14 +576,14 @@ _png_module::_read_png(const Py::Object& py_fileobj, const bool float_result, #endif if (close_dup_file) { - if (npy_PyFile_DupClose(py_file, fp)) { + if (mpl_PyFile_DupClose(py_file, fp, offset)) { throw Py::RuntimeError("Error closing dupe file handle"); } } if (close_file) { - npy_PyFile_CloseFile(py_file); + mpl_PyFile_CloseFile(py_file); Py_DECREF(py_file); } diff --git a/src/file_compat.h b/src/file_compat.h index fbb545d..102c8b7 100644 --- a/src/file_compat.h +++ b/src/file_compat.h @@ -1,24 +1,67 @@ #ifndef __FILE_COMPAT_H__ #define __FILE_COMPAT_H__ -#include "numpy/npy_3kcompat.h" +#include +#include +#include "numpy/npy_common.h" +#include "numpy/ndarrayobject.h" +#include "mplutils.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined(_MSC_VER) && defined(_WIN64) && (_MSC_VER > 1400) + #include + #define npy_fseek _fseeki64 + #define npy_ftell _ftelli64 + #define npy_lseek _lseeki64 + #define mpl_off_t npy_int64 + + #if NPY_SIZEOF_INT == 8 + #define MPL_OFF_T_PYFMT "i" + #elif NPY_SIZEOF_LONG == 8 + #define MPL_OFF_T_PYFMT "l" + #elif NPY_SIZEOF_LONGLONG == 8 + #define MPL_OFF_T_PYFMT "L" + #else + #error Unsupported size for type off_t + #endif +#else + #define npy_fseek fseek + #define npy_ftell ftell + #define npy_lseek lseek + #define mpl_off_t off_t + + #if NPY_SIZEOF_INT == NPY_SIZEOF_SHORT + #define MPL_OFF_T_PYFMT "h" + #elif NPY_SIZEOF_INT == NPY_SIZEOF_INT + #define MPL_OFF_T_PYFMT "i" + #elif NPY_SIZEOF_INT == NPY_SIZEOF_LONG + #define MPL_OFF_T_PYFMT "l" + #elif NPY_SIZEOF_INT == NPY_SIZEOF_LONGLONG + #define MPL_OFF_T_PYFMT "L" + #else + #error Unsupported size for type off_t + #endif +#endif -#if NPY_API_VERSION < 0x4 /* corresponds to Numpy 1.5 */ /* * PyFile_* compatibility */ -#if defined(NPY_PY3K) +#if PY3K /* * Get a FILE* handle to the file represented by the Python object */ static NPY_INLINE FILE* -npy_PyFile_Dup(PyObject *file, char *mode) +mpl_PyFile_Dup(PyObject *file, char *mode, mpl_off_t *orig_pos) { int fd, fd2; PyObject *ret, *os; - Py_ssize_t pos; + mpl_off_t pos; FILE *handle; + /* Flush first to ensure things end up in the file in the correct order */ ret = PyObject_CallMethod(file, "flush", ""); if (ret == NULL) { @@ -29,6 +72,9 @@ npy_PyFile_Dup(PyObject *file, char *mode) if (fd == -1) { return NULL; } + + /* The handle needs to be dup'd because we have to call fclose + at the end */ os = PyImport_ImportModule("os"); if (os == NULL) { return NULL; @@ -40,6 +86,8 @@ npy_PyFile_Dup(PyObject *file, char *mode) } fd2 = PyNumber_AsSsize_t(ret, NULL); Py_DECREF(ret); + + /* Convert to FILE* handle */ #ifdef _WIN32 handle = _fdopen(fd2, mode); #else @@ -49,6 +97,15 @@ npy_PyFile_Dup(PyObject *file, char *mode) PyErr_SetString(PyExc_IOError, "Getting a FILE* from a Python file object failed"); } + + /* Record the original raw file handle position */ + *orig_pos = npy_ftell(handle); + if (*orig_pos == -1) { + PyErr_SetString(PyExc_IOError, "obtaining file position failed"); + return NULL; + } + + /* Seek raw handle to the Python-side position */ ret = PyObject_CallMethod(file, "tell", ""); if (ret == NULL) { fclose(handle); @@ -60,7 +117,10 @@ npy_PyFile_Dup(PyObject *file, char *mode) fclose(handle); return NULL; } - npy_fseek(handle, pos, SEEK_SET); + if (npy_fseek(handle, pos, SEEK_SET) == -1) { + PyErr_SetString(PyExc_IOError, "seeking file failed"); + return NULL; + } return handle; } @@ -68,14 +128,35 @@ npy_PyFile_Dup(PyObject *file, char *mode) * Close the dup-ed file handle, and seek the Python one to the current position */ static NPY_INLINE int -npy_PyFile_DupClose(PyObject *file, FILE* handle) +mpl_PyFile_DupClose(PyObject *file, FILE* handle, mpl_off_t orig_pos) { + int fd; PyObject *ret; - Py_ssize_t position; + mpl_off_t position; + position = npy_ftell(handle); + + /* Close the FILE* handle */ fclose(handle); - ret = PyObject_CallMethod(file, "seek", NPY_SSIZE_T_PYFMT "i", position, 0); + /* Restore original file handle position, in order to not confuse + Python-side data structures */ + fd = PyObject_AsFileDescriptor(file); + if (fd == -1) { + return -1; + } + if (npy_lseek(fd, orig_pos, SEEK_SET) == -1) { + PyErr_SetString(PyExc_IOError, "seeking file failed"); + return -1; + } + + if (position == -1) { + PyErr_SetString(PyExc_IOError, "obtaining file position failed"); + return -1; + } + + /* Seek Python-side handle to the FILE* handle position */ + ret = PyObject_CallMethod(file, "seek", MPL_OFF_T_PYFMT "i", position, 0); if (ret == NULL) { return -1; } @@ -84,7 +165,7 @@ npy_PyFile_DupClose(PyObject *file, FILE* handle) } static NPY_INLINE int -npy_PyFile_Check(PyObject *file) +mpl_PyFile_Check(PyObject *file) { int fd; fd = PyObject_AsFileDescriptor(file); @@ -97,13 +178,14 @@ npy_PyFile_Check(PyObject *file) #else -#define npy_PyFile_Dup(file, mode) PyFile_AsFile(file) -#define npy_PyFile_DupClose(file, handle) (0) +#define mpl_PyFile_Dup(file, mode, orig_pos_p) PyFile_AsFile(file) +#define mpl_PyFile_DupClose(file, handle, orig_pos) (0) +#define mpl_PyFile_Check PyFile_Check #endif static NPY_INLINE PyObject* -npy_PyFile_OpenFile(PyObject *filename, const char *mode) +mpl_PyFile_OpenFile(PyObject *filename, const char *mode) { PyObject *open; open = PyDict_GetItemString(PyEval_GetBuiltins(), "open"); @@ -113,12 +195,8 @@ npy_PyFile_OpenFile(PyObject *filename, const char *mode) return PyObject_CallFunction(open, "Os", filename, mode); } -#endif /* NPY_API_VERSION < 0x4 */ - -#if NPY_API_VERSION < 0x7 /* corresponds to Numpy 1.7 */ - static NPY_INLINE int -npy_PyFile_CloseFile(PyObject *file) +mpl_PyFile_CloseFile(PyObject *file) { PyObject *ret; @@ -130,6 +208,8 @@ npy_PyFile_CloseFile(PyObject *file) return 0; } -#endif /* NPY_API_VERSION < 0x7 */ +#ifdef __cplusplus +} +#endif #endif /* ifndef __FILE_COMPAT_H__ */ debian/patches/70_bts720549_try_StayPuft_for_xkcd.patch0000644000000000000000000000136012224117604020042 0ustar Description: Try to use also StayPuft (a free font) for xkcd Author: Sandro Tosi Origin: vendor Bug: http://bugs.debian.org/720549 Forwarded: not-needed Last-Update: 2013-10-06 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -289,7 +289,7 @@ def xkcd(scale=1, length=100, randomness from matplotlib import patheffects context = rc_context() try: - rcParams['font.family'] = ['Humor Sans', 'Comic Sans MS'] + rcParams['font.family'] = ['Humor Sans', 'Comic Sans MS', 'StayPuft'] rcParams['font.size'] = 14.0 rcParams['path.sketch'] = (scale, length, randomness) rcParams['path.effects'] = [ debian/patches/series0000644000000000000000000000046013401523063012027 0ustar #10_build_fix.patch 20_matplotlibrc_path_search_fix.patch 40_bts608939_draw_markers_description.patch 50_bts608942_spaces_in_param_args.patch 60_deal_with_no_writable_dirs.patch 70_bts720549_try_StayPuft_for_xkcd.patch multiarch-tktcl.patch fix_infinite_recursion.diff issue2705.diff CVE-2013-1424.patch debian/patches/60_deal_with_no_writable_dirs.patch0000644000000000000000000000715612222371513017520 0ustar Description: deal with the case where there are no writable directories. Author: Michael Droettboom Bug-Debian: http://bugs.debian.org/719384 Origin: https://github.com/mdboom/matplotlib/commit/1e8d592ed0439ac6fe8fc08d5efe522799acf4fe Reviewed-By: Anton Gladky Last-Update: 2013-09-29 --- matplotlib-1.3.0.orig/lib/matplotlib/font_manager.py +++ matplotlib-1.3.0/lib/matplotlib/font_manager.py @@ -1324,6 +1324,8 @@ if USE_FONTCONFIG and sys.platform != 'w return result else: + _fmcache = None + if not 'TRAVIS' in os.environ: cachedir = get_cachedir() if cachedir is not None: @@ -1331,8 +1333,6 @@ else: _fmcache = os.path.join(cachedir, 'fontList.py3k.cache') else: _fmcache = os.path.join(cachedir, 'fontList.cache') - else: - _fmcache = None fontManager = None --- matplotlib-1.3.0.orig/lib/matplotlib/__init__.py +++ matplotlib-1.3.0/lib/matplotlib/__init__.py @@ -518,7 +518,11 @@ def _get_xdg_config_dir(): base directory spec `_. """ - return os.environ.get('XDG_CONFIG_HOME', os.path.join(get_home(), '.config')) + home = get_home() + if home is None: + return None + else: + return os.environ.get('XDG_CONFIG_HOME', os.path.join(home, '.config')) def _get_xdg_cache_dir(): @@ -527,7 +531,11 @@ def _get_xdg_cache_dir(): base directory spec `_. """ - return os.environ.get('XDG_CACHE_HOME', os.path.join(get_home(), '.cache')) + home = get_home() + if home is None: + return None + else: + return os.environ.get('XDG_CACHE_HOME', os.path.join(home, '.cache')) def _get_config_or_cache_dir(xdg_base): @@ -543,22 +551,28 @@ def _get_config_or_cache_dir(xdg_base): return _create_tmp_config_dir() return configdir + p = None h = get_home() - p = os.path.join(h, '.matplotlib') - if (sys.platform.startswith('linux') and - not os.path.exists(p)): - p = os.path.join(xdg_base, 'matplotlib') - - if os.path.exists(p): - if not _is_writable_dir(p): - return _create_tmp_config_dir() - else: - try: - mkdirs(p) - except OSError: - return _create_tmp_config_dir() + if h is not None: + p = os.path.join(h, '.matplotlib') + if (sys.platform.startswith('linux') and + not os.path.exists(p) and + xdg_base is not None): + p = os.path.join(xdg_base, 'matplotlib') + + if p is not None: + if os.path.exists(p): + if _is_writable_dir(p): + return p + else: + try: + mkdirs(p) + except OSError: + pass + else: + return p - return p + return _create_tmp_config_dir() def _get_configdir(): @@ -716,9 +730,11 @@ def matplotlib_fname(): if configdir is not None: fname = os.path.join(configdir, 'matplotlibrc') if os.path.exists(fname): + home = get_home() if (sys.platform.startswith('linux') and + home is not None and fname == os.path.join( - get_home(), '.matplotlib', 'matplotlibrc')): + home, '.matplotlib', 'matplotlibrc')): warnings.warn( "Found matplotlib configuration in ~/.matplotlib/. " "To conform with the XDG base directory standard, " debian/patches/CVE-2013-1424.patch0000644000000000000000000000251513401523063013226 0ustar --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -1251,6 +1251,7 @@ default_test_modules = [ 'matplotlib.tests.test_lines', 'matplotlib.tests.test_mathtext', 'matplotlib.tests.test_mlab', + 'matplotlib.tests.test_mplutils', 'matplotlib.tests.test_patches', 'matplotlib.tests.test_path', 'matplotlib.tests.test_patheffects', --- /dev/null +++ b/lib/matplotlib/tests/test_mplutils.py @@ -0,0 +1,12 @@ +from __future__ import print_function +from nose.tools import assert_raises +from matplotlib import ft2font +from matplotlib.testing.decorators import knownfailureif +import sys + +def test_printf_buffer(): + """Tests Printf for buffer overrun.""" + # Use ft2font.FT2Font, which indirectly calls the Printf function in + # mplutils.cpp. + # Expect a RuntimeError, since the font is not found. + assert_raises(RuntimeError, ft2font.FT2Font, 'x' * 2048) --- a/src/mplutils.cpp +++ b/src/mplutils.cpp @@ -18,7 +18,10 @@ Printf::Printf(const char *fmt, ...) { va_list ap; va_start(ap, fmt); - vsprintf(buffer, fmt, ap); + vsnprintf(buffer, 1024, fmt, ap); + // Null-terminate the string. Non-standard C implementations (e.g., + // Microsoft Visual C++) do not do this automatically. + buffer[1023] = '\0'; va_end(ap); // look ma - I rememberd it this time } debian/patches/50_bts608942_spaces_in_param_args.patch0000644000000000000000000000413512164061220017644 0ustar Description: don't separate param and its argument with a space --- a/lib/mpl_toolkits/axes_grid1/axes_divider.py +++ b/lib/mpl_toolkits/axes_grid1/axes_divider.py @@ -201,12 +201,12 @@ class Divider(object): def locate(self, nx, ny, nx1=None, ny1=None, axes=None, renderer=None): """ - :param nx, nx1: Integers specifying the column-position of the + :param nx,nx1: Integers specifying the column-position of the cell. When nx1 is None, a single nx-th column is specified. Otherwise location of columns spanning between nx to nx1 (but excluding nx1-th column) is specified. - :param ny, ny1: same as nx and nx1, but for row positions. + :param ny,ny1: same as nx and nx1, but for row positions. """ @@ -253,12 +253,12 @@ class Divider(object): (:class:`mpl_toolkits.axes_grid.axes_divider.AxesLocator`) for specified cell. - :param nx, nx1: Integers specifying the column-position of the + :param nx,nx1: Integers specifying the column-position of the cell. When nx1 is None, a single nx-th column is specified. Otherwise location of columns spanning between nx to nx1 (but excluding nx1-th column) is specified. - :param ny, ny1: same as nx and nx1, but for row positions. + :param ny,ny1: same as nx and nx1, but for row positions. """ return AxesLocator(self, nx, ny, nx1, ny1) @@ -299,12 +299,12 @@ class AxesLocator(object): """ :param axes_divider: An instance of AxesDivider class. - :param nx, nx1: Integers specifying the column-position of the + :param nx,nx1: Integers specifying the column-position of the cell. When nx1 is None, a single nx-th column is specified. Otherwise location of columns spanning between nx to nx1 (but excluding nx1-th column) is is specified. - :param ny, ny1: same as nx and nx1, but for row positions. + :param ny,ny1: same as nx and nx1, but for row positions. """ self._axes_divider = axes_divider debian/patches/40_bts608939_draw_markers_description.patch0000644000000000000000000000102012164061220020563 0ustar Description: minor glitch in draw_markers() description Author: Jakub Wilk --- a/doc/api/api_changes.rst +++ b/doc/api/api_changes.rst @@ -919,7 +919,7 @@ New methods: * :meth:`draw_markers(self, gc, marker_path, marker_trans, path, trans, rgbFace) - ` * :meth:`draw_path_collection(self, master_transform, cliprect, clippath, clippath_trans, paths, all_transforms, offsets, debian/patches/20_matplotlibrc_path_search_fix.patch0000644000000000000000000000213512164061220020035 0ustar Description: Fixes the path to search for matplotlibrc file Forwarded: not-needed Author: Sandro Tosi --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -607,10 +607,12 @@ def _get_data_path(): raise RuntimeError('Path in environment MATPLOTLIBDATA not a directory') return path - path = os.sep.join([os.path.dirname(__file__), 'mpl-data']) + path = '/usr/share/matplotlib/mpl-data' if os.path.isdir(path): return path + raise RuntimeError('Could not find the matplotlib data files') + # setuptools' namespace_packages may highjack this init file # so need to try something known to be in matplotlib, not basemap import matplotlib.afm @@ -727,7 +729,7 @@ def matplotlib_fname(): _get_xdg_config_dir()) return fname - path = get_data_path() # guaranteed to exist or raise + path = '/etc' # guaranteed to exist or raise fname = os.path.join(path, 'matplotlibrc') if not os.path.exists(fname): warnings.warn('Could not find matplotlibrc; using defaults') debian/patches/multiarch-tktcl.patch0000644000000000000000000000243412240733306014750 0ustar Description: adapt setup to find multiarched tk/tcl Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/matplotlib/+bug/752647 Forwarded: no, only if we upstream multiarchification Author: Julian Taylor Index: matplotlib-1.3.1/setupext.py =================================================================== --- matplotlib-1.3.1.orig/setupext.py 2013-10-29 07:19:22.483793802 +0100 +++ matplotlib-1.3.1/setupext.py 2013-10-29 07:20:01.504272247 +0100 @@ -1235,13 +1235,16 @@ except ImportError: return None + from distutils import sysconfig tcl_poss = [tcl_lib_dir, os.path.normpath(os.path.join(tcl_lib_dir, '..')), "/usr/lib/tcl" + str(Tkinter.TclVersion), + "/usr/lib/%s/tcl%s" % (sysconfig.get_config_var('MULTIARCH'), Tkinter.TclVersion), "/usr/lib"] tk_poss = [tk_lib_dir, os.path.normpath(os.path.join(tk_lib_dir, '..')), "/usr/lib/tk" + str(Tkinter.TkVersion), + "/usr/lib/%s/tk%s" % (sysconfig.get_config_var('MULTIARCH'), Tkinter.TkVersion), "/usr/lib"] for ptcl, ptk in zip(tcl_poss, tk_poss): tcl_config = os.path.join(ptcl, "tclConfig.sh") debian/control0000644000000000000000000001644513401524703010602 0ustar Source: matplotlib Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Python Modules Team Uploaders: Sandro Tosi Build-Depends: debhelper (>= 7), dvipng, ghostscript, graphviz, inkscape, libfreetype6-dev, libgtk2.0-dev, libpng-dev, python-all-dbg (>= 2.4.4-6), python-all-dev (>= 2.3.5-7), python3-all-dbg, python3-all-dev, python-dateutil, python3-dateutil, python-cairo, python3-cairo, python-gi, python3-gi, python-gtk2-dev, python-imaging, python-nose, python3-nose, python-numpy (>= 1:1.5.1-4), python-numpy-dbg (>= 1:1.5.1-4), python-numpydoc, python3-numpy, python3-numpy-dbg, python-pkg-resources, python3-pkg-resources, python-pyparsing, python3-pyparsing, python-qt4, python3-pyqt4, python-setuptools, python3-setuptools, python3-six, python-sphinx (>= 1.0.7+dfsg), python-support (>= 1.0.0), python-tk (>= 2.5.2-1.1), python-tk-dbg (>= 2.5.2-1.1), python3-tk, python3-tk-dbg, python-tornado, python3-tornado, python-tz, python3-tz, python-wxgtk2.8, python-xlwt, tcl8.6-dev, texlive-fonts-recommended, texlive-latex-extra, texlive-latex-recommended, tk8.6-dev, xauth, xvfb, zlib1g-dev XS-Python-Version: all X-Python3-Version: >= 3.2 Standards-Version: 3.9.4 Homepage: http://matplotlib.org/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/matplotlib/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/matplotlib/trunk/ XS-Testsuite: autopkgtest Package: python-matplotlib Architecture: any Depends: python-dateutil, python-matplotlib-data (>= ${source:Version}), python-pyparsing, python-tz, ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Recommends: python-glade2, python-imaging, python-tk (>= 2.5.2-1.1) Enhances: ipython Suggests: dvipng, gir1.2-gtk-3.0, ghostscript, inkscape, ipython (>= 0.6.3), librsvg2-common, python-cairo, python-configobj, python-excelerator, python-gobject, python-gtk2, python-matplotlib-doc, python-nose, python-qt4, python-scipy, python-sip, python-tornado, python-traits (>= 2.0), python-wxgtk2.8, texlive-extra-utils, texlive-latex-extra, ttf-staypuft Description: Python based plotting system in a style similar to Matlab Matplotlib is a pure Python plotting library designed to bring publication quality plotting to Python with a syntax familiar to Matlab users. All of the plotting commands in the pylab interface can be accessed either via a functional interface familiar to Matlab users or an object oriented interface familiar to Python users. Package: python3-matplotlib Architecture: any Depends: python3-dateutil, python-matplotlib-data (>= ${source:Version}), python3-pyparsing, python3-six, python3-tz, ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} Recommends: python3-imaging, python3-tk Enhances: ipython3 Suggests: dvipng, gir1.2-gtk-3.0, ghostscript, inkscape, ipython3, librsvg2-common, python-matplotlib-doc, python3-cairo, python3-gi, python3-gobject, python3-nose, python3-pyqt4, python3-scipy, python3-sip, python3-tornado, texlive-extra-utils, texlive-latex-extra, ttf-staypuft Description: Python based plotting system in a style similar to Matlab (Python 3) Matplotlib is a pure Python plotting library designed to bring publication quality plotting to Python with a syntax familiar to Matlab users. All of the plotting commands in the pylab interface can be accessed either via a functional interface familiar to Matlab users or an object oriented interface familiar to Python users. . This package contains the Python 3 version of matplotlib. Package: python-matplotlib-data Architecture: all Depends: fonts-lyx, ${misc:Depends} Description: Python based plotting system (data package) Matplotlib is a pure Python plotting library designed to bring publication quality plotting to Python with a syntax familiar to Matlab users. All of the plotting commands in the pylab interface can be accessed either via a functional interface familiar to Matlab users or an object oriented interface familiar to Python users. . This package contains architecture independent data for python-matplotlib. Package: python-matplotlib-doc Architecture: all Section: doc Depends: libjs-jquery, ${misc:Depends} Description: Python based plotting system (documentation package) Matplotlib is a pure Python plotting library designed to bring publication quality plotting to Python with a syntax familiar to Matlab users. All of the plotting commands in the pylab interface can be accessed either via a functional interface familiar to Matlab users or an object oriented interface familiar to Python users. . This package contains documentation for python-matplotlib. Package: python-matplotlib-dbg Architecture: any Section: debug Priority: extra Depends: python-all-dbg, python-matplotlib (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} Description: Python based plotting system (debug extension) Matplotlib is a pure Python plotting library designed to bring publication quality plotting to Python with a syntax familiar to Matlab users. All of the plotting commands in the pylab interface can be accessed either via a functional interface familiar to Matlab users or an object oriented interface familiar to Python users. . This package contains the debug extension for python-matplotlib. Package: python3-matplotlib-dbg Architecture: any Section: debug Priority: extra Depends: python3-all-dbg, python3-matplotlib (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} Description: Python based plotting system (debug extension, Python 3) Matplotlib is a pure Python plotting library designed to bring publication quality plotting to Python with a syntax familiar to Matlab users. All of the plotting commands in the pylab interface can be accessed either via a functional interface familiar to Matlab users or an object oriented interface familiar to Python users. . This package contains the debug extension for python3-matplotlib. debian/source/0000755000000000000000000000000012226457146010477 5ustar debian/source/format0000644000000000000000000000001411316142531011671 0ustar 3.0 (quilt) debian/python-matplotlib-doc.lintian-overrides0000644000000000000000000000011211207436360016773 0ustar copyright-should-refer-to-common-license-file-for-lgpl extra-license-file debian/python-matplotlib-dbg.lintian-overrides0000644000000000000000000000006711207436360016773 0ustar copyright-should-refer-to-common-license-file-for-lgpl debian/copyright0000644000000000000000000005530512173020711011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: matplotlib Upstream-Contact: John D. Hunter, Michael Droettboom Source: http://matplotlib.org Files: * Copyright: Copyright (c) 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the matplotlib development team; 2012 - 2013 The matplotlib development team License: Matplotlib only uses BSD compatible code, and its license is based on the PSF license. See the Open Source Initiative licenses page for details on individual licenses. Non-BSD compatible licenses (eg LGPL) are acceptable in matplotlib Toolkits. For a discussion of the motivations behind the licencing choice, see Licenses. License agreement for matplotlib. . 1. This LICENSE AGREEMENT is between John D. Hunter ("JDH"), and the Individual or Organization ("Licensee") accessing and otherwise using matplotlib software in source or binary form and its associated documentation. . 2. Subject to the terms and conditions of this License Agreement, JDH hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use matplotlib alone or in any derivative version, provided, however, that JDH’s License Agreement and JDH’s notice of copyright, i.e., "Copyright (c) 2002-2008 John D. Hunter; All Rights Reserved" are retained in matplotlib alone or in any derivative version prepared by Licensee. . 3. In the event Licensee prepares a derivative work that is based on or incorporates matplotlib or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to matplotlib. . 4. JDH is making matplotlib available to Licensee on an ΄AS IS‘ basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. . 5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING MATPLOTLIB, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. . 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. . 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between JDH and Licensee. This License Agreement does not grant permission to use JDH trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. . 8. By copying, installing or otherwise using matplotlib, Licensee agrees to be bound by the terms and conditions of this License Agreement. Files: debian/* Copyright: Copyright (C) 2008-2013 Sandro Tosi License: same as upstream Files: lib/matplotlib/fontconfig_pattern.py Author: Michael Droettboom Files: lib/matplotlib/backends/backend_wxagg.py Copyright: Copyright (C) 2003-5 Jeremy O'Donoghue, John Hunter, Illinois Institute of Technology Files: lib/matplotlib/backends/backend_wx.py Copyright: Copyright (C) Jeremy O'Donoghue & John Hunter, 2003-4 License: This work is licensed under a PSF compatible license. Files: lib/matplotlib/pyparsing_py2.py Copyright: Copyright (c) 2003-2010 Paul T. McGuire License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . 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 THE SOFTWARE. Files: lib/matplotlib/pyparsing_py3.py Copyright: Copyright (c) 2003-2010 Paul T. McGuire License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . 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 THE SOFTWARE. Files: lib/matplotlib/sankey.py Author: Kevin L. Davies License: BSD Files: lib/matplotlib/table.py Author: John Gill Copyright: 2004 John Gill and John Hunter Files: lib/matplotlib/delaunay/VoronoiDiagramGenerator.{cpp, h} Author: The author of this software is Steven Fortune. Copyright: Copyright (c) 1994 by AT&T Bell Laboratories. License: Permission to use, copy, modify, and distribute this software for any purpose without fee is hereby granted, provided that this entire notice is included in all copies of any software which is or includes a copy or modification of this software and in all copies of the supporting documentation for such software. THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR AT&T MAKE ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. Comment: This code was originally written by Stephan Fortune in C code. I, Shane O'Sullivan, have since modified it, encapsulating it in a C++ class and, fixing memory leaks and adding accessors to the Voronoi Edges. Permission to use, copy, modify, and distribute this software for any purpose without fee is hereby granted, provided that this entire notice is included in all copies of any software which is or includes a copy or modification of this software and in all copies of the supporting documentation for such software. THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR AT&T MAKE ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. Files: lib/matplotlib/delaunay/./__init__.py Author: Robert Kern Copyright: Copyright 2005 Robert Kern. License: BSD-style license. See LICENSE.txt in the scipy source directory. Files: lib/matplotlib/testing/image_util.py Copyright: Copyright (c) 1997-2009 by Secret Labs AB Copyright (c) 1995-2009 by Fredrik Lundh License: Permission to use, copy, modify, and distribute this software and its associated documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appears in all copies, and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Secret Labs AB or the author not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. . SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Files: lib/matplotlib/mpl-data/fonts/ttf/(non STIX)*.ttf Copyright: Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc. License: Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: . The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces. . The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera". . This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names. . The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. . THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. . Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org. Files: lib/matplotlib/mpl-data/fonts/ttf/STIX*.ttf License: 1. Permission is hereby granted, free of charge, to any person obtaining a copy of the STIX Fonts-TM set accompanying this license (collectively, the "Fonts") and the associated documentation files (collectively with the Fonts, the "Font Software"), to reproduce and distribute the Font Software, including the rights to use, copy, merge and publish copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so same, subject to the following terms and conditions (the "License"). . 2. The following copyright and trademark notice and these Terms and Conditions shall be included in all copies of one or more of the Font typefaces and any derivative work created as permitted under this License: . Copyright (c) 2001-2005 by the STI Pub Companies, consisting of the American Institute of Physics, the American Chemical Society, the American Mathematical Society, the American Physical Society, Elsevier, Inc., and The Institute of Electrical and Electronic Engineers, Inc. Portions copyright (c) 1998-2003 by MicroPress, Inc. Portions copyright (c) 1990 by Elsevier, Inc. All rights reserved. STIX Fonts-TM is a trademark of The Institute of Electrical and Electronics Engineers, Inc. . 3. You may (a) convert the Fonts from one format to another (e.g., from TrueType to PostScript), in which case the normal and reasonable distortion that occurs during such conversion shall be permitted and (b) embed or include a subset of the Fonts in a document for the purposes of allowing users to read text in the document that utilizes the Fonts. In each case, you may use the STIX Fonts-TM mark to designate the resulting Fonts or subset of the Fonts. . 4. You may also (a) add glyphs or characters to the Fonts, or modify the shape of existing glyphs, so long as the base set of glyphs is not removed and (b) delete glyphs or characters from the Fonts, provided that the resulting font set is distributed with the following disclaimer: "This [name] font does not include all the Unicode points covered in the STIX Fonts-TM set but may include others." In each case, the name used to denote the resulting font set shall not include the term "STIX" or any similar term. . 5. You may charge a fee in connection with the distribution of the Font Software, provided that no copy of one or more of the individual Font typefaces that form the STIX Fonts-TM set may be sold by itself. . 6. THE FONT SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK OR OTHER RIGHT. IN NO EVENT SHALL MICROPRESS OR ANY OF THE STI PUB COMPANIES BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING, BUT NOT LIMITED TO, ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM OR OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. . 7. Except as contained in the notice set forth in Section 2, the names MicroPress Inc. and STI Pub Companies, as well as the names of the companies/organizations that compose the STI Pub Companies, shall not be used in advertising or otherwise to promote the sale, use or other dealings in the Font Software without the prior written consent of the respective company or organization. . 8. This License shall become null and void in the event of any material breach of the Terms and Conditions herein by licensee. . 9. A substantial portion of the STIX Fonts set was developed by MicroPress Inc. for the STI Pub Companies. To obtain additional mathematical fonts, please contact MicroPress, Inc., 68-30 Harrow Street, Forest Hills, NY 11375, USA - Phone: (718) 575-1816. Files: lib/matplotlib/mpl-data/fonts/pdfcorefonts/* Copyright: Copyright (c) 1985, 1987, 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved. Files: lib/matplotlib/mpl-data/fonts/afm/pcrro8a.afm Copyright: Copyright (c) 1985, 1987, 1989, 1990, 1991, 1992 Adobe Systems Incorporated. All Rights Reserved. Files: lib/six.py Author: Benjamin Peterson Files: src/nxutils.c Copyright: Copyright (c) 1970-2003, Wm. Randolph Franklin License: pnpoly license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers. 2. Redistributions in binary form must reproduce the above copyright notice in the documentation and/or other materials provided with the distribution. 3. The name of W. Randolph Franklin may not be used to endorse or promote products derived from this Software without specific prior written permission. . 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 THE SOFTWARE. FileS: src/_subprocess.c Copyright: Copyright (c) 2004 by Fredrik Lundh Copyright (c) 2004 by Secret Labs AB, http://www.pythonware.com Copyright (c) 2004 by Peter Astrand License: Permission to use, copy, modify, and distribute this software and its associated documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appears in all copies, and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the authors not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. . THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. . Licensed to PSF under a Contributor Agreement. See http://www.python.org/2.4/license for licensing details. Files: src/_wxagg.cpp Author: Ken McIvor Copyright: Copyright 2005 Illinois Institute of Technology Comment: Derived from `_gtkagg.cpp', Copyright 2004-2005 John Hunter Files: lib/dateutil_py2/* Copyright: Copyright (c) 2003-2010 Gustavo Niemeyer License: PSF License Files: lib/dateutil_py3/* Copyright: Copyright (c) 2003-2011 Gustavo Niemeyer Copyright (c) 2012 - Tomi Pieviläinen License: Simplified BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: ttconv/* Copyright: Copyright 1995, Trinity College Computing Center. Written by David Chappell. License: Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. This software and documentation are provided "as is" without express or implied warranty. Files: CXX/* Copyright: Copyright (c) 1998 - 2007, The Regents of the University of California Produced at the Lawrence Livermore National Laboratory All rights reserved. License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistributions of source code must retain the above copyright notice, this list of conditions and the disclaimer below. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the disclaimer (as noted below) in the documentation and/or materials provided with the distribution. - Neither the name of the UC/LLNL nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OF THE UNIVERSITY OF CALIFORNIA, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: agg24/* Copyright: Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) License: Permission to copy, use, modify, sell and distribute this software is granted provided this copyright notice appears in all copies. This software is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose. debian/TODO.debian0000644000000000000000000000020312162103423011064 0ustar - look at http://matplotlib.sourceforge.net/faq/installing_faq.html#id1 for a nice table of backend supported, for README.debian debian/setup.cfg0000644000000000000000000000063011105352430011000 0ustar [rc_options] # User-configurable options # # Default backend, one of: Agg, Cairo, CocoaAgg, GTK, GTKAgg, # GTKCairo, FltkAgg, Pdf, Ps, QtAgg, Qt4Agg, SVG, TkAgg, WX, WXAgg. # # The Agg, Ps, Pdf and SVG backends do not require external # dependencies. Do not choose GTK, GTKAgg, GTKCairo, TkAgg or WXAgg if # you have disabled the relevent extension modules. Agg will be used # by default. # backend = TkAgg debian/watch0000644000000000000000000000013512135033767010225 0ustar version=3 opts="uversionmangle=s/rc/~rc/" \ http://sf.net/matplotlib/matplotlib-(.+)\.tar.gz debian/python-matplotlib.preinst0000644000000000000000000000035011207515754014267 0ustar #!/bin/sh # TODO: remove this file after releasing Squeeze set -e if [ "$1" = upgrade ] then if dpkg --compare-versions "$2" lt 0.98.5.3-1 ; then pycentral pkgremove python-matplotlib fi fi #DEBHELPER# debian/README.debian0000644000000000000000000000307512223747224011301 0ustar MatplotLib Data Directory ------------------------- For various functions to work, for example help() -> modules you need to set the environmental variable: $ export MATPLOTLIBDATA=/usr/share/matplotlib/ Change the backend ------------------ From matplotlib version 0.98.3-6 the default backend in Debian is 'TkAgg', the simplest backend available in most context. If you want to change it, you have two ways: system wide, changing the file /etc/matplotlibrc or on a user basis, changing the file $HOME/.config/matplotlib/matplotlibrc to add or modify a line like this: backend : # Default backend, one of: GTK GTKAgg GTKCairo GTK3Agg GTK3Cairo CocoaAgg # MacOSX QtAgg Qt4Agg TkAgg WX WXAgg Agg Cairo GDK PS PDF SVG Template # # The Agg, Ps, Pdf and SVG backends do not require external # dependencies. Do not choose GTK, GTKAgg, GTKCairo, TkAgg or WXAgg if # you have disabled the relevant extension modules. so usually, you can have a backend if you have the Python bindings installed: GTK+ -> python-gtk2 Tk -> python-tk QT -> python-qt4, python-sip WX -> python-wxgtk2.6 or python-wxgtk2.8 GTK3 -> gir1.2-gtk-3.0, python-gi, python-gobject Use MatplotLib with pkg_resources.require() ------------------------------------------- If you want to use MatplotLib like this: python -c 'import pkg_resources; pkg_resources.require("matplotlib")' (also in the Python3 flavour), you'll have to instal python-nose and python-tornado (as specified in the Suggest field) or python3-nose and python3-tornado if you're aiming at py3k. debian/python-matplotlib.lintian-overrides0000644000000000000000000000013211332377155016237 0ustar arch-dep-package-has-big-usr-share copyright-should-refer-to-common-license-file-for-lgpl debian/NEWS0000644000000000000000000000147711332271164007676 0ustar matplotlib (0.98.5.2-1) experimental; urgency=low With this release, we are setting the default backend for matplotlib to 'TkAgg', the lower level of backend suggested by upstream. You can find documentation about changing the backend in the file: /usr/share/doc/python-matplotlib/README.Debian Another change introduced is the removal of 'dvipng' from automatic installation. The net result is a reduction on the number (and then size) of packages to download and install to have matplotlib working, since 'dvipng' takes in 'texlive' (the LaTeX distribution); matplotlib has already a way to render mathmatical symbols, but if you want to use the tex render, then run apt-get install dvipng to reproduce the previous behaviour. -- Sandro Tosi Wed, 14 Jan 2009 22:10:26 +0100 debian/tests/0000755000000000000000000000000012263375165010342 5ustar debian/tests/control0000644000000000000000000000117512263376514011750 0ustar Tests: tkagg Depends: xauth, xvfb, python-matplotlib, python-matplotlib-dbg, python-tk, python-tk-dbg, python-numpy, python-numpy-dbg, python3-matplotlib, python3-matplotlib-dbg, python3-tk, python3-tk-dbg, python3-numpy, python3-numpy-dbg Tests: qt4agg Depends: xauth, xvfb, python-matplotlib, python-matplotlib-dbg, python-qt4, python-qt4-dbg, python-numpy, python-numpy-dbg, python3-matplotlib, python3-matplotlib-dbg, python3-pyqt4, python3-pyqt4-dbg, python3-numpy, python3-numpy-dbg Tests: wxagg Depends: xauth, xvfb, python-matplotlib, python-matplotlib-dbg, python-wxgtk2.8, python-wxgtk2.8-dbg, python-numpy, python-numpy-dbg debian/tests/tkagg0000755000000000000000000000021112263375660011357 0ustar #!/bin/sh set -efu pys="$(pyversions -r 2>/dev/null) $(py3versions -r 2>/dev/null)" BACKEND="TkAgg" pys=$pys debian/tests/backend-base debian/tests/backend-base0000755000000000000000000000113112263400202012540 0ustar #!/bin/sh set -efu DEBUG=${DEBUG:-yes} export HOME=$ADTTMP cd $ADTTMP echo "=== $BACKEND ===" cat << EOF > test.py import matplotlib matplotlib.use("$BACKEND") import matplotlib.pyplot as plt plt.ion() plt.plot(range(5), range(5)) plt.show() plt.gca().figure.canvas.draw() plt.savefig('test.png') EOF for py in $pys; do echo "=== $py ===" xvfb-run -a -s "-screen 0 1280x1024x24 -noreset" $py test.py rm test.png if [ "$DEBUG" = "yes" ]; then echo "=== $py-dbg ===" xvfb-run -a -s "-screen 0 1280x1024x24 -noreset" $py-dbg test.py 2>&1 rm test.png fi done debian/tests/qt4agg0000755000000000000000000000021212263375657011460 0ustar #!/bin/sh set -efu pys="$(pyversions -r 2>/dev/null) $(py3versions -r 2>/dev/null)" BACKEND="Qt4Agg" pys=$pys debian/tests/backend-base debian/tests/wxagg0000755000000000000000000000022612263400677011402 0ustar #!/bin/sh set -efu pys="$(pyversions -r 2>/dev/null)" # todo check why debug fails BACKEND="WXAgg" pys=$pys DEBUG=no debian/tests/backend-base 2>&1 debian/python-matplotlib-data.dirs0000644000000000000000000000004610757667423014467 0ustar /etc/ /usr/share/matplotlib/mpl-data/