debian/0000755000000000000000000000000012202402613007156 5ustar debian/patches/0000755000000000000000000000000012174553670010627 5ustar debian/patches/series0000644000000000000000000000010411766447770012050 0ustar pycode-browser.patch pybook.patch desktopfiles.patch snippets.patch debian/patches/pybook.patch0000644000000000000000000000224412174553670013155 0ustar --- a/pybooksrc/mapy.lyx +++ b/pybooksrc/mapy.lyx @@ -13260,7 +13260,7 @@ \backslash includegraphics[width=0.2 \backslash -textwidth]{pics/arcs.eps} +textwidth]{pics/arcs.png} \end_layout \begin_layout Standard @@ -13268,7 +13268,7 @@ \backslash includegraphics[width=0.2 \backslash -textwidth]{pics/sawtooth.eps} +textwidth]{pics/sawtooth.png} \end_layout \begin_layout Standard @@ -13322,7 +13322,7 @@ \backslash includegraphics[width=0.2 \backslash -textwidth]{pics/arcs.eps} +textwidth]{pics/arcs.png} \end_layout \begin_layout Standard @@ -13331,7 +13331,7 @@ \backslash includegraphics[width=0.2 \backslash -textwidth]{pics/sawtooth.eps} +textwidth]{pics/sawtooth.png} \end_layout \begin_layout Standard --- /dev/null +++ b/pybooksrc/Makefile @@ -0,0 +1,21 @@ +.SUFFIXES= .lyx .tex .pdf +DESTDIR= + +all: mapy.pdf + +clean: + rm -f *~ *.tex *.aux *.log *.pdf *.toc pics/*.eps + +install: + +%.tex: %.lyx + tmpHome=$$(mktemp -d); \ + HOME=$${tmpHome} lyx --export latex $<; \ + rm -rf $${tmpHome} + +%.pdf: %.tex + pdflatex $< + logfile=$$(echo $< | sed 's/tex/log/'); \ + while (grep Warning $${logfile}| grep -iq run); do \ + pdflatex $<; \ + done debian/patches/pycode-browser.patch0000644000000000000000000000212712000071556014600 0ustar --- a/pycode-browser.py +++ b/pycode-browser.py @@ -310,6 +310,6 @@ if extn == ".py": fb.execute(pathname) - fb = FileBrowser_pycode(abs_path()+'Code',[".py"]) + fb = FileBrowser_pycode(os.path.join(abs_path(),'Code'),[".py"]) fb.set_double_click_callback(my_callback) gtk.main() --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +DESTDIR= +SHAREDIR=/usr/share/pycode-browser +BINDIR=$(DESTDIR)/usr/bin +APPDIR=$(DESTDIR)/usr/share/applications + +all: + make -C pybooksrc all DESTDIR=$(DESTDIR) + +clean: + rm -f *~ + make -C pybooksrc clean + +install: + mkdir -p $(DESTDIR)$(SHAREDIR) + cp -a Code gui pycode-browser.py $(DESTDIR)$(SHAREDIR) + cp pybooksrc/mapy.pdf $(DESTDIR)$(SHAREDIR)/ + find $(DESTDIR)$(SHAREDIR) -type f -exec chmod 466 {} \; + mkdir $(BINDIR) + echo "#! /bin/sh" > $(BINDIR)/pycode-browser + echo "python $(SHAREDIR)/pycode-browser.py" >> $(BINDIR)/pycode-browser + echo "#! /bin/sh" > $(BINDIR)/pycode-browser-book + echo "evince $(SHAREDIR)/mapy.pdf" >> $(BINDIR)/pycode-browser-book + mkdir -p $(APPDIR) + install -m 644 *.desktop $(APPDIR) + + + debian/patches/desktopfiles.patch0000644000000000000000000000111311766447320014340 0ustar --- /dev/null +++ b/pycode-browser.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Version=1.0.0 +Type=Application + +Exec=pycode-browser +Icon=gnome-word.png + +Name=LearnByCoding + +Comment=Python Programs + +Categories=Electronics;Education;Science + +Terminal=false +NoDisplay=false --- /dev/null +++ b/pycode-browser-book.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Version=1.7.0 +Type=Application + +Exec=pycode-browser-book +Icon=gnome-word.png + +Name=PythonBook + +Comment=PythonBook + +Categories=Electronics;Education;Science + +Terminal=false +NoDisplay=false +StartupNotify=false debian/patches/snippets.patch0000644000000000000000000000133611766450200013507 0ustar --- a/Code/Maths/mathsin2.py +++ b/Code/Maths/mathsin2.py @@ -1,4 +1,4 @@ -Example math2.py +#Example math2.py import math as m # Give another madule name print m.sin(0.5) # Refer by the new name --- a/Code/Maths/plot2.py +++ b/Code/Maths/plot2.py @@ -1,4 +1,4 @@ -Example plot2.py +#Example plot2.py from pylab import * x = [1,2,5] --- a/Code/PythonBook/chap2/mathsin2.py +++ b/Code/PythonBook/chap2/mathsin2.py @@ -1,4 +1,4 @@ -Example math2.py +#Example math2.py import math as m # Give another madule name print m.sin(0.5) # Refer by the new name --- a/Code/PythonBook/chap4/plot2.py +++ b/Code/PythonBook/chap4/plot2.py @@ -1,4 +1,4 @@ -Example plot2.py +#Example plot2.py from pylab import * x = [1,2,5] debian/control0000644000000000000000000000136312202402432010563 0ustar Source: pycode-browser Section: education Priority: extra Maintainer: Georges Khaznadar Build-Depends: debhelper (>= 8.0.0), python-all, lyx, texlive-latex-base, texlive-generic-recommended, texlive-latex-recommended Standards-Version: 3.9.4 Homepage: https://github.com/vimaljoseph/pycode-browser Package: pycode-browser Architecture: all Depends: ${misc:Depends}, python-gtksourceview2, evince Description: environment to teach with Python code snippets pycode-browser is part of the project PHOENIX, i. e. Phyiscs with Home-made Equipment & Innovative Experiments, developed at Inter University Accelerator Centre, New Delhi. It allows students to browse Python source code easily, and to understand what this code means. debian/compat0000644000000000000000000000000211766421114010367 0ustar 8 debian/copyright0000644000000000000000000000476711766436542011155 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: pycode-browser Source: https://github.com/vimaljoseph/pycode-browser http://expeyes.in/sites/default/files/pybooksrc.zip Files: * Copyright: 2007 Vibeesh P 2010-2012 Vimal Joseph License: GPL-3+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". Files: Code/* Copyright: 2012 Ajith Kumar License: GPL-3+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". Files: pybooksrc/* Copyright: 2012 Ajith Kumar License: GFDL with no invariant section Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. . On Debian systems, the complete text of the GNU Free Documentation Licence version 1.3 can be found in "/usr/share/common-licenses/GFDL-1.3" Files: debian/* Copyright: 2012 Georges Khaznadar License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/pycode-browser.10000644000000000000000000000460111766446614012234 0ustar '\" t .\" Title: PYCODE-BROWSER .\" Author: Georges KHAZNADAR .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: 06/14/2012 .\" Manual: pycode-browser User Manual .\" Source: pycode-browser .\" Language: English .\" .TH "PYCODE\-BROWSER" "1" "06/14/2012" "pycode-browser" "pycode-browser User Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" pycode-browser \- environment to teach with Python code snippets .SH "SYNOPSIS" .HP \w'\fBpycode\-browser\fR\ 'u \fBpycode\-browser\fR .SH "DESCRIPTION" .PP \fBpycode\-browser\fR is part of the project PHOENIX, i\&. e\&. Phyiscs with Home\-made Equipment & Innovative Experiments, developed at Inter University Accelerator Centre, New Delhi\&. It allows students to browse Python source code easily, and to understand what this code is meaning\&. .SH "SEE ALSO" .PP see also other programs from the project PHOENIX\&. .PP \fBexpeyes\fR(1) .SH "AUTHOR" .PP \fBGeorges KHAZNADAR\fR <\&georgesk@ofset\&.org\&> .RS 4 Wrote this manpage for the Debian system\&. .RE .SH "COPYRIGHT" .br Copyright \(co 2012 Georges Khaznadar .br .PP This manual page was written for the Debian system (and may be used by others)\&. .PP Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation\&. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL\&. .sp debian/manpage2.xml0000644000000000000000000001147411766446507011431 0ustar .
will be generated. You may view the manual page with: nroff -man .
| less'. A typical entry in a Makefile or Makefile.am is: DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" manpage.1: manpage.xml $(XP) $(DB2MAN) $< The xsltproc binary is found in the xsltproc package. The XSL files are in docbook-xsl. A description of the parameters you can use can be found in the docbook-xsl-doc-* packages. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include xsltproc and docbook-xsl in your Build-Depends control field. Alternatively use the xmlto command/package. That will also automatically pull in xsltproc and docbook-xsl. Notes for using docbook2x: docbook2x-man does not automatically create the AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as ... . To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be found in the docbook-xsl-doc-html package. Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` General documentation about man-pages and man-page-formatting: man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ --> ]> &dhtitle; &dhpackage; &dhfirstname; &dhsurname; Wrote this manpage for the Debian system.
&dhemail;
2012 &dhusername; This manual page was written for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
&dhucpackage; &dhsection; &dhpackage; opens the PDF book for pycode-browser &dhpackage; DESCRIPTION &dhpackage; is part of the project PHOENIX, i. e. Phyiscs with Home-made Equipment & Innovative Experiments, developed at Inter University Accelerator Centre, New Delhi. It allows students to browse Python source code easily, and to understand what this code is meaning. SEE ALSO see also other programs from the project PHOENIX. expeyes 1 , pycode-browser 1
debian/source/0000755000000000000000000000000011766421114010471 5ustar debian/source/format0000644000000000000000000000001411766421114011677 0ustar 3.0 (quilt) debian/manpage.xml0000644000000000000000000001126311766446537011346 0ustar .
will be generated. You may view the manual page with: nroff -man .
| less'. A typical entry in a Makefile or Makefile.am is: DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" manpage.1: manpage.xml $(XP) $(DB2MAN) $< The xsltproc binary is found in the xsltproc package. The XSL files are in docbook-xsl. A description of the parameters you can use can be found in the docbook-xsl-doc-* packages. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include xsltproc and docbook-xsl in your Build-Depends control field. Alternatively use the xmlto command/package. That will also automatically pull in xsltproc and docbook-xsl. Notes for using docbook2x: docbook2x-man does not automatically create the AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as ... . To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be found in the docbook-xsl-doc-html package. Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` General documentation about man-pages and man-page-formatting: man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ --> ]> &dhtitle; &dhpackage; &dhfirstname; &dhsurname; Wrote this manpage for the Debian system.
&dhemail;
2012 &dhusername; This manual page was written for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
&dhucpackage; &dhsection; &dhpackage; environment to teach with Python code snippets &dhpackage; DESCRIPTION &dhpackage; is part of the project PHOENIX, i. e. Phyiscs with Home-made Equipment & Innovative Experiments, developed at Inter University Accelerator Centre, New Delhi. It allows students to browse Python source code easily, and to understand what this code is meaning. SEE ALSO see also other programs from the project PHOENIX. expeyes 1
debian/README.source0000644000000000000000000000062011766440025011350 0ustar pycode-browser for Debian ------------------------- The source comes from two places: - the git repository https://github.com/vimaljoseph/pycode-browser - http://expeyes.in/sites/default/files/pybooksrc.zip redundant files from http://expeyes.in/sites/default/files/pybooksrc.zip have been removed. Modifications in the debian package are managed by quilt, see /usr/share/doc/quilt/README.sourcedebian/changelog0000644000000000000000000000241612202402600011027 0ustar pycode-browser (20120614+git+b041dd2-5) unstable; urgency=low * fixed typos in d/control. Closes: #700763 -- Georges Khaznadar Tue, 13 Aug 2013 12:07:12 +0200 pycode-browser (20120614+git+b041dd2-4) unstable; urgency=low * changed my DEBEMAIL. * modified the test used to re-run pdflatex. Closes: #714618 * updated Standards-Version to 3.9.4 -- Georges Khaznadar Fri, 26 Jul 2013 22:11:07 +0200 pycode-browser (20120614+git+b041dd2-3) unstable; urgency=low * modified the invokation of lyx so it uses a dynamically created temporary directory. Closes:#682641 -- Georges Khaznadar Wed, 25 Jul 2012 14:50:35 +0200 pycode-browser (20120614+git+b041dd2-2) unstable; urgency=low * added lyx, texlive-generic-recommended, texlive-latex-recommended and texlive-latex-base in build-dependencies. Closes: #680828 * fixed Makefile. Closes: #680301 -- Georges Khaznadar Fri, 13 Jul 2012 19:08:14 +0200 pycode-browser (20120614+git+b041dd2-1) unstable; urgency=low * Initial release. Closes: #677660 * fixed a few tiny bugs (# missing in python comments, forgotten os.path.join() invokation) -- Georges Khaznadar Fri, 15 Jun 2012 21:37:45 +0200 debian/rules0000755000000000000000000000071011766437377010271 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2 debian/pycode-browser-book.10000644000000000000000000000470611766446623013172 0ustar '\" t .\" Title: PYCODE-BROWSER-BOOK .\" Author: Georges KHAZNADAR .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: 06/14/2012 .\" Manual: pycode-browser-book User Manual .\" Source: pycode-browser-book .\" Language: English .\" .TH "PYCODE\-BROWSER\-BOO" "1" "06/14/2012" "pycode-browser-book" "pycode-browser-book User Manua" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" pycode-browser-book \- opens the PDF book for pycode\-browser .SH "SYNOPSIS" .HP \w'\fBpycode\-browser\-book\fR\ 'u \fBpycode\-browser\-book\fR .SH "DESCRIPTION" .PP \fBpycode\-browser\-book\fR is part of the project PHOENIX, i\&. e\&. Phyiscs with Home\-made Equipment & Innovative Experiments, developed at Inter University Accelerator Centre, New Delhi\&. It allows students to browse Python source code easily, and to understand what this code is meaning\&. .SH "SEE ALSO" .PP see also other programs from the project PHOENIX\&. .PP \fBexpeyes\fR(1), \fBpycode-browser\fR(1) .SH "AUTHOR" .PP \fBGeorges KHAZNADAR\fR <\&georgesk@ofset\&.org\&> .RS 4 Wrote this manpage for the Debian system\&. .RE .SH "COPYRIGHT" .br Copyright \(co 2012 Georges Khaznadar .br .PP This manual page was written for the Debian system (and may be used by others)\&. .PP Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation\&. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL\&. .sp debian/pycode-browser.manpages0000644000000000000000000000006511766446672013673 0ustar debian/pycode-browser.1 debian/pycode-browser-book.1