From 3b5146a7b8cea21a65342528da64e2dab73aa98c Mon Sep 17 00:00:00 2001 From: Adrian Heine Date: Mon, 8 Apr 2024 12:05:14 +0200 Subject: [PATCH] Init --- debian/changelog | 5 +++++ debian/clean | 1 + debian/control | 23 +++++++++++++++++++++ debian/copyright | 30 ++++++++++++++++++++++++++++ debian/files | 2 ++ debian/patches/series | 1 + debian/patches/test_twisted | 40 +++++++++++++++++++++++++++++++++++++ debian/rules | 6 ++++++ debian/source/format | 1 + debian/upstream/metadata | 6 ++++++ debian/watch | 5 +++++ 11 files changed, 120 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/clean create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/files create mode 100644 debian/patches/series create mode 100644 debian/patches/test_twisted create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d214790 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-pyamf (0.8.11+git2fe5a4a52c4c-1) UNRELEASED; urgency=medium + + * Initial release. + + -- Adrian Heine > Mon, 08 Apr 2024 10:20:19 +0200 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..9d9417e --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +Py3AMF.egg-info/ diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..d02b1d7 --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: python-pyamf +Section: python +Priority: optional +Maintainer: Adrian Heine +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), + dh-python, + python3-all, + python3-defusedxml, + python3-zope.interface +Standards-Version: 4.6.2 +Homepage: https://github.com/StdCarrot/Py3AMF +Vcs-Browser: https://git.adrianheine.de/adrian/python-pamf +Vcs-Git: https://git.adrianheine.de/adrian/python-pamf.git + +Package: python3-pyamf +Architecture: all +Depends: + ${misc:Depends}, + ${python3:Depends}, + python3-defusedxml +Description: Fork of PyAMF to support Python3 diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..471cfd1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,30 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Py3AMF + +Files: + * +Copyright: + 2017 StdCarrot + 2007-2010 The PyAMF Project. +License: Expat + +Files: + debian/* +Copyright: + 2024 Adrian Heine > +License: GPL-2+ + 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 2 of the License, or + (at your option) any later version. + . + This package 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. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see +Comment: + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..13b8ed1 --- /dev/null +++ b/debian/files @@ -0,0 +1,2 @@ +python-pyamf_0.8.11+git2fe5a4a52c4c-1_amd64.buildinfo python optional +python3-pyamf_0.8.11+git2fe5a4a52c4c-1_all.deb python optional diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..62285a4 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +test_twisted diff --git a/debian/patches/test_twisted b/debian/patches/test_twisted new file mode 100644 index 0000000..781970c --- /dev/null +++ b/debian/patches/test_twisted @@ -0,0 +1,40 @@ +Index: python-pyamf-0.8.11~git2fe5a4a52c4c/pyamf/tests/gateway/test_twisted.py +=================================================================== +--- python-pyamf-0.8.11~git2fe5a4a52c4c.orig/pyamf/tests/gateway/test_twisted.py ++++ python-pyamf-0.8.11~git2fe5a4a52c4c/pyamf/tests/gateway/test_twisted.py +@@ -31,21 +31,22 @@ from pyamf.remoting import gateway + from pyamf.flex import messaging + + +-@implementer(IBodyProducer) +-class BytesProducer(object): +- def __init__(self, body): +- self.body = body +- self.length = len(body) +- +- def startProducing(self, consumer): +- consumer.write(self.body) +- return succeed(None) ++if twisted: ++ @implementer(IBodyProducer) ++ class BytesProducer(object): ++ def __init__(self, body): ++ self.body = body ++ self.length = len(body) ++ ++ def startProducing(self, consumer): ++ consumer.write(self.body) ++ return succeed(None) + +- def pauseProducing(self): +- pass ++ def pauseProducing(self): ++ pass + +- def stopProducing(self): +- pass ++ def stopProducing(self): ++ pass + + + class TestService(object): diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..1a55a21 --- /dev/null +++ b/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=pyamf + +%: + dh $@ --with python3 --buildsystem=pybuild diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..2433a02 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,6 @@ +Bug-Database: https://github.com/StdCarrot/Py3AMF/issues +Bug-Submit: https://github.com/StdCarrot/Py3AMF/issues/new +Changelog: https://github.com/StdCarrot/Py3AMF/blob/master/CHANGES +Documentation: https://github.com/StdCarrot/Py3AMF/wiki +Repository-Browse: https://github.com/StdCarrot/Py3AMF +Repository: https://github.com/StdCarrot/Py3AMF.git diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..69af6ad --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +version=4 + +opts="filenamemangle=s%(?:.*?)?v?(@ANY_VERSION@@ARCHIVE_EXT@)%@PACKAGE@-$1%" \ + https://github.com/StdCarrot/Py3AMF/tags \ + (?:.*?/)v?@ANY_VERSION@@ARCHIVE_EXT@