--- zhpy-1.7.3.1.orig/zhpy.egg-info/requires.txt +++ zhpy-1.7.3.1/zhpy.egg-info/requires.txt @@ -1,4 +1,4 @@ -chardet >=1.0.1 + [pyparsing] pyparsing >=1.5.2 --- zhpy-1.7.3.1.orig/debian/python-zhpy.prerm +++ zhpy-1.7.3.1/debian/python-zhpy.prerm @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + --- zhpy-1.7.3.1.orig/debian/python-zhpy.manpages +++ zhpy-1.7.3.1/debian/python-zhpy.manpages @@ -0,0 +1 @@ +debian/zhpy.1 --- zhpy-1.7.3.1.orig/debian/pyversions +++ zhpy-1.7.3.1/debian/pyversions @@ -0,0 +1 @@ +2.2- --- zhpy-1.7.3.1.orig/debian/compat +++ zhpy-1.7.3.1/debian/compat @@ -0,0 +1 @@ +5 --- zhpy-1.7.3.1.orig/debian/python-zhpy.postinst +++ zhpy-1.7.3.1/debian/python-zhpy.postinst @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + --- zhpy-1.7.3.1.orig/debian/copyright +++ zhpy-1.7.3.1/debian/copyright @@ -0,0 +1,75 @@ +This package was debianized by Shan-Bin Chen on +Wed, 20 Feb 2008 13:29:35 +0800. + +It was downloaded from http://zhpy.googlecode.com/files/zhpy-1.7.1.zip + +Upstream Authors: + + Fred Lin + HERY + Jiahwa Huang + renhbo + +Copyright: + + Copyright (c) 2007 Fred Lin + +License: + +This is the MIT license: +http://www.opensource.org/licenses/mit-license.php + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +The following included module has it's own license: + + * pyparsing + +It was originally downloaded from http://pyparsing.sourceforge.net/ +This package, python-pyparsing is already in Debian. + +Upstream Author: Paul McGuire + +Copyright: + +# +# Copyright (c) 2003,2004 Paul T. McGuire +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +The Debian packaging is copyright 2008, Shan-Bin Chen +and is licensed under the MIT, see above. --- zhpy-1.7.3.1.orig/debian/control +++ zhpy-1.7.3.1/debian/control @@ -0,0 +1,28 @@ +Source: zhpy +Section: python +Priority: optional +Maintainer: Shan-Bin Chen +Build-Depends: debhelper (>= 7), cdbs (>= 0.4.49), python, + python-support (>= 0.6.4) +Build-Depends-Indep: python-setuptools, python-pyparsing, + python-chardet +Vcs-Hg: https://zhpy.googlecode.com/hg/ +Vcs-Browser: http://code.google.com/p/zhpy/source/browse/ +Homepage: http://code.google.com/p/zhpy/ +Standards-Version: 3.8.3 +XS-Python-Version: all + + +Package: python-zhpy +Architecture: all +Depends: ${python:Depends}, ${misc:Depends}, python-chardet, + python-pkg-resources, python-pyparsing +XB-Python-Version: ${python:Versions} +Replaces: zhpy +Provides: zhpy +Conflicts: zhpy +Description: the Python language with Chinese + zhpy (pronounce as 'zippy' or 'Z-H-pi') is the full feature Python language + with fully tested chinese keywords, variables, and parameters support, + independent on Python version, bundle with command line tool, interpreter, + pluggable keyword system and great document. --- zhpy-1.7.3.1.orig/debian/watch +++ zhpy-1.7.3.1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://code.google.com/p/zhpy/ http://zhpy.googlecode.com/files/zhpy-(.+)\.zip --- zhpy-1.7.3.1.orig/debian/pycompat +++ zhpy-1.7.3.1/debian/pycompat @@ -0,0 +1 @@ +2 --- zhpy-1.7.3.1.orig/debian/python-zhpy.docs +++ zhpy-1.7.3.1/debian/python-zhpy.docs @@ -0,0 +1 @@ +README.txt --- zhpy-1.7.3.1.orig/debian/changelog +++ zhpy-1.7.3.1/debian/changelog @@ -0,0 +1,28 @@ +zhpy (1.7.3.1-1) unstable; urgency=low + + * New upstream release. (Closes: #544967) + * Change the dependency. (Closes: #546427) + * Remove pyparsing.py . (Closes: #555370) + * Add README.Debian . + + -- Shan-Bin Chen Thu, 14 Jan 2010 02:54:04 +0800 + +zhpy (1.7.2-2) unstable; urgency=low + + * Fix the XS- from the Vcs headers and the hyphens in the manpages. + * Add the homepage field. + * Remove the conflict. (Closes: #544391) + + -- Shan-Bin Chen Tue, 01 Sep 2009 11:51:18 +0800 + +zhpy (1.7.2-1) unstable; urgency=low + + * New upstream release + + -- Shan-Bin Chen Sat, 22 Aug 2009 11:46:32 +0800 + +zhpy (1.7.1-1) unstable; urgency=low + + * Initial release (Closes: #511777) + + -- Shan-Bin Chen Wed, 14 Jan 2009 12:58:17 +0800 --- zhpy-1.7.3.1.orig/debian/rules +++ zhpy-1.7.3.1/debian/rules @@ -0,0 +1,24 @@ +#! /usr/bin/make -f +#export DH_VERBOSE=1 + +DEB_PYTHON_SYSTEM := pysupport + +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 + +# Install egg-info directories +DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed +# DEB_INSTALL_CHANGELOGS_ALL = CHANGELOG.txt + + +binary-post-install/python-zhpy:: +# chmod a-x debian/$(cdbs_curpkg)/usr/share/doc/python-zhpy/examples/test_example.sh +# The upstream suggest remove the ./tests/ , dirty hack for #544391 +# rm -rf debian/$(cdbs_curpkg)/usr/share/pyshared/tests/ +# Fix Embedded code copy of python-pyparsing for #555370 + rm -rf debian/$(cdbs_curpkg)/usr/share/pyshared/zhpy/pyparsing.py + +clean:: +# Hack to work around "setup.py clean" creating pyc files + find . -name \*.pyc -print0 | xargs -r0 rm --- zhpy-1.7.3.1.orig/debian/README.Debian +++ zhpy-1.7.3.1/debian/README.Debian @@ -0,0 +1,43 @@ +Source +------ +http://pypi.python.org/packages/source/z/zhpy/zhpy-1.7.3.1.zip + +1.7.3 (12/7/2009) +----------------- +code name: Justice + +*Changes* + +* Add droid example for Android Scripting Environment +* exclude "tests" folder +* install readline module on Mac + +*Features* + +* Partially Compatible with Android Scripting Environment +* Provide an android.py mockup for desktop development + +*Fixes* + +*Project Updates* +* Move to Mercurial for version control +* NOT TO USE distribute instead of setuptools + +*Contributors* + +Fred Lin, DreamerC + +Examples +-------- +The upstream removes those codes, but you can check out from + + http://code.google.com/p/zhpy/source/browse/examples + +with hg. + +Removed +------- +ez_setup/ +docs/ +tests/ +*txt (exclude README.txt) --- zhpy-1.7.3.1.orig/debian/zhpy.1 +++ zhpy-1.7.3.1/debian/zhpy.1 @@ -0,0 +1,49 @@ +.TH zhpy "1" "Jan 2008" "zhpy 1.7.1" "User Commands" + +.SH NAME +zhpy \- the python language in chinese + +.SH SYNOPSIS + zhpy [\-i | \-p] input [\-o] [output] [\-e] [encoding] [\-v] + +.SH ACCEPT OPTIONS + \-i \-\-input: + speficy the input source + \-o \-\-output: + speficy the output source + \-p \-\-python: + compile to python and run + \-c \-\-cmp: + input raw zhpy source and run + \-e \-\-encoding: + specify the encoding + \-\-info: + zhpy information + \-v \-\-verbose: + show zhpy progress in detail + \-\-tw: + convert python to twpy + \-\-cn: + convert python to cnpy + + interpreter usage: + zhpy [\-\-tw | \-\-cn] + + $ zhpy input.py (.twpy, .cnpy) [arguments] + $ zhpy \-i input.py (.twpy, .cnpy) + $ zhpy \-i input.py \-o output.py (.twpy, .cnpy) + $ zhpy \-p input.py + + script usage: + zhpy [\-c] source [\-e] [encoding] [\-v] + + converter usage: + zhpy [\-\-tw | \-\-cn] input.py [\-v] + + $ zhpy \-\-tw input.py [\-v] + $ zhpy \-\-cn input.py [\-v] + + +.SH HELP + get more information: + zhpy \-\-info --- zhpy-1.7.3.1.orig/debian/patches/remove_chardet.patch +++ zhpy-1.7.3.1/debian/patches/remove_chardet.patch @@ -0,0 +1,11 @@ +--- zhpy-1.7.3.1~/setup.py 2009-12-08 14:05:38.000000000 +0800 ++++ zhpy-1.7.3.1/setup.py 2010-01-14 03:00:37.000000000 +0800 +@@ -15,7 +15,7 @@ + + # setup params + # it's possible to remove chardet dependency while porting +-required_modules = ["chardet >=1.0.1"] ++required_modules = [] + #if mac, install readline + #if(sys.platform=="darwin"): + # required_modules.append("readline >= 2.6.4") --- zhpy-1.7.3.1.orig/debian/patches/disable_ez_setup.patch +++ zhpy-1.7.3.1/debian/patches/disable_ez_setup.patch @@ -0,0 +1,13 @@ +--- setup.py.old 2008-02-21 00:15:27.000000000 +0800 ++++ setup.py 2008-02-21 00:14:51.000000000 +0800 +@@ -1,8 +1,8 @@ + try: + from setuptools import setup, find_packages + except ImportError: +- from ez_setup import use_setuptools +- use_setuptools() ++# from ez_setup import use_setuptools ++# use_setuptools() + from setuptools import setup, find_packages + + from pkg_resources import DistributionNotFound