summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Chaplin <>2011-04-17 20:04:09 +0800
committerSteve Chaplin <>2011-04-17 20:04:09 +0800
commitc465e0260e31ead462af38329cc87f27ba8ff71f (patch)
treec7744e835a412864d3e877adcde25bf4d55d6e99
parent4a41ab1ced69ec429a34fcb7b88999da06abf8b1 (diff)
downloadpycairo-c465e0260e31ead462af38329cc87f27ba8ff71f.tar.gz
Update 'waf dist' so that generated docs (not just the docs source) are
included in the pycairo archive file.
-rw-r--r--doc/README2
-rw-r--r--doc/reference/constants.rst7
-rw-r--r--wscript13
3 files changed, 16 insertions, 6 deletions
diff --git a/doc/README b/doc/README
index b584604..68d78c6 100644
--- a/doc/README
+++ b/doc/README
@@ -1,7 +1,7 @@
Pycairo Documentation README
----------------------------
-This directory contains the reStructuredText (reST) sources to the Pycairo
+This directory contains the reStructuredText (reST) sources for the Pycairo
documentation.
Options for accessing pycairo documentation:
diff --git a/doc/reference/constants.rst b/doc/reference/constants.rst
index 18454d6..9487059 100644
--- a/doc/reference/constants.rst
+++ b/doc/reference/constants.rst
@@ -247,6 +247,8 @@ cairo.FORMAT
These constants are used to identify the memory format of
:class:`ImageSurface` data.
+New entries may be added in future versions.
+
.. data:: FORMAT_ARGB32
each pixel is a 32-bit quantity, with alpha in the upper 8 bits, then red,
@@ -271,7 +273,10 @@ These constants are used to identify the memory format of
the uppermost bit, on a little-endian machine the first pixel is in the
least-significant bit.
-New entries may be added in future versions.
+.. data:: FORMAT_RGB16_565
+
+ each pixel is a 16-bit quantity with red in the upper 5 bits, then green in
+ the middle 6 bits, and blue in the lower 5 bits.
.. _constants_HINT_METRICS:
diff --git a/wscript b/wscript
index e167b59..43ba718 100644
--- a/wscript
+++ b/wscript
@@ -67,16 +67,21 @@ def build(ctx):
def dist(ctx):
# exclude these files from the distribution archive
- exclude = (
- 'RELEASING',
- 'examples/cairo_snippets/c_to_python.py',
+ exclude = (
+ 'build_directory/',
'doc/html_docs_create.sh',
'doc/html_docs_upload.sh',
+ 'doc/_static/',
+ 'doc/_templates/',
+ 'doc/_build/doctrees/',
+ 'doc/_build/html/_sources/',
+ 'examples/cairo_snippets/c_to_python.py',
+ 'RELEASING',
'.git/',
'**/.gitignore',
'**/.lock-w*',
- '.waf3*',
+ '.waf*',
'**/*.pdf',
'**/*.png',