[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-devel:18253] py3cairo 更新
- From: Koichi Akabe <vbkaisetsu@xxxxxxxxx>
- Subject: [debian-devel:18253] py3cairo 更新
- Date: Thu, 12 Apr 2012 22:44:43 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type; bh=HE/PZu+hxM3QYNKaVnBPDf0JTQNCyG4RCBbil/cFbQs=; b=pjFlExm0CyYk4aVoPaUbPqE9j5J/NFxmQpa4Od7Wxknqc9Hcv6yCJ0W+FYH02DklnO OpN4UzF+kk2vuiJPXXX2JlEL2YWYWMp8hqLtWT9DjDJrqH1P1YKcTSlOyHWgdEbHWo5O PNfKl+vVCSrZiudNUk8PNsGzHxPKKMK/muNagGNZv5oW6gwzBzcMlAWpK6ao82dfeCwa iypTOk4EgAhrGdHD7cv5fKDSWfChhTSzuSYdUOkeVBk+Rur4rKrixtJj4p2mXACfmkNx wMtHcqF4tPYKiMNTXht523ysHWk+E+W1WKaRXcx7dPg5jyfiV5cGvYFTj3QgzPj18mYE SocQ==
- List-help: <mailto:debian-devel-ctl@debian.or.jp?body=help>
- List-id: debian-devel.debian.or.jp
- List-owner: <mailto:debian-devel-admin@debian.or.jp>
- List-post: <mailto:debian-devel@debian.or.jp>
- List-software: fml [fml 4.0.3 release (20011202/4.0.3)]
- List-unsubscribe: <mailto:debian-devel-ctl@debian.or.jp?body=unsubscribe>
- X-ml-info: If you have a question, send e-mail with the body "help" (without quotes) to the address debian-devel-ctl@debian.or.jp; help=<mailto:debian-devel-ctl@debian.or.jp?body=help>
- X-ml-name: debian-devel
- X-mlserver: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post)
- X-original-to: debian-devel-dist@debian.or.jp
- X-spam-checker-version: SpamAssassin 3.2.5 (2008-06-10) on osdn.debian.or.jp
- X-spam-level:
- X-spam-status: No, score=-3.4 required=10.0 tests=KI,RCVD_IN_DNSWL_LOW autolearn=disabled version=3.2.5
- Message-id: <20120412224454.728a5234e8aba5059533985c@xxxxxxxxx>
- X-mail-count: 18253
- X-mailer: Sylpheed 3.2.0beta6 (GTK+ 2.24.10; i486-pc-linux-gnu)
こんにちは。あかべです。
py3cairo パッケージを更新したので、アップロードお願いします。
http://mentors.debian.net/debian/pool/main/p/py3cairo/py3cairo_1.10.0+dfsg-2.dsc
変更点は、 python3-pytest パッケージのリリースに伴い、 py3cairo に含まれていたテストツールを実行するようにしたことです。テストの実行には py.test-3 コマンドを使用しています。本来であれば、すべての Python バージョンに対してテストをするために、ここではマイナーバージョンが付いた py.test-3.2 を実行する必要があると思いますが、現在 py.test-3.2 コマンドが正しく動作しないことと、現状 Python 3 系は 3.2 しか存在しないことを踏まえ、 py.test-3 を実行するようにしました。 py.test-3.2 が正しく動作しないことはバグ報告しておきました。[1]
1.10.0+dfsg-1 からの差分を添付したので、確認お願いします。
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668519
--
Koichi Akabe
vbkaisetsu at {gmail.com, debian.or.jp}
diff -Nru py3cairo-1.10.0+dfsg/debian/changelog py3cairo-1.10.0+dfsg/debian/changelog
--- py3cairo-1.10.0+dfsg/debian/changelog 2012-04-05 23:35:05.000000000 +0900
+++ py3cairo-1.10.0+dfsg/debian/changelog 2012-04-12 21:02:00.000000000 +0900
@@ -1,3 +1,14 @@
+py3cairo (1.10.0+dfsg-2) unstable; urgency=low
+
+ * debian/rules
+ - use py.test-3 to run test suite.
+ * debian/patches/10_test-target-py3.patch
+ - add to change py.test script to use all versions of Python 3
+ * debian/control
+ - add build-depends: python3-pytest
+
+ -- Koichi Akabe <vbkaisetsu@xxxxxxxxx> Thu, 12 Apr 2012 19:00:59 +0900
+
py3cairo (1.10.0+dfsg-1) unstable; urgency=low
* Initial release. (Closes: #662957)
diff -Nru py3cairo-1.10.0+dfsg/debian/control py3cairo-1.10.0+dfsg/debian/control
--- py3cairo-1.10.0+dfsg/debian/control 2012-04-05 23:50:07.000000000 +0900
+++ py3cairo-1.10.0+dfsg/debian/control 2012-04-12 17:41:28.000000000 +0900
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Uploaders: Koichi Akabe <vbkaisetsu@xxxxxxxxx>
-Build-Depends: debhelper (>= 7.0.50~), python3-all-dev (>= 3.1), libcairo2-dev (>= 1.10.0), python-sphinx (>= 1.0.7+dfsg) | python3-sphinx
+Build-Depends: debhelper (>= 7.0.50~), python3-all-dev (>= 3.1), libcairo2-dev (>= 1.10.0), python-sphinx (>= 1.0.7+dfsg) | python3-sphinx, python3-pytest
Standards-Version: 3.9.3
Homepage: http://cairographics.org/pycairo/
X-Python3-Version: >= 3.1
diff -Nru py3cairo-1.10.0+dfsg/debian/patches/10_test-target-py3.patch py3cairo-1.10.0+dfsg/debian/patches/10_test-target-py3.patch
--- py3cairo-1.10.0+dfsg/debian/patches/10_test-target-py3.patch 1970-01-01 09:00:00.000000000 +0900
+++ py3cairo-1.10.0+dfsg/debian/patches/10_test-target-py3.patch 2012-04-12 21:02:02.000000000 +0900
@@ -0,0 +1,18 @@
+Description: Use all versions for py.test
+ This patch changes py.test script to use all versions of Python 3 command
+ instead of python.
+Author: Koichi Akabe <vbkaisetsu@xxxxxxxxx>
+Last-Update: <2012-04-12>
+
+--- py3cairo-1.10.0+dfsg.orig/test/examples_test.py
++++ py3cairo-1.10.0+dfsg/test/examples_test.py
+@@ -14,7 +14,8 @@ def test_snippets():
+ examples/cairo_snippets/snippets/
+ '''
+ def doSnippets(name):
+- retcode = subprocess.call('python %s -s' % name, shell=True)
++ import sys
++ retcode = subprocess.call('PYTHONPATH=../../test python%s %s -s' % (sys.argv[0].split('-')[1], name), shell=True)
+ assert retcode == 0, 'Error: retcode == {0}'.format(retcode)
+
+ os.chdir(os.path.join(os.path.dirname(__file__), '..', 'examples',
diff -Nru py3cairo-1.10.0+dfsg/debian/patches/series py3cairo-1.10.0+dfsg/debian/patches/series
--- py3cairo-1.10.0+dfsg/debian/patches/series 1970-01-01 09:00:00.000000000 +0900
+++ py3cairo-1.10.0+dfsg/debian/patches/series 2012-04-12 21:44:02.000000000 +0900
@@ -0,0 +1 @@
+10_test-target-py3.patch
diff -Nru py3cairo-1.10.0+dfsg/debian/rules py3cairo-1.10.0+dfsg/debian/rules
--- py3cairo-1.10.0+dfsg/debian/rules 2012-04-06 00:10:47.000000000 +0900
+++ py3cairo-1.10.0+dfsg/debian/rules 2012-04-12 21:43:10.000000000 +0900
@@ -33,10 +33,15 @@
override_dh_clean:
dh_clean
for pyversion in $(shell py3versions -vr); do rm -rf build$$pyversion; done
- rm -rf build-dbg .waf* .lock* doc/_build `find . -name "__pycache__"` `find waflib -name "*.pyc"`
+ rm -rf .waf* .lock* doc/_build test/cairo `find . -name "__pycache__"` `find waflib -name "*.pyc"` `find examples -name "*.pdf" -o -name "*.png" -o -name "*.ps" -o -name "*.svg"`
override_dh_compress:
dh_compress -X.js -X.inv
override_dh_sphinxdoc:
(test -d $(CURDIR)/debian/python3-cairo-doc && dh_sphinxdoc) || /bin/true
+
+override_dh_auto_test:
+ mkdir $(CURDIR)/test/cairo
+ ln -s $(CURDIR)/src/__init__.py $(CURDIR)/test/cairo/__init__.py
+ for pyversion in $(shell py3versions -vr); do ln -sf $(CURDIR)/build$$pyversion/src/*.so $(CURDIR)/test/cairo; cd $(CURDIR)/test && py.test-3; done