Adrian Heine 4 weeks ago
commit
3b5146a7b8
  1. 5
      debian/changelog
  2. 1
      debian/clean
  3. 23
      debian/control
  4. 30
      debian/copyright
  5. 2
      debian/files
  6. 1
      debian/patches/series
  7. 40
      debian/patches/test_twisted
  8. 6
      debian/rules
  9. 1
      debian/source/format
  10. 6
      debian/upstream/metadata
  11. 5
      debian/watch

5
debian/changelog

@ -0,0 +1,5 @@
python-pyamf (0.8.11+git2fe5a4a52c4c-1) UNRELEASED; urgency=medium
* Initial release.
-- Adrian Heine <Adrian Heine <mail@adrianheine.de>> Mon, 08 Apr 2024 10:20:19 +0200

1
debian/clean

@ -0,0 +1 @@
Py3AMF.egg-info/

23
debian/control

@ -0,0 +1,23 @@
Source: python-pyamf
Section: python
Priority: optional
Maintainer: Adrian Heine <debian@adrianheine.de>
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

30
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 <Adrian Heine <mail@adrianheine.de>>
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 <https://www.gnu.org/licenses/>
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".

2
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

1
debian/patches/series

@ -0,0 +1 @@
test_twisted

40
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):

6
debian/rules

@ -0,0 +1,6 @@
#!/usr/bin/make -f
export PYBUILD_NAME=pyamf
%:
dh $@ --with python3 --buildsystem=pybuild

1
debian/source/format

@ -0,0 +1 @@
3.0 (quilt)

6
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

5
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@
Loading…
Cancel
Save