[Python-modules-commits] [python-mpld3] 04/07: don't use D3 or icons.js in source, create the latter during build
Wolfgang Borgert
debacle at moszumanska.debian.org
Tue Sep 30 23:37:21 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository python-mpld3.
commit a5697e58271cffdda58a8d50811bb18b0df60509
Author: W. Martin Borgert <debacle at debian.org>
Date: Wed Oct 1 01:26:43 2014 +0200
don't use D3 or icons.js in source, create the latter during build
---
debian/changelog | 2 +-
debian/control | 4 ++--
debian/mkicons | 13 +++++++++++++
debian/rules | 6 ++----
4 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index c7666f9..a806f2e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-python-mpld3 (0.3git+20140910-1) UNRELEASED; urgency=low
+python-mpld3 (0.3git+20140910dfsg-1) UNRELEASED; urgency=low
* Initial release (Closes: #761328)
diff --git a/debian/control b/debian/control
index e2a0fdc..be277d8 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Depends: ${misc:Depends}
, ${python:Depends}
, python-mplexporter
, libjs-d3
-Description: a D3 viewer for matplotlib
+Description: D3 viewer for matplotlib
mpld3 brings together Matplotlib, the popular Python-based graphing
library, and D3js, the popular Javascript library for creating
interactive data visualizations for the web. The result is a simple
@@ -31,7 +31,7 @@ Depends: ${misc:Depends}
, ${python3:Depends}
, python3-mplexporter
, libjs-d3
-Description: a D3 viewer for matplotlib
+Description: D3 viewer for matplotlib
mpld3 brings together Matplotlib, the popular Python-based graphing
library, and D3js, the popular Javascript library for creating
interactive data visualizations for the web. The result is a simple
diff --git a/debian/mkicons b/debian/mkicons
new file mode 100755
index 0000000..54f0af7
--- /dev/null
+++ b/debian/mkicons
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+
+import base64
+
+print 'mpld3.icons = {'
+for icon in [('reset', 'icons/home.png'),
+ ('move', 'icons/move.png'),
+ ('zoom', 'icons/zoom.png'),
+ ('brush', 'icons/brush.png')]:
+ with open(icon[1]) as _f:
+ print(' %s: "data:image/png;base64,%s",'
+ % (icon[0], base64.encodestring(_f.read()).replace('\n', '\\n')))
+print '};'
diff --git a/debian/rules b/debian/rules
index c653c6a..f0d0152 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,7 +13,5 @@ override_dh_auto_build:
$(MAKE) javascript
dh_auto_build
-override_dh_auto_install:
- dh_auto_install
- # remove D3, package depends on libjs-d3
- rm -f ./debian/python*-mpld3/usr/lib/python*/dist-packages/mpld3/js/d3.v3.min.js
+src/utils/icons.js:
+ ./debian/mkicons > $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-mpld3.git
More information about the Python-modules-commits
mailing list