Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit ca09d078984c5310f5052477da1ae0f65d017a92 Steve Chaplin committed Aug 6, 2009
Showing with 25,797 additions and 0 deletions.
  1. +37 −0 .gitignore
  2. +11 −0 AUTHORS
  3. +17 −0 COPYING
  4. +510 −0 COPYING-LGPL-2.1
  5. +470 −0 COPYING-MPL-1.1
  6. +32 −0 INSTALL
  7. +90 −0 Makefile.am
  8. +450 −0 NEWS
  9. +41 −0 README
  10. +98 −0 RELEASING
  11. +67 −0 acinclude.m4
  12. +196 −0 autogen.sh
  13. +1,526 −0 config.guess
  14. +1,658 −0 config.sub
  15. +110 −0 configure.ac
  16. +7 −0 doc/.gitignore
  17. +96 −0 doc/Makefile.am
  18. +89 −0 doc/README
  19. +187 −0 doc/conf.py
  20. +41 −0 doc/faq.rst
  21. +19 −0 doc/index.rst
  22. +31 −0 doc/overview.rst
  23. +116 −0 doc/pycairo_c_api.rst
  24. +525 −0 doc/reference/constants.rst
  25. +1,485 −0 doc/reference/context.rst
  26. +18 −0 doc/reference/exceptions.rst
  27. +19 −0 doc/reference/index.rst
  28. +181 −0 doc/reference/matrix.rst
  29. +23 −0 doc/reference/paths.rst
  30. +286 −0 doc/reference/patterns.rst
  31. +659 −0 doc/reference/surfaces.rst
  32. +255 −0 doc/reference/text.rst
  33. +7 −0 examples/.gitignore
  34. +40 −0 examples/Makefile.am
  35. +35 −0 examples/cairo_snippets/c_to_python.py
  36. +5 −0 examples/cairo_snippets/snippets/.gitignore
  37. +12 −0 examples/cairo_snippets/snippets/__init__.py
  38. +21 −0 examples/cairo_snippets/snippets/arc.py
  39. +22 −0 examples/cairo_snippets/snippets/arc_negative.py
  40. +13 −0 examples/cairo_snippets/snippets/clip.py
  41. +13 −0 examples/cairo_snippets/snippets/clip_image.py
  42. +53 −0 examples/cairo_snippets/snippets/curve_rectangle.py
  43. +17 −0 examples/cairo_snippets/snippets/curve_to.py
  44. +33 −0 examples/cairo_snippets/snippets/ellipse.py
  45. +12 −0 examples/cairo_snippets/snippets/fill_and_stroke.py
  46. +18 −0 examples/cairo_snippets/snippets/fill_and_stroke2.py
  47. +21 −0 examples/cairo_snippets/snippets/glyph_path.py
  48. +16 −0 examples/cairo_snippets/snippets/gradient.py
  49. +12 −0 examples/cairo_snippets/snippets/gradient_mask.py
  50. +16 −0 examples/cairo_snippets/snippets/group.py
  51. +14 −0 examples/cairo_snippets/snippets/image.py
  52. +23 −0 examples/cairo_snippets/snippets/imagepattern.py
  53. +7 −0 examples/cairo_snippets/snippets/path.py
  54. +19 −0 examples/cairo_snippets/snippets/set_line_cap.py
  55. +21 −0 examples/cairo_snippets/snippets/set_line_join.py
  56. +15 −0 examples/cairo_snippets/snippets/show_glyphs.py
  57. +22 −0 examples/cairo_snippets/snippets/text.py
  58. +26 −0 examples/cairo_snippets/snippets/text_align_center.py
  59. +27 −0 examples/cairo_snippets/snippets/text_extents.py
  60. +140 −0 examples/cairo_snippets/snippets_gtk.py
  61. +56 −0 examples/cairo_snippets/snippets_pdf.py
  62. +52 −0 examples/cairo_snippets/snippets_png.py
  63. +56 −0 examples/cairo_snippets/snippets_ps.py
  64. +53 −0 examples/cairo_snippets/snippets_svg.py
  65. +33 −0 examples/gradient.py
  66. +121 −0 examples/gtk/cairo-demo.py
  67. +128 −0 examples/gtk/cairo-knockout.py
  68. +257 −0 examples/gtk/hangman.py
  69. +123 −0 examples/gtk/lsystem.py
  70. +35 −0 examples/gtk/png_view.py
  71. +41 −0 examples/gtk/text.py
  72. +55 −0 examples/hering.py
  73. +36 −0 examples/spiral.py
  74. +85 −0 examples/warpedtext.py
  75. +8,406 −0 ltmain.sh
  76. +8 −0 pycairo.pc.in
  77. +84 −0 setup.py
  78. +9 −0 src/.gitignore
  79. +22 −0 src/Makefile.am
  80. +498 −0 src/cairomodule.c
  81. +1,547 −0 src/pycairo-context.c
  82. +641 −0 src/pycairo-font.c
  83. +365 −0 src/pycairo-matrix.c
  84. +337 −0 src/pycairo-path.c
  85. +618 −0 src/pycairo-pattern.c
  86. +161 −0 src/pycairo-private.h
  87. +1,236 −0 src/pycairo-surface.c
  88. +208 −0 src/pycairo.h
  89. +5 −0 test/.gitignore
  90. +11 −0 test/Makefile.am
  91. +54 −0 test/api_test.py
  92. +29 −0 test/examples_test.py
  93. +27 −0 test/isurface_create_for_data1.py
  94. +26 −0 test/isurface_create_for_data2.py
  95. +37 −0 test/isurface_create_from_png.py
  96. +43 −0 test/isurface_get_data.py
  97. +65 −0 test/pygame-test1.py
  98. +49 −0 test/pygame-test2.py
  99. +81 −0 test/surface_create_for_stream.py
  100. +69 −0 test/surface_write_to_png.py
@@ -0,0 +1,37 @@
+#
+.deps
+.libs
+.perf
+#
+aclocal.m4
+autom4te.cache
+autoscan.log
+config.cache
+config.h
+config.h.in
+config.log
+config.status
+configure
+configure.scan
+depcomp
+doltcompile
+doltlibtool
+install-sh
+libtool
+Makefile
+Makefile.in
+missing
+py-compile
+pycairo.pc
+releases
+stamp-h
+stamp-h1
+stamp-h.in
+#
+*~
+.*.sw?
+*.la
+*.lo
+*.orig
+*.rej
+*-uninstalled.pc
11 AUTHORS
@@ -0,0 +1,11 @@
+Original Author
+---------------
+James Henstridge <james@daa.com.au>
+
+Maintainer
+----------
+Steve Chaplin <stevech1097 # yahoo.com.au>
+
+Contributors
+------------
+Maarten Breddels
17 COPYING
@@ -0,0 +1,17 @@
+PyCairo is free software.
+
+Every source file in the implementation of PyCairo is available to be
+redistributed and/or modified under the terms of either the GNU Lesser
+General Public License (LGPL) version 2.1 or the Mozilla Public
+License (MPL) version 1.1. Some files are available under more
+liberal terms, but we believe that in all cases, each file may be used
+under either the LGPL or the MPL.
+
+See the following files in this directory for the precise terms and
+conditions of either license:
+
+ COPYING-LGPL-2.1
+ COPYING-MPL-1.1
+
+Please see each file in the implementation for Copyright and licensing
+information.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
32 INSTALL
@@ -0,0 +1,32 @@
+Install method1 - preferred method
+---------------
+Using the same install method of install as cairo - GNU autotools.
+
+ $ python -c "import sys; print sys.prefix"
+ # make a note of the python prefix
+ $ ./configure --prefix=<python_prefix>
+ $ make
+ $ make install # may require superuser access
+
+To build from CVS, use this line instead of the configure line above:
+ $ ./autogen.sh --prefix=<python_prefix>
+
+If you're installing to another prefix than the one where Python is installed
+Python will not be able to find the cairo module until you add
+$prefix/lib/pythonX.Y/site-packages to the PYTHONPATH variable.
+
+
+Install method2 - alternative install method
+---------------
+ 1. Untar the .tar.gz file
+ 2. cd into the resulting directory
+ 3. python setup.py install
+
+
+Testing
+-------
+testing uses py.test from pylib
+http://codespeak.net/py/dist/
+
+$ cd test
+$ py.test
@@ -0,0 +1,90 @@
+SUBDIRS = src examples test doc
+
+EXTRA_DIST = \
+ COPYING \
+ COPYING-LGPL-2.1 \
+ COPYING-MPL-1.1 \
+ pycairo.pc.in \
+ setup.py
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = pycairo.pc
+
+# release targets from cairo/Makefile.am
+# Some custom targets to make it easier to release things.
+# Use either:
+# make release-check
+# or make release-publish
+
+RELEASE_UPLOAD_HOST = cairographics.org
+RELEASE_UPLOAD_BASE = /srv/cairo.freedesktop.org/www
+
+RELEASE_UPLOAD_DIR = $(RELEASE_UPLOAD_BASE)/releases
+RELEASE_URL_BASE = http://cairographics.org/releases
+#RELEASE_UPLOAD_DIR = $(RELEASE_UPLOAD_BASE)/snapshots
+#RELEASE_URL_BASE = http://cairographics.org/snapshots
+
+RELEASE_ANNOUNCE_LIST = cairo-announce@cairographics.org (and CC python-announce-list@python.org)
+
+tar_file = $(PACKAGE)-$(VERSION).tar.gz
+md5_file = $(tar_file).md5
+
+$(md5_file): $(tar_file)
+ md5sum $^ > $@
+
+release-verify-even-micro:
+ @echo -n "Checking that $(VERSION) has an even micro component..."
+ @test "$(PYCAIRO_VERSION_MICRO)" = "`echo $(PYCAIRO_VERSION_MICRO)/2*2 | bc`" \
+ || (echo "Ouch." && echo "The version micro component '$(PYCAIRO_VERSION_MICRO)' is not an even number." \
+ && echo "The version in configure.in must be incremented before a new release." \
+ && false)
+ @echo "Good."
+
+release-verify-newer:
+ @echo -n "Checking that no $(VERSION) release already exists..."
+ @ssh $(RELEASE_UPLOAD_HOST) test ! -e $(RELEASE_UPLOAD_DIR)/$(tar_file) \
+ || (echo "Ouch." && echo "Found: $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_DIR)/$(tar_file)" \
+ && echo "Are you sure you have an updated CVS checkout?" \
+ && echo "This should never happen." \
+ && false)
+ @echo "Good."
+
+release-remove-old:
+ rm -f $(tar_file) $(md5_file)
+
+release-check: release-verify-even-micro release-verify-newer release-remove-old distcheck $(md5_file)
+
+release-upload: release-check $(tar_file) $(md5_file)
+ mkdir -p releases
+ scp $(tar_file) $(md5_file) $(RELEASE_UPLOAD_HOST):$(RELEASE_UPLOAD_DIR)
+ mv $(tar_file) $(md5_file) releases
+ ssh $(RELEASE_UPLOAD_HOST) "rm -f $(RELEASE_UPLOAD_DIR)/LATEST-$(PACKAGE)-[0-9]* && ln -s $(tar_file) $(RELEASE_UPLOAD_DIR)/LATEST-$(PACKAGE)-$(VERSION)"
+ cvs tag RELEASE_$(PYCAIRO_VERSION_MAJOR)_$(PYCAIRO_VERSION_MINOR)_$(PYCAIRO_VERSION_MICRO)
+
+release-publish: release-upload releases/$(md5_file)
+ @echo ""
+ @echo "Please send an announcement to $(RELEASE_ANNOUNCE_LIST)"
+ @echo "including the following:"
+ @echo ""
+ @echo "Subject: ANN: $(PACKAGE) release $(VERSION) now available"
+ @echo ""
+ @echo "============================== CUT HERE =============================="
+ @echo "Pycairo is a set of Python bindings for the multi-platform 2D graphics library cairo."
+ @echo " http://cairographics.org"
+ @echo " http://cairographics.org/pycairo"
+ @echo ""
+ @echo "A new $(PACKAGE) release $(VERSION) is now available from:"
+ @echo ""
+ @echo " $(RELEASE_URL_BASE)/$(tar_file)"
+ @echo " $(RELEASE_URL_BASE)/$(md5_file)"
+ @echo ""
+ @echo -n " "
+ @cat releases/$(md5_file)
+ @echo ""
+ @echo "============================== CUT HERE =============================="
+ @echo "Also, please include the new entries from the NEWS file."
+ @echo ""
+ @echo "Last but not least, do not forget to bump up the micro"
+ @echo "version component to the next (odd) number and commit."
+
+.PHONY: release-verify-even-micro release-verify-newer release-remove-old release-check release-upload release-publish
Oops, something went wrong.

0 comments on commit ca09d07

Please sign in to comment.