Commit b6fe8cee authored by Luke Faraone's avatar Luke Faraone

Imported Debian patch 0.3.2-1

parents f8f041c6 21a296c9
This is a Bazaar control directory.
Do not change any files in this directory.
See http://bazaar-vcs.org/ for more information about Bazaar.
Bazaar-NG meta directory, format 1
parent_location = bzr+ssh://bazaar.launchpad.net/%7Egasp-dev/gasp-code/pycairo/
Bazaar Branch Format 6 (bzr 0.15)
40 jboisture@jboisture-desktop-20090723040020-0yvlaal44hlcs6tb
BZR conflict list format 1
Bazaar Working Tree Format 4 (bzr 0.15)
Bazaar pack repository format 1 (needs bzr 0.92)
Bazaar Graph Index 1
node_ref_lists=0
key_elements=1
len=0
Contributors
GASP Development Team
============
Principal Developer:
......@@ -7,6 +7,7 @@ Principal Developer:
Major Contributors:
David Cooper
Luke Faraone
Kevin Kubasik
Stephan Richter
David Muffley
......
python-gasp (0.3.2) stable; urgency=low
* No longer raise an exception when removing an object not on the screen,
instead passing silently. (LP: #407429)
* Fix broken trove classifiers in setup.py
* Don't panic if images/gasp.png cannot be found
* Add docstrings for all modules
-- Luke Faraone <luke@faraone.cc> Thu, 20 Aug 2009 09:55:17 -0400
python-gasp (0.3.1) stable; urgency=medium
* Flesh out documentation.
* Rearrange files:
CONTRIBUTORS -> AUTHORS
COPYRIGHT -> COPYING
gasp/setup.py -> setup.py
* setup.py: Add additional dependencies.
* setup.py: Install gasp.png along with package.
-- Luke Faraone <luke@faraone.cc> Mon, 27 Jul 2009 22:49:50 -0400
python-gasp (0.3.0) stable; urgency=low
* Change over to Jamie Boisture's new Cairo Graphics-based API
-- Luke Faraone <luke@faraone.cc> Fri, 24 Jul 2009 20:00:00 -0400
......@@ -3,5 +3,61 @@ README
GASP (Graphics API for Students of Python)
A library built on pygame that enables absolute beginners to write 1980's style
arcade games as an introduction to python.
A library built on Cairo Graphics that enables absolute beginners to write
1980's style arcade games as an introduction to python.
Homepage: http://launchpad.net/gasp-code
Help: https://answers.launchpad.net/gasp-code
FAQ: https://answers.launchpad.net/gasp-code/+faqs
Bugs/Patches Welcome: http://bugs.launchpad.net/gasp-code/+filebug
There is an excellent coursebook <http://openbookproject.net/pybiblio/gasp/>
which goes over learning to use GASP in your own applications, which is
designed to supplement (but can be used apart from)
<http://openbookproject.net/thinkCSpy/>, a full-fledged introduction to
the Python programming language.
DEPENDENCIES
======
GASP requires the following to function:
* python-cairo
* python-gobject
* python-gtk2
* python-multiprocessing (only on python 2.5)
GASP is tested with Python 2.5 and Python 2.6. Python 3.0 is unsupported at
this time.
INSTALLING FROM SOURCE
======
NOTE: It may be easier to use a pre-built binary for your platform, if it
exists. Please see https://launchpad.net/gasp-code/+download for more details.
In order to install GASP, you need to have setuptools installed.
Please see http://pypi.python.org/pypi/setuptools for instructions on
installing setuptools for your platform.
Then, run:
python gasp/setup.py install
Or, using easy_install:
easy_install gasp
COPYRIGHT
======
This package is Copyright © 2009 the GASP Development Team, as detailed in
the AUTHORS file shipped with this package.
This package is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. See the COPYING file for more details.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
python-gasp (0.3.2-1) unstable; urgency=low
* New upstream version
* Bump standards version to 3.8.3
* Drop debian/patches/setuptools.patch
* debian/copyright: Update copyright to reflect upstream
* debian/watch: Update for new upstream download location
-- Luke Faraone <luke@faraone.cc> Fri, 21 Aug 2009 06:07:16 -0400
python-gasp (0.3.0-1) unstable; urgency=low
* New upstream version
......
......@@ -5,7 +5,7 @@ Maintainer: Luke Faraone <luke@faraone.cc>
Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Build-Depends: python (>= 2.4), debhelper (>= 5), cdbs (>= 0.4.49), python-setuptools,
Build-Depends-indep: python-support (>= 0.5.3), patchutils, bzr
Standards-Version: 3.8.2
Standards-Version: 3.8.3
Homepage: https://launchpad.net/gasp
Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-gasp/trunk
Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-gasp/trunk/
......
......@@ -4,10 +4,13 @@ Friday November 21, 2008 22:30:00 -0500.
It was downloaded from https://launchpad.net/gasp-code/
Copyright Holder:
* Copyright 2009 GASP Development Team <gasp-dev@lists.launchpad.net>
* Copyright 2009 Jamie Boisture <jamieboisture@gmail.com>
* Copyright 2008 James Hancock <JLHancock@gmail.com>
Upstream authors:
David Cooper <davidcooper000@yahoo.com>
Luke Faraone <luke@faraone.cc>
Kevin Kubasik <kevin@kubasik.net>
Stephan Richter <srichter@cosmos.phy.tufts.edu>
David Muffley <sunami.ff@gmail.com>
......
gasp/images/gasp.png /usr/share/python-gasp/
diff -Nur -x '*.orig' -x '*~' trunk/gasp/setup.py trunk.new/gasp/setup.py
--- trunk/gasp/setup.py 2009-07-27 19:11:15.000000000 -0400
+++ trunk.new/gasp/setup.py 2009-07-27 19:30:58.000000000 -0400
@@ -24,6 +24,8 @@
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Education :: Computer Aided Instruction (CAI)'],
+
+ data_files=[('share/python-support/python-gasp/gasp/images', ['gasp/images/gasp.png',]),],
install_requires = [
'setuptools',
......@@ -5,7 +5,7 @@ include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
DEB_PYTHON_SETUP_CMD = gasp/setup.py
DEB_PYTHON_SETUP_CMD = setup.py
.PHONY: get-orig-source
get-orig-source:
......
version=3
http://dev.laptop.org/pub/gasp/releases/SOURCES/python-gasp-(.*)\.tar\.bz2
http://launchpad.net/gasp-code/+download \
http://launchpad.net/gasp-code/.*/python-gasp-(.*).tar.gz
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This program is part of GASP, a toolkit for newbie Python Programmers.
# Copyright (C) 2009, the GASP Development Team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from api import *
import color
This diff is collapsed.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This program is part of GASP, a toolkit for newbie Python Programmers.
# Copyright (C) 2009, the GASP Development Team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
Backend non-user-safe part of GASP. Things may change here in later
releases without warning, and should not be used directly.
"""
import os
import sys
import math
import multiprocessing
import threading
import cairo
import gobject
import time
import gtk
import cairo
from glib import GError
# diffrent update_when values
NOTHING = "Nothing"
......@@ -77,7 +98,10 @@ def create_screen(screen_obj): # takes a Screen() objects.
#set the window icon and show the window
pic = os.path.join(os.path.join(os.path.dirname(os.path.abspath(__file__)),"images"),"gasp.png")
screen.window.set_icon_from_file(pic)
try:
screen.window.set_icon_from_file(pic)
except GError, e: # in case the file is not found
print "Warning: " + e.message
screen.window.show()
#create the buffer to draw to
......@@ -415,7 +439,10 @@ def create_oval(obj): # Must take an oval object
@require_screen
def create_image(obj): # must take an image object
obj.rot = 0
obj.pixbuf = gtk.gdk.pixbuf_new_from_file(obj.path_name)
try:
obj.pixbuf = gtk.gdk.pixbuf_new_from_file(obj.path_name)
except:
raise GaspException("Image file not found")
width = obj.pixbuf.get_width()
height = obj.pixbuf.get_height()
if obj.width != 0 and obj.height != 0:
......@@ -571,6 +598,7 @@ def end():
@require_screen
def remove(obj):
screen.objects.remove(obj)
screen.action_objects.put([obj,"remove"])
@require_screen
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This program is part of GASP, a toolkit for newbie Python Programmers.
# Copyright (C) 2008, James Hancock
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
color.py : Constants for colors (RBG values)
copyright: James Hancock, 2008
@copyright James Hancock, 2008
"""
ALICEBLUE = (240, 248, 255)
......@@ -143,3 +156,4 @@ WHITE = (255, 255, 255)
WHITESMOKE = (245, 245, 245)
YELLOW = (255, 255, 0)
YELLOWGREEN = (154, 205, 50)
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'gasp',
version = '0.3.x',
packages = ['gasp',
],
author = "Jamie Boisture and James Hancock",
author_email = "jamieboisture@gmail.com, jlhancock@gmail.com",
description = "GASP provides a simple, procedural graphics API for beginning students using Python",
license = "GPLv3+",
keywords = "gasp",
url = "http://wiki.laptop.org/go/GASP",
classifiers = [
'Development Status :: 3 - Pre-Alpha',
'Environment :: Other Environment',
'Intended Audience :: Education',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Education :: Computer Aided Instruction (CAI)'],
install_requires = [
'setuptools',
],
)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This program is part of GASP, a toolkit for newbie Python Programmers.
# Copyright (C) 2009, the GASP Development Team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Installer for the GASP Core Software."""
from setuptools import setup
setup(
name = 'gasp',
version = '0.3.2',
packages = ['gasp',
],
author = 'Jamie Boisture and James Hancock',
author_email = 'jamieboisture@gmail.com, jlhancock@gmail.com',
maintainer = 'Luke Faraone',
maintainer_email = 'luke@faraoane.cc',
description = 'GASP provides a simple, procedural graphics API for ' + \
'beginning students using Python',
license = 'GPLv3+',
keywords = 'gasp',
url = 'http://wiki.laptop.org/go/GASP',
download_url='https://launchpad.net/gasp-code/+download',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: X11 Applications :: GTK',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Education',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Education :: Computer Aided Instruction (CAI)',
'Topic :: Multimedia :: Graphics',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: User Interfaces',],
package_dir = {'gasp' : 'gasp'},
package_data = {'gasp': ['images/gasp.png']},
install_requires = [
'setuptools',
'pycairo >= 1.4',
'pygobject',
'pygtk >= 2.0',]
)
# -*- coding: utf-8 -*-
#
# This program is part of GASP, a toolkit for newbie Python Programmers.
# Copyright (C) 2009, the GASP Development Team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
class MockBackEnd(object):
def __init__(self):
self.screen = None
......
# -*- coding: utf-8 -*-
#
# This program is part of GASP, a toolkit for newbie Python Programmers.
# Copyright (C) 2009, the GASP Development Team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import doctest
#doctest.testfile("test_backend.txt")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment