Codebase list weasyprint / b09b186
Initial debian packaging Scott Kitterman 4 years ago
15 changed file(s) with 369 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 weasyprint (48-1) experimental; urgency=medium
1
2 * Initial release (Closes: #844046)
3
4 -- Scott Kitterman <scott@kitterman.com> Fri, 16 Aug 2019 16:42:07 -0400
0 Source: weasyprint
1 Section: text
2 Priority: optional
3 Maintainer: Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org>
4 Uploaders: Scott Kitterman <scott@kitterman.com>
5 Build-Depends: debhelper (>= 11~),
6 dh-python,
7 python3 (>= 3.5),
8 python3-pytest,
9 python3-pytest-cov,
10 python3-pytest-runner,
11 python3-setuptools (>=39.2.0)
12 Standards-Version: 4.4.0
13 Homepage: https://weasyprint.org/
14 Vcs-git: https://salsa.debian.org/python-team/applications/weasyprint.git
15 Vcs-Browser: https://salsa.debian.org/python-team/applications/weasyprint
16
17 Package: weasyprint
18 Architecture: all
19 Depends: libglib2.0-dev,
20 libpango1.0-dev,
21 python3-cairocffi (>=0.9.0),
22 python3-cairosvg (>=2.4.0),
23 python3-tinycss2 (>=1.0.0),
24 shared-mime-info,
25 ${misc:Depends},
26 ${python3:Depends}
27 Description: Document factory for creating PDF files from HTML
28 WeasyPrint is a smart solution helping web developers to create PDF
29 documents. It turns simple HTML pages into gorgeous statistical reports,
30 invoices, tickets, etc.
31 .
32 From a technical point of view, WeasyPrint is a visual rendering engine for
33 HTML and CSS that can export to PDF and PNG. It aims to support web standards
34 for printing. WeasyPrint is free software made available under a BSD license.
35 .
36 It is based on various libraries but *not* on a full rendering engine like
37 WebKit or Gecko. The CSS layout engine is written in Python, designed for
38 pagination, and meant to be easy to hack on.
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: weasyprint
2 Source: https://weasyprint.org/
3
4 Files: *
5 Copyright: 2011-2019 Simon Sapin and contributors, see AUTHORS.
6 License: BSD-3-clause
7
8 Files: debian/*
9 Copyright: 2019 Scott Kitterman <scott@kitterman.com>
10 License: BSD-3-Clause
11
12 License: BSD-3-Clause
13 BSD 3-Clause License
14 .
15 Copyright (c) 2011-2019, Simon Sapin and contributors (see AUTHORS).
16 All rights reserved.
17 .
18 Redistribution and use in source and binary forms, with or without
19 modification, are permitted provided that the following conditions are met:
20 .
21 * Redistributions of source code must retain the above copyright notice, this
22 list of conditions and the following disclaimer.
23 .
24 * Redistributions in binary form must reproduce the above copyright notice,
25 this list of conditions and the following disclaimer in the documentation
26 and/or other materials provided with the distribution.
27 .
28 * Neither the name of the copyright holder nor the names of its
29 contributors may be used to endorse or promote products derived from
30 this software without specific prior written permission.
31 .
32 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
35 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
36 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
37 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
38 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
39 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
40 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
41 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0 README.rst
0 [DEFAULT]
1 debian-branch=debian/master
0 Index: weasyprint/setup.cfg
1 ===================================================================
2 --- weasyprint.orig/setup.cfg
3 +++ weasyprint/setup.cfg
4 @@ -52,8 +52,8 @@ install_requires =
5 tests_require =
6 pytest-runner
7 pytest-cov
8 - pytest-flake8
9 - pytest-isort
10 + #pytest-flake8
11 + #pytest-isort
12 python_requires = >= 3.5
13
14 [options.entry_points]
15 @@ -71,8 +71,8 @@ doc =
16 test =
17 pytest-runner
18 pytest-cov
19 - pytest-flake8
20 - pytest-isort
21 + #pytest-flake8
22 + #pytest-isort
23
24 [bdist_wheel]
25 python-tag = py3
26 @@ -85,7 +85,7 @@ build-dir = docs/_build
27 test = pytest
28
29 [tool:pytest]
30 -addopts = --flake8 --isort
31 +#addopts = --flake8 --isort
32 norecursedirs = build dist .cache .eggs .git
33
34 [coverage:run]
35 @@ -100,9 +100,9 @@ exclude_lines =
36 omit =
37 .*
38
39 -[isort]
40 -default_section = THIRDPARTY
41 -multi_line_output = 4
42 +#[isort]
43 +#default_section = THIRDPARTY
44 +#multi_line_output = 4
45
46 [egg_info]
47 tag_build =
0 0001-test_fixup.patch
0 setuptools python3-pkg-resources
1 cffi python3-cffi
2 html5lib python3-html5lib
3 cairocffi python3-cairocffi (>=0.9.0)
4 tinycss2 python3-tinycss2 (>=1.0.0)
5 cssselect2 python3-cssselect2
6 CairoSVG python3-cairosvg (>=2.4.0)
7 Pyphen python3-pyphen
0 #!/usr/bin/make -f
1 # -*- makefile -*-
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 %:
7 dh $@ --with python3 --buildsystem=pybuild
8
9 override_dh_python3:
10 dh_python3 -p weasyprint
11
12 override_dh_auto_test:
13 # Needs network
0 3.0 (quilt)
0 version=3
1 opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
2 https://pypi.debian.net/WeasyPrint/WeasyPrint-(.+)\.tar\.gz
0 \"
1 .\" Standard preamble:
2 .\" ========================================================================
3 .de Sh \" Subsection heading
4 .br
5 .if t .Sp
6 .ne 5
7 .PP
8 \fB\\$1\fR
9 .PP
10 ..
11 .de Sp \" Vertical space (when we can't use .PP)
12 .if t .sp .5v
13 .if n .sp
14 ..
15 .de Vb \" Begin verbatim text
16 .ft CW
17 .nf
18 .ne \\$1
19 ..
20 .de Ve \" End verbatim text
21 .ft R
22 .fi
23 ..
24 .\" Set up some character translations and predefined strings. \*(-- will
25 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
26 .\" double quote, and \*(R" will give a right double quote. \*(C+ will
27 .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
28 .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
29 .\" nothing in troff, for use with C<>.
30 .tr \(*W-
31 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
32 .ie n \{\
33 . ds -- \(*W-
34 . ds PI pi
35 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
36 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
37 . ds L" ""
38 . ds R" ""
39 . ds C` ""
40 . ds C' ""
41 'br\}
42 .el\{\
43 . ds -- \|\(em\|
44 . ds PI \(*p
45 . ds L" ``
46 . ds R" ''
47 'br\}
48 .\"
49 .\" If the F register is turned on, we'll generate index entries on stderr for
50 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
51 .\" entries marked with X<> in POD. Of course, you'll have to process the
52 .\" output yourself in some meaningful fashion.
53 .if \nF \{\
54 . de IX
55 . tm Index:\\$1\t\\n%\t"\\$2"
56 ..
57 . nr % 0
58 . rr F
59 .\}
60 .\"
61 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
62 .\" way too many mistakes in technical documents.
63 .hy 0
64 .if n .na
65 .\"
66 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
67 .\" Fear. Run. Save yourself. No user-serviceable parts.
68 . \" fudge factors for nroff and troff
69 .if n \{\
70 . ds #H 0
71 . ds #V .8m
72 . ds #F .3m
73 . ds #[ \f1
74 . ds #] \fP
75 .\}
76 .if t \{\
77 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
78 . ds #V .6m
79 . ds #F 0
80 . ds #[ \&
81 . ds #] \&
82 .\}
83 . \" simple accents for nroff and troff
84 .if n \{\
85 . ds ' \&
86 . ds ` \&
87 . ds ^ \&
88 . ds , \&
89 . ds ~ ~
90 . ds /
91 .\}
92 .if t \{\
93 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
94 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
95 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
96 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
97 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
98 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
99 .\}
100 . \" troff and (daisy-wheel) nroff accents
101 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
102 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
103 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
104 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
105 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
106 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
107 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
108 .ds ae a\h'-(\w'a'u*4/10)'e
109 .ds Ae A\h'-(\w'A'u*4/10)'E
110 . \" corrections for vroff
111 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
112 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
113 . \" for low resolution devices (crt and lpr)
114 .if \n(.H>23 .if \n(.V>19 \
115 \{\
116 . ds : e
117 . ds 8 ss
118 . ds o a
119 . ds d- d\h'-1'\(ga
120 . ds D- D\h'-1'\(hy
121 . ds th \o'bp'
122 . ds Th \o'LP'
123 . ds ae ae
124 . ds Ae AE
125 .\}
126 .rm #[ #] #H #V #F C
127 .\" ========================================================================
128 .\"
129 .TH weasyprint 1 "2019-08-16"
130 .SH "NAME"
131 weasyprint
132 \-
133 Document factory for creating PDF files from HTML
134 .SH "VERSION"
135 48
136
137 .SH "DESCRIPTION"
138
139 WeasyPrint is a smart solution helping web developers to create PDF
140 documents. It turns simple HTML pages into gorgeous statistical reports,
141 invoices, tickets, etc.
142
143 From a technical point of view, WeasyPrint is a visual rendering engine for
144 HTML and CSS that can export to PDF and PNG. It aims to support web standards
145 for printing. WeasyPrint is free software made available under a BSD license.
146
147 It is based on various libraries but *not* on a full rendering engine like
148 WebKit or Gecko. The CSS layout engine is written in Python, designed for
149 pagination, and meant to be easy to hack on.
150
151 .SH "USAGE"
152
153 usage: weasyprint [\-h] [\-\-version] [\-e ENCODING] [\-f {pdf,png}]
154 [\-s STYLESHEET] [\-m MEDIA_TYPE] [\-r RESOLUTION]
155 [\-u BASE_URL] [\-a ATTACHMENT] [\-p] [\-v] [\-d] [\-q]
156 input output
157
158 Renders web pages to PDF or PNG.
159
160 positional arguments:
161 input URL or filename of the HTML input, or \- for stdin
162 output Filename where output is written, or \- for stdout
163
164 optional arguments:
165 \-h, \-\-help show this help message and exit
166 \-\-version Print WeasyPrint's version number and exit.
167 \-e ENCODING, \-\-encoding ENCODING
168 Character encoding of the input
169 \-f {pdf,png}, \-\-format {pdf,png}
170 Output format. Can be omitted if `output` ends with a
171 .pdf or .png extension.
172 \-s STYLESHEET, \-\-stylesheet STYLESHEET
173 URL or filename for a user CSS stylesheet. May be
174 given multiple times.
175 \-m MEDIA_TYPE, \-\-media-type MEDIA_TYPE
176 Media type to use for @media, defaults to print
177 \-r RESOLUTION, \-\-resolution RESOLUTION
178 PNG only: the resolution in pixel per CSS inch.
179 Defaults to 96, one PNG pixel per CSS pixel.
180 \-u BASE_URL, \-\-base-url BASE_URL
181 Base for relative URLs in the HTML input. Defaults to
182 the input's own filename or URL or the current
183 directory for stdin.
184 \-a ATTACHMENT, \-\-attachment ATTACHMENT
185 URL or filename of a file to attach to the PDF
186 document
187 \-p, \-\-presentational\-hints
188 Follow HTML presentational hints.
189 \-v, \-\-verbose Show warnings and information messages.
190 \-d, \-\-debug Show debugging messages.
191 \-q, \-\-quiet Hide logging messages.
192
193 .SH "AUTHORS"
194 This version of \fBweasyprint\fR was written by Simon Sapin and contributors.
195 .PP
196 This man-page was created by Scott Kitterman <scott@kitterman.com> and is
197 licensed under the same terms as weasyprint.
0 # Only provided for test, not meant for end-user use.
1 weasyprint: font-in-non-font-package usr/lib/python3/dist-packages/weasyprint/tests/resources/AHEM____.TTF
2 weasyprint: font-outside-font-dir usr/lib/python3/dist-packages/weasyprint/tests/resources/AHEM____.TTF
3 weasyprint: font-in-non-font-package usr/lib/python3/dist-packages/weasyprint/tests/resources/weasyprint.otf
4 weasyprint: font-outside-font-dir usr/lib/python3/dist-packages/weasyprint/tests/resources/weasyprint.otf
0 debian/weasyprint.1