11
11
from PDF. :-) Indeed ``pdfposter`` was inspired by ``poster``.
13
13
For more information please refere to the manpage or visit
14
the `project homepage <http://pdfposter.origo.ethz.ch/>`_.
14
the `project homepage <http://pythonhosted.org/pdftools.pdfposter/>`_.
25
25
except ImportError:
28
from distutils.core import Command
29
from distutils import log
32
class build_docs(Command):
33
description = "build documentation from rst-files"
36
def initialize_options (self): pass
37
def finalize_options (self):
38
self.docpages = DOCPAGES
41
substitutions = ('.. |VERSION| replace:: '
42
+ self.distribution.get_version())
43
for writer, rstfilename, outfilename in self.docpages:
44
distutils.dir_util.mkpath(os.path.dirname(outfilename))
45
log.info("creating %s page %s", writer, outfilename)
48
rsttext = open(rstfilename).read()
51
rsttext = '\n'.join((substitutions, rsttext))
52
# docutils.core does not offer easy reading from a
53
# string into a file, so we need to do it ourself :-(
54
doc = docutils.core.publish_string(source=rsttext,
55
source_path=rstfilename,
58
rsttext = open(outfilename, 'w').write(doc)
67
import docutils.writers.manpage
68
import distutils.command.build
69
distutils.command.build.build.sub_commands.append(('build_docs', None))
70
cmdclass['build_docs'] = build_docs
72
log.warn("docutils not installed, can not build man pages. "
73
"Using pre-build ones.")
76
('manpage', 'pdfposter.rst', 'docs/pdfposter.1'),
77
('html', 'pdfposter.rst', 'docs/pdfposter.html'),
30
82
#'other_resources': [(u"VERSIONTAG",1,myrevisionstring)],
54
107
# metadata for upload to PyPI
55
108
author = "Hartmut Goebel",
56
author_email = "h.goebel@goebel-consult.de",
109
author_email = "h.goebel@crazy-compilers.com",
57
110
description = "Scale and tile PDF images/pages to print on multiple pages.",
58
111
long_description = __doc__,
59
112
license = "GPL 3.0",
60
113
keywords = "pdf poster",
61
url = "http://pdfposter.origo.ethz.ch/",
62
download_url = "http://pdfposter.origo.ethz.ch/download",
114
url = "http://pythonhosted.org/pdftools.pdfposter/",
115
download_url = "http://pypi.python.org/pypi/pdftools.pdfposter/",
64
117
'Development Status :: 5 - Production/Stable',
65
118
'Environment :: Console',