[py-svn] r36368 - py/dist/py/bin
hpk at codespeak.net
hpk at codespeak.net
Tue Jan 9 16:26:06 CET 2007
Author: hpk
Date: Tue Jan 9 16:26:03 2007
New Revision: 36368
Removed:
py/dist/py/bin/rst2pdf.py
Log:
remove the old script that cf already integrated
into bin/py.rest
Deleted: /py/dist/py/bin/rst2pdf.py
==============================================================================
--- /py/dist/py/bin/rst2pdf.py Tue Jan 9 16:26:03 2007
+++ (empty file)
@@ -1,42 +0,0 @@
-#!/usr/bin/env python
-docstring = """
-invoke
-
- %s filename1.txt
-
-to generate a pdf file from restructered text.
-
-http://docutils.sourceforge.net/docs/user/rst/quickref.html
-
-""" % __file__
-
-from _findpy import py
-
-from py.__.rest import directive
-from py.__.rest.latex import process_rest_file, process_configfile
-
-optparse = py.compat.optparse
-
-parser = optparse.OptionParser(usage=docstring)
-parser.add_option("-c", "--config", dest="configfile",
- help="use config file")
-parser.add_option("--stylesheet", dest="stylesheet", default=None,
- help="use style sheet")
-parser.add_option("--debug", action="store_true", dest="debug",
- default=False,
- help="print debug output and don't delete files")
-
-if __name__ == '__main__':
- print "This file is deprecated. Please use py.rest --topdf instead"
- directive.BackendStore("latex")
- (options, args) = parser.parse_args()
- if options.configfile is not None:
- configfile = py.path.local(options.configfile)
- process_configfile(options.configfile, options.debug)
- elif len(args) != 1:
- parser.error("please supply a file name")
- else:
- f = py.path.local(args[0])
- process_rest_file(args[0], options.stylesheet, options.debug)
-
-
More information about the pytest-commit
mailing list