debian/0000775000000000000000000000000012253657430007177 5ustar debian/changelog0000664000000000000000000005743312253657430011065 0ustar twisted-py3 (13.2.0-0ubuntu1) trusty; urgency=medium * New upstream release. -- Barry Warsaw Mon, 16 Dec 2013 15:07:34 -0500 twisted-py3 (13.0.0-0ubuntu2) raring; urgency=low * Don't include python.mk. -- Matthias Klose Thu, 04 Apr 2013 11:18:53 +0200 twisted-py3 (13.0.0-0ubuntu1) raring; urgency=low * Build a python3-twisted-experimental package. -- Matthias Klose Thu, 04 Apr 2013 10:26:18 +0200 twisted (12.3.0-1ubuntu6) raring; urgency=low * Stop building the python3 packages (will be built from a separate source until the python3 support is complete). -- Matthias Klose Thu, 04 Apr 2013 10:14:52 +0200 twisted (12.3.0-1ubuntu5) raring; urgency=low * debian/patches/lp1098127.diff: - Use new io_add_watch api on new versions of pygobject. (LP: #1098127) -- Rodney Dawes Thu, 14 Mar 2013 17:24:59 -0400 twisted (12.3.0-1ubuntu4) raring; urgency=low * debian/patches/lp1102685.diff: - Try to use plain pygtkcompat and fall back to gi.pygtkcompat, to avoid a DeprecationWarning, and a crash. (LP: #1102685) -- Rodney Dawes Wed, 23 Jan 2013 12:19:06 -0500 twisted (12.3.0-1ubuntu3) raring; urgency=low * Explicitly call 2to3 to build the py3k source. -- Matthias Klose Wed, 23 Jan 2013 11:41:25 +0100 twisted (12.3.0-1ubuntu2) raring; urgency=low * Port Py_InitModule* calls to PyModule_Create for python3. -- Adam Conrad Mon, 21 Jan 2013 13:43:44 -0700 twisted (12.3.0-1ubuntu1) raring; urgency=low * Build python3 packages. * Add '3' as the suffix for the binaries using python3. -- Matthias Klose Wed, 16 Jan 2013 17:44:26 +0100 twisted (12.3.0-1) experimental; urgency=low * New upstream release * Bump python-zope.interface dependency to 3.6 * Bump Standards-Version to 3.9.4 * Install _initgroups.so only on Python <= 2.6 * Drop packaging tweaks for Python < 2.6 -- Free Ekanayaka Wed, 02 Jan 2013 15:15:18 +0100 twisted (12.2.0-1) experimental; urgency=low * New upstream version * Drop the _epoll.so C extension, as Twisted now supports only Python >= 2.6 and there's stdlib support for epoll since 2.6 * Add sendmsg.so C extension to python-twisted-bin -- Free Ekanayaka Tue, 11 Sep 2012 10:06:25 +0200 twisted (12.0.0-1) sid; urgency=low * New upstream version. * Add watch file * Bump Standards-Version -- Free Ekanayaka Tue, 17 Apr 2012 15:36:37 +0200 twisted (11.1.0-1) unstable; urgency=low * New upstream version. * Drop suggestions on python-wxgtk2.6 and python-profiler. * Fix lintian warnings. -- Matthias Klose Wed, 21 Dec 2011 12:29:38 +0100 twisted (11.0.0-2) unstable; urgency=low * python-twisted depends on version >= 11.0 of other packages. -- Matthias Klose Fri, 22 Apr 2011 12:02:59 +0200 twisted (11.0.0-1) unstable; urgency=low * New upstream version. -- Matthias Klose Sun, 17 Apr 2011 20:11:48 +0200 twisted (10.2.0-1) unstable; urgency=low * New upstream version. -- Matthias Klose Thu, 24 Feb 2011 04:47:56 +0100 twisted (10.1.0-3) unstable; urgency=low * Tighten build dependency to build with a fixed dh_python2. Closes: #592410. -- Matthias Klose Wed, 18 Aug 2010 11:42:19 +0200 twisted (10.1.0-2) unstable; urgency=low * Remove all plugin cache files before rebuilding the cache files for the installed python versions. * python-twisted: Depend on the 10.1 versions of the twisted packages. * Remove the plugin cache files when package is removed, not only if it is purged. -- Matthias Klose Sun, 25 Jul 2010 15:56:17 +0200 twisted (10.1.0-1) unstable; urgency=low * New upstream version. * Build using dh_python2 instead of dh_pycentral. -- Matthias Klose Sat, 17 Jul 2010 16:11:21 +0200 twisted (10.0.0-3) unstable; urgency=low * Add a trigger `twisted-plugins-cache' to rebuild the plugins cache. -- Matthias Klose Tue, 30 Mar 2010 17:55:15 +0200 twisted (10.0.0-2) unstable; urgency=low * Include changes from 9.0.0-2 which got skipped * python-twisted depends on version >= 10.0 of other packages -- Free Ekanayaka Tue, 09 Mar 2010 13:32:00 +0100 twisted (10.0.0-1) unstable; urgency=low * New upstream version. * Add myself as uploader. * Bump standards version to 3.8.4 -- Free Ekanayaka Mon, 08 Mar 2010 12:32:45 +0100 twisted (9.0.0-2) unstable; urgency=low * Suppress output on stderr in postrm. Closes: #566395. * Don't recommend twisted-doc-api. Closes: #566913. -- Matthias Klose Wed, 03 Feb 2010 02:14:52 +0100 twisted (9.0.0-1) unstable; urgency=low * python-twisted: Depend on the python-twisted-* 9.0 packages. * python-twisted: Depend on python-zope.interface only. Closes: #557781. -- Matthias Klose Sat, 02 Jan 2010 19:38:17 +0100 twisted (9.0.0-0) unstable; urgency=low * New upstream version. * tap2deb: Use date -R instead of 822-date. Closes: #550565. -- Matthias Klose Sat, 02 Jan 2010 18:46:39 +0100 twisted (8.2.0-3) unstable; urgency=low * Depend on the standalone python-zope.interface{,-dbg} packages. Closes: #543132, #542932. * Remove plugins directory on purge. Closes: #527897. * Fix some lintian warnings. -- Matthias Klose Tue, 25 Aug 2009 20:36:00 +0200 twisted (8.2.0-2) unstable; urgency=low * python-twisted-core: Regenerate the plugin cache as the last action in the postinst. Closes: #521663. LP: #361865. * Avoid md5/sha1 deprecation warnings. LP: #344782. -- Matthias Klose Sat, 18 Apr 2009 13:54:12 +0200 twisted (8.2.0-1) unstable; urgency=low * Upload to unstable. -- Matthias Klose Sat, 21 Feb 2009 12:15:25 +0100 twisted (8.2.0-0.1) unstable; urgency=low * New upstream version. -- Esteve Fernandez Sat, 31 Jan 2009 14:40:47 +0100 twisted (8.1.0-4) unstable; urgency=low * Move the cache update from python-twisted into python-twisted-core. Closes: #500942. Plugins should update the cache on package install (postinst) and removal (postrm remove) by updating the cache. See the postinst script of python-twisted-core how to update the cache. * Fix PortableGtkReactor (now able to run trial test suite with the gtk2 reactor). Closes: #499311. * Don't install twisted/test/generator_failure_tests.py, syntax errors with python2.4. Closes: #492830. * Fix manhole to work with python-gtk2 (>= 2.10). Closes: #469105. * mktap(1) description of options fixed in an earlier version. Closes: #278194. * mktap news fixed in an earlier version. Closes: #278196. * Fix build failure on GNU/kFreeBSD (Petr Salinger). Closes: #490770. -- Matthias Klose Fri, 10 Oct 2008 21:22:21 +0200 twisted (8.1.0-3) unstable; urgency=low * Do not include twisted/plugins/dropin.cache, but generate it on configure, remove it on package removal. Closes: #489976. * twisted plugins have to update that cache on installation and removal. See the python-twisted-core postinst how to do so. -- Matthias Klose Fri, 11 Jul 2008 14:41:43 +0200 twisted (8.1.0-2) unstable; urgency=low * python-twisted-core: Include twisted/plugins/dropin.cache, Closes: #477103. * tap2deb.py: Fix some dependency names and names of binaries. Closes: #440454. LP: #120453. * python-twisted: Tighten dependencies. -- Matthias Klose Tue, 08 Jul 2008 16:34:14 +0200 twisted (8.1.0-1) unstable; urgency=low * New upstream version. * python-twisted: Add an egg-info file. Closes: #477384. -- Matthias Klose Wed, 28 May 2008 23:06:45 +0200 twisted (8.0.1-2) unstable; urgency=low * twisted/scripts/tap2deb.py: Create dependency on python-twisted. -- Matthias Klose Wed, 09 Apr 2008 15:37:36 +0000 twisted (8.0.1-1) unstable; urgency=low * New upstream version. * Disable building the empty twisted-doc-api package. Closes: #313334. -- Matthias Klose Sun, 30 Mar 2008 21:02:28 +0200 twisted (2.5.0-2) unstable; urgency=low * python-twisted-core: Suggest python-wxgtk2.8 as an alternative. -- Matthias Klose Thu, 07 Jun 2007 07:14:49 +0200 twisted (2.5.0-1) unstable; urgency=low * New upstream version, compatible with python2.5. * Merge from Ubuntu: - Build a python-twisted-dbg package. - Bump debhelper compatibility to v5. - Tighten dependencies of the python-twisted package. -- Matthias Klose Sun, 20 May 2007 19:29:53 +0200 twisted (2.4.0-3) unstable; urgency=medium * twisted/python/versions.py: Update to work with subversion 1.4. Closes: #405141. * python-twisted-core: Don't suggest python-wxgtk2.4 anymore. Closes: #391994. -- Matthias Klose Mon, 8 Jan 2007 00:01:04 +0100 twisted (2.4.0-2) unstable; urgency=high * python-twisted-core: Depend on python-twisted-bin. -- Matthias Klose Sun, 9 Jul 2006 12:04:18 +0000 twisted (2.4.0-1) unstable; urgency=low * New upstream version. * Convert packaging to use python-central (closes: #373392). * python-twisted-core: Do not suggest python-glade-1.2 (closes: #368514). * python-twisted.menu: Add python-tk as a required package for tkmtap. -- Matthias Klose Wed, 14 Jun 2006 03:45:29 +0200 twisted (2.2.0-2) unstable; urgency=low * Fix classname in python/dispatch.py (closes: #359225). * Fix spelling errors in man pages (closes: #355227). * Drop conflicts on packages not tested with twisted >= 2.0 (closes: #359179). -- Matthias Klose Fri, 14 Apr 2006 23:25:37 +0000 twisted (2.2.0-1) unstable; urgency=low * New upstream version. -- Matthias Klose Wed, 22 Feb 2006 08:28:04 +0100 twisted (2.1.0-4) unstable; urgency=low * Fix typo in versioned dependencies on *-conch packages (closes: #349627). * Fix location of the core documentation in the doc-base file. Closes: #349627. -- Matthias Klose Thu, 2 Feb 2006 15:39:10 +0000 twisted (2.1.0-3) unstable; urgency=low * Rename python-twisted to python-twisted-core; python-twisted is now a transitional package, depending on python-twisted-core and all twisted modules, which were split out into separate packages. -- Matthias Klose Wed, 25 Jan 2006 17:56:16 +0100 twisted (2.1.0-2) unstable; urgency=low * debian/copyright: Include copyright for python 2.3; some 2.3 files are included in the upstream tarball, but not in the binary packages. -- Matthias Klose Mon, 16 Jan 2006 19:59:05 +0100 twisted (2.1.0-1) unstable; urgency=low * New upstream version. -- Matthias Klose Sun, 15 Jan 2006 22:07:22 +0000 twisted (2.0.1-4) unstable; urgency=low * Fix doc symlinks (closes: #313313). * Remove conflict with supyb, requested by the supyb maintainer. * Suggest python-wxgtk2.4 | python-wxgtk2.6. * Fix man page symlinks (closes: #326021, #314508, #315307, #323551). * Fix location of the tutorial in the doc-base file (closes: #318167). * python-twisted: Add dependency on python-soappy (closes: #317290). -- Matthias Klose Thu, 1 Sep 2005 15:49:29 +0200 twisted (2.0.1-3) unstable; urgency=low * Drop python2.2 packages, build python2.4 packages. -- Matthias Klose Sun, 12 Jun 2005 19:05:59 +0200 twisted (2.0.1-2) unstable; urgency=low * Reupload as -2, -1 is sticking in the NEW queue from a hijack attempt. -- Matthias Klose Sun, 12 Jun 2005 18:41:05 +0200 twisted (2.0.1-1) unstable; urgency=low * New upstream version, built from the sumo tarball. * (Build-)depend on zope-interface. * Explicitely conflict with all current packages depending on python-twisted and python-twisted-conch. Please check for compatibility first. * Do provide menu entries for the default version only. * Empty twisted-doc-api package at the moment. * Use debhelper for the packaging. * Change priority to optional. -- Matthias Klose Sun, 12 Jun 2005 14:52:40 +0200 twisted (1.3.0-8) unstable; urgency=low * Fix the fix in gtk2reactor. -- Matthias Klose Fri, 11 Feb 2005 14:45:43 +0100 twisted (1.3.0-7) unstable; urgency=low * Conditionally import the profile module (closes: #294493). * Add suggestions to the python-profiler package. * Suppress gtk2 user warning in gtk2reactor (closes: #291310). -- Matthias Klose Thu, 10 Feb 2005 13:12:20 +0100 twisted (1.3.0-6) unstable; urgency=medium * Fix two bad mail-related bugs, which are really harmful for the scalemail application (Tommi Virtanen): - insufficient error handling in mail delivery, causing mail loss (fixed by r12036) - unable to send mail from <> (fixed by r12767, which broke receiving mail from <>, which is fixed in r12858). Closes: #289993. -- Matthias Klose Sat, 15 Jan 2005 23:49:03 +0100 twisted (1.3.0-5) unstable; urgency=low * Fix memory leak in _c_urlarg.c (closes: #284818). * python2.3-twisted: Add python-glade-1.2 python-gtk-1.2 suggests. Closes: #283238. -- Matthias Klose Mon, 20 Dec 2004 19:23:11 +0100 twisted (1.3.0-4) unstable; urgency=low * Fix package recommendations. * twisted/xish/domish.py: Add fixes for jabber protocol implementation. Alexandre Fayolle. Closes: #273141. -- Matthias Klose Wed, 6 Oct 2004 08:06:47 +0200 twisted (1.3.0-3) unstable; urgency=medium * twisted-doc-api: Add link to docs (closes: #255888). * twisted-doc: Rename examples/xindex.html (closes: #255887). * twisted-doc: Include the Twisted tutorial (closes: #256598). * Install the PDF version of the Twisted Book, not the PostScript version. * python-twisted: Recommend the python-serial package. * Fix nmea protocol failing when checksums turned off (closes: #243136). * Add support for bool types in Twisted Serialize module (python2.3 only). Closes: #217053. -- Matthias Klose Sun, 29 Aug 2004 15:31:36 +0200 twisted (1.3.0-2) unstable; urgency=low * Fix links in twisted-doc's index.html (closes: #255548). -- Matthias Klose Mon, 21 Jun 2004 22:01:11 +0200 twisted (1.3.0-1) unstable; urgency=low * New upstream version. * Hijacking the package. See http://lists.debian.org/debian-qa/2004/06/msg00070.html. * Fix doc-base file (closes: #220698, #220699). * html files are included as .html, not .xhtml (closes: #192600). * Make package descriptions more verbose (closes: #209816). * Fix some lintian errors. -- Matthias Klose Sat, 19 Jun 2004 00:54:55 +0200 twisted (1.2.0-1.1) unstable; urgency=low * NMU. * Fix suggestions and recommendations: - Make python-pyopenssl, python-pam recommendations. - Make python-tk, python-gtk2, python-glade2, python-qt3, libwxgtk2.4-python suggestions. Closes: #240564. * python-twisted-conch: Depend on python2.3-twisted-conch. * Use Debian's way importing gtk2: - doc/examples/pbgtk2.py - twisted/spread/ui/gtk2util.py * The Debian package provided upstream isn't a big help, as it's just an outdated copy of the Debian package :-( -- Matthias Klose Sat, 17 Apr 2004 14:25:26 +0200 twisted (1.2.0-1) unstable; urgency=low * New upstream version (closes: #211102). -- Matthias Klose Thu, 26 Feb 2004 07:05:22 +0100 twisted (1.1.2-1) unstable; urgency=low * New upstream version -- Moshe Zadka Thu, 18 Feb 2004 12:03:02 -0500 twisted (1.1.1-1) unstable; urgency=low * New upstream version -- Moshe Zadka Thu, 15 Jan 2004 12:03:02 -0500 twisted (1.1.0-1) unstable; urgency=low * New upstream version -- Moshe Zadka Thu, 21 Nov 2003 14:56:54 -0500 twisted (1.0.7-1) unstable; urgency=low * New upstream version -- Moshe Zadka Thu, 17 Sep 2003 00:33:51 -0500 twisted (1.0.6-1) unstable; urgency=low * New upstream version. * NMU (encouraged by maintainer) -- Martin Sjogren Thu, 3 Jul 2003 07:45:27 +0200 twisted (1.0.5-1) unstable; urgency=low * New upstream version * Remove Python 2.1 packages -- upstream no longer supports 2.1 -- Moshe Zadka Thu, 1 May 2003 09:06:49 +0300 twisted (1.0.4-1) unstable; urgency=low * New upstream version -- Moshe Zadka Fri, 18 Apr 2003 03:46:22 +0000 twisted (1.0.3-1) unstable; urgency=low * Split out conch * This allows us to have conch properly depend on python-crypto * Documentation improvements * Installing xhtml versions of everything * Distributing ps and pdf versions of book * doc-base support * Split out doc-api * It's HUGE and many people don't need it (since it is available on the web) -- Moshe Zadka Tue, 12 Nov 2002 02:59:56 -0600 twisted (1.0.0-2) unstable; urgency=low * Put api docs in api/ (Closes: #167196) -- Moshe Zadka Thu, 7 Nov 2002 12:27:37 -0600 twisted (1.0.0-1) unstable; urgency=low * New upstream release -- Moshe Zadka Tue, 22 Oct 2002 06:22:49 -0500 twisted (0.99.2-4) unstable; urgency=low * UGH! Python 2.3 distutils bug is back * Working around it -- Moshe Zadka Wed, 2 Oct 2002 12:07:25 +0000 twisted (0.99.2-3) unstable; urgency=low * Adding "/usr/bin/python" to build dependencies. -- Moshe Zadka Mon, 30 Sep 2002 15:46:56 +0000 twisted (0.99.2-2) unstable; urgency=low * Enabling Python 2.3 support -- Moshe Zadka Fri, 27 Sep 2002 10:49:43 -0500 twisted (0.99.2-1) unstable; urgency=low * New upstream * Fixed build dependencies (Closes: #159258) -- Moshe Zadka Mon, 23 Sep 2002 08:56:05 -0500 twisted (0.99.0-1) unstable; urgency=low * New upstream version. * Packaging changes: * "Twisted" is now a package, to facilitate upgrades from woody (there are verioned depends:) * New package: twisted-quotes -- quotes collected by the Twisted release team -- Moshe Zadka Thu, 29 Aug 2002 08:05:38 -0500 twisted (0.19.0-2) unstable; urgency=low * Gagh, make python2.2-twisted any, not all. -- Moshe Zadka Wed, 31 Jul 2002 02:25:23 -0500 twisted (0.19.0-1) unstable; urgency=low * New upstream release * Debian packaging changes: * split python2.x-twisted into python2.x-twisted and python2.x-twisted-bin * unfortunately, because of distutils mind boggling stupidity, it will do most of the work for building the arch-independant utilities when building the c module * fortunately, twisted will now take up much less room in the archive -- Moshe Zadka Wed, 19 Jun 2002 18:01:50 +0300 twisted (0.18.0-2) unstable; urgency=low * The "Aaaaarrrgghhh, I'm stupid release" * debian/control: python2.1-twisted needs to Conflict:/Replace: twisted too -- Moshe Zadka Tue, 18 Jun 2002 20:22:08 +0300 twisted (0.18.0-1) unstable; urgency=low * New upstream release * Lots of debian changes: * building python2.1-twisted, python2.2-twisted * python-twisted depends on python2.1-twisted * menu support for t-im and manhole enabled * Removed debelper * Added debian/scripts/ directory with helper scripts * This will (hopefully) mean support python2.3 will be easy * Upstream fixed tcp client (Closes: #142789) -- Moshe Zadka Tue, 28 May 2002 12:35:35 +0300 twisted (0.17.3-1) unstable; urgency=low * New upstream release -- Moshe Zadka Fri, 19 Apr 2002 02:55:43 -0500 twisted (0.17.0-1) unstable; urgency=low * New upstream release * Now building two packages -- one for the code, one for the docs + If you want the docs, install twisted-docs too + Feedback is encouraged about whether a 2.2-supporting version is needed -- Moshe Zadka Thu, 14 Mar 2002 07:24:07 +0200 twisted (0.15.5-1) unstable; urgency=low * New upstream release -- Moshe Zadka Fri, 8 Mar 2002 07:14:16 +0200 twisted (0.15.4-1) unstable; urgency=low * New upstream version * Better DNS support -- Moshe Zadka Tue, 5 Mar 2002 13:54:37 +0200 twisted (0.15.3-1) unstable; urgency=low * New upstream release * Fixed stupidproxy bug, where connections weren't closed -- Moshe Zadka Thu, 28 Feb 2002 21:07:28 +0200 twisted (0.15.1-1) unstable; urgency=low * New upstream release -- Moshe Zadka Tue, 12 Feb 2002 20:36:38 +0200 twisted (0.15.0-1) unstable; urgency=low * New upstream release * IM application: many improvements, new GTK+ client * easier to add error callbacks to deferred * SOCKSv4 support * bugs fixed in t.i.tcp * added approveConnection (again ;-) * All non-blocking methods now return deferreds instead of accepting callbacks (hopefully) * low-level protocol changes * New t.web applications and features * Perspective retrieval now async * Enterprise now fixed -- Moshe Zadka Wed, 6 Feb 2002 14:38:38 +0200 twisted (0.13.0-1) unstable; urgency=low * New upstream version * New forum * New config interface * New metrics -- Moshe Zadka Thu, 10 Jan 2002 20:04:30 +0200 twisted (0.12.2-1) unstable; urgency=low * New upstream versions (many bugfixes) -- Moshe Zadka Thu, 29 Nov 2001 08:01:23 +0200 twisted (0.12.1-1) unstable; urgency=low * New upstream version (mainly bugfixes) -- Moshe Zadka Thu, 22 Nov 2001 09:09:14 +0200 twisted (0.12.0-1) unstable; urgency=low * New upstream version * Using Python 2.1 -- Moshe Zadka Wed, 21 Nov 2001 15:17:25 +0200 twisted (0.10.3-1) unstable; urgency=low * New upstream release * twisted.names, resolving internet names * optimizations * works with Jython too -- Moshe Zadka Sun, 30 Sep 2001 23:46:45 +0200 twisted (0.10.2-1) unstable; urgency=low * New upstream release * bug fixes * timeouts for client sockets * Tutorial about plugins * Mail has changed API in an incompatible way -- Moshe Zadka Wed, 12 Sep 2001 23:00:59 +0300 twisted (0.10.1-1) unstable; urgency=low * New upstream release * Massive renaming in prespective broker classes * web proxying * TCP connection forwarding * Lots of new protocols: LDAP, finger and obscure RFCs * --plugin option to twistd * web widgets * twisted.enterprise improved a lot -- Moshe Zadka Fri, 31 Aug 2001 06:49:00 +0300 twisted (0.10.0-1) unstable; urgency=low * New upstream release * Added twisted.tap and twisted.mail to distribution * Added docs about writing new twisted servers * Changed mail API: now, saveMessage gets the SMTP from too * Removed spurious prints from twisted.mail.mail * Possible to relay mail to unknown domains via smart host * tap2deb can create policy compliant Debian packages around .tap's * Fixed debian/rules clean target (closes: Bug#108245) * New arguments to twistd: --python, --no_save * New arguments to mktap: --append * twisted.tcp.Port can now change the size of the backlog from 5 * UDP servers now possible -- Moshe Zadka Thu, 9 Aug 2001 09:37:03 +0300 twisted (0.9.4-1) unstable; urgency=low * Initial Release. (closes: #105843) -- Moshe Zadka Thu, 26 Jul 2001 21:09:53 +0300 debian/rules0000775000000000000000000001303712253650524010260 0ustar #! /usr/bin/make -f SHELL = /bin/bash DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) # all versions PY3VERS := $(shell py3versions -vs) VER3 := $(shell /usr/bin/python3 -c 'import sys; print(sys.version[:3])') gamesdir = debian/twisted-quotes/usr/share/games/fortunes twversion := $(subst twisted-py3,,$(notdir $(CURDIR))) ifeq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS))) with_docs=yes endif with_docs= build: build-stamp build-arch: build-stamp build-indep: build-stamp build-doc build-stamp: $(PY3VERS:%=build3-python%) touch $@ build3-python%: python$* setup3.py build #python$*-dbg setup3.py build touch $@ build-doc: ifeq ($(with_docs),yes) -pydoctor --html-write-function-pages --add-package twisted endif clean: rm -rf *-stamp build-python* build3-python* build-2to3 build rm -rf $(addprefix debian/,$(packages)) debian/files debian/substvars rm -rf _trial_temp test.log rm -rf apidocs py3 find . -name "*.pyc" |xargs -r rm dh_clean install: build-stamp install-prereq $(PY3VERS:%=install3-python%) install-nover install-prereq: build-stamp dh_testdir dh_testroot dh_prep install3-python%: install-prereq : # python3-twisted-core python$* setup3.py install \ --root=$(CURDIR)/debian/python3-twisted-experimental --install-layout=deb -find debian/python3-twisted-experimental -name '*.py[co]' | xargs rm -f -find debian/python3-twisted-experimental -name '__pycache__' | xargs rm -rf ifeq (0,1) rm -rf debian/python3-twisted-core/usr/lib/python$*/*-packages/twisted/python/pymodules : # python3-twisted-bin ifeq ($(DEB_HOST_ARCH_OS), linux) dh_movefiles -ppython3-twisted-bin \ --sourcedir=debian/python3-twisted-core \ $(call py_libdir,$*)/twisted/python/sendmsg.cpython-$(subst .,,$*)m.so \ $(call py_libdir,$*)/twisted/test/raiser.cpython-$(subst .,,$*)m.so else dh_movefiles -ppython3-twisted-bin \ --sourcedir=debian/python3-twisted-core \ $(call py_libdir,$*)/twisted/python/sendmsg.cpython-$(subst .,,$*)m.so \ $(call py_libdir,$*)/twisted/test/raiser.cpython-$(subst .,,$*)m.so endif ifeq (0,1) : # python3-twisted mkdir -p debian/python-twisted/$(call py_libdir,$*) sed 's/@twversion@/$(twversion)/' debian/Twisted.egg-info.in \ > debian/python-twisted/$(call py_libdir,$*)/Twisted-$(twversion).egg-info endif endif mkdir -p debian/python3-twisted-experimental/usr/bin for i in bin/{manhole,*tap*,trial,twistd,pyhtmlizer} bin/{conch,lore,mail}/*; do \ cp $$i debian/python3-twisted-experimental/usr/bin/.; \ done : # Replace all '#!' calls to python with /usr/bin/python3 : # and make them executable for i in `find debian/python3-twisted-* -mindepth 3 -type f`; do \ sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python3\1,' \ $$i > $$i.temp; \ if cmp --quiet $$i $$i.temp; then \ rm -f $$i.temp; \ else \ mv -f $$i.temp $$i; \ chmod 755 $$i; \ echo "fixed interpreter: $$i"; \ fi; \ done ifeq (0,1) : # python-twisted-bin-dbg cd py3 && python$*-dbg setup.py install \ --root=$(CURDIR)/debian/python3-twisted-bin-dbg --no-compile --install-layout=deb find debian/python3-twisted-bin-dbg ! -type d ! -name '*.so' | xargs rm -f find debian/python3-twisted-bin-dbg -depth -empty -exec rmdir {} \; endif install-nover: : # twisted-doc mkdir -p debian/twisted-py3-doc/usr/share/doc/twisted-py3-doc cp -a doc/* debian/twisted-py3-doc/usr/share/doc/twisted-py3-doc/ -find debian/twisted-py3-doc -type d -name man | xargs rm -rf for i in debian/python3-twisted-experimental/usr/bin/*; do \ mv $$i $${i}3; \ done mkdir -p debian/python3-twisted-experimental/usr/share/man/man1 for i in \ doc/*/man/{manhole,*tap*,trial,twistd,pyhtmlizer}.1 \ doc/{conch,lore,mail}/man/*.1; \ do \ i2=$$(basename $$i .1)3.1; \ cp -p $$i debian/python3-twisted-experimental/usr/share/man/man1/$$i2; \ done binary-indep: build-indep install dh_testdir dh_testroot dh_installchangelogs -i dh_installdocs -i ifeq ($(with_docs),yes) cp -ua apidocs debian/twisted-doc/usr/share/doc/twisted-doc/ # Replace links to Twisted website API doc by links to the local doc. We # need to compute path to the API which goes up enough in the folder # hierarchy to access the doc. for i in $$(cd debian/twisted-doc/usr/share/doc/twisted-doc/ && \ grep -rl "http://twistedmatrix.com/documents/$(twversion)/api/" .); do \ path="$$(echo $$i | sed "s:[^/]::g" | sed "s:/:../:g" | cut -c 4-)apidocs/"; \ sed -i "s:http\://twistedmatrix.com/documents/$(twversion)/api/:$$path:g" \ debian/twisted-doc/usr/share/doc/twisted-doc/$$i; \ done endif dh_installmenu -i dh_compress -i -X.py dh_fixperms -i dh_python3 -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary-arch: build-arch install ifeq (0,1) dh_testdir dh_testroot dh_installchangelogs -a dh_installdocs -a dh_installmenu -a dh_strip -ppython-twisted-bin --dbg-package=python-twisted-bin-dbg rm -rf debian/python-twisted-bin-dbg/usr/share/doc/python-twisted-bin-dbg ln -s python-twisted-bin \ debian/python-twisted-bin-dbg/usr/share/doc/python-twisted-bin-dbg ifeq (0,1) dh_strip -ppython3-twisted-bin --dbg-package=python3-twisted-bin-dbg rm -rf debian/python3-twisted-bin-dbg/usr/share/doc/python3-twisted-bin-dbg ln -s python3-twisted-bin \ debian/python3-twisted-bin-dbg/usr/share/doc/python3-twisted-bin-dbg endif dh_compress -a -X.py dh_fixperms -a dh_python2 -a dh_python3 -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a endif binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install install-nover install-prereq debian/python-twisted.menu0000664000000000000000000000051012253650524013060 0ustar ?package(python-twisted,python-gtk2):\ needs="x11"\ section="Applications/Network/Communication"\ title="Manhole Twisted Client"\ command="/usr/bin/manhole" ?package(python-twisted,python-tk):\ needs="x11"\ section="Applications/Network/Communication"\ title="Twisted Application Generator"\ command="/usr/bin/tkmktap" debian/python-twisted-core.postinst0000664000000000000000000000076412253650524014740 0ustar #! /bin/sh set -e #DEBHELPER# rebuild_cache() { # remove all cache files, then rebuild for the installed python versions rm -f /usr/lib/python2.?/*-packages/twisted/plugins/dropin.cache for p in $(pyversions -i); do $p -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' \ >/dev/null 2>&1 || true done } case "$1" in triggered) if [ "$2" = twisted-plugins-cache ]; then rebuild_cache fi ;; configure) rebuild_cache ;; esac exit 0 debian/python-twisted.preinst0000664000000000000000000000017012253650524013602 0ustar #! /bin/sh -e if [ ! -h /usr/share/doc/python-twisted ]; then rm -rf /usr/share/doc/python-twisted fi #DEBHELPER# debian/python3-twisted-core.postinst0000664000000000000000000000076312253650524015022 0ustar #! /bin/sh set -e #DEBHELPER# rebuild_cache() { # remove all cache files, then rebuild for the installed python versions rm -f /usr/lib/python3/*-packages/twisted/plugins/dropin.cache for p in $(py3versions -i); do $p -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' \ >/dev/null 2>&1 || true done } case "$1" in triggered) if [ "$2" = twisted-plugins-cache ]; then rebuild_cache fi ;; configure) rebuild_cache ;; esac exit 0 debian/patches/0000775000000000000000000000000012253650524010623 5ustar debian/patches/lp1098127.diff0000664000000000000000000000215512253650524012647 0ustar Description: Use new io_add_watch api on new versions of pygobject. Bug: https://twistedmatrix.com/trac/ticket/6369 Author: Rodney Dawes === modified file 'twisted/internet/_glibbase.py' --- old/twisted/internet/_glibbase.py 2013-01-16 17:44:26 +0000 +++ new/twisted/internet/_glibbase.py 2013-03-14 21:14:30 +0000 @@ -158,9 +158,17 @@ class GlibReactorBase(posixbase.PosixRea else: fileno = source wrapper = callback - return self._glib.io_add_watch( - fileno, condition, wrapper, - priority=self._glib.PRIORITY_DEFAULT_IDLE) + try: + from gi import version_info as gi_version + except ImportError: + gi_version = (2, 32, 0) + if gi_version < (3, 7, 3): + return self._glib.io_add_watch( + fileno, condition, wrapper, + priority=self._glib.PRIORITY_DEFAULT_IDLE) + else: + return self._glib.io_add_watch( + fileno, self._glib.PRIORITY_DEFAULT, condition, wrapper) def _ioEventCallback(self, source, condition): debian/patches/tap2deb.diff0000664000000000000000000000443312253650524013002 0ustar --- twisted-10.1.0.orig/twisted/scripts/tap2deb.py +++ twisted-10.1.0/twisted/scripts/tap2deb.py @@ -61,7 +61,7 @@ vars()) long_description = config['long_description'] or 'Automatically created by tap2deb' twistd_option = type_dict[config['type']] - date = string.strip(os.popen('822-date').read()) + date = string.strip(os.popen('date -R').read()) directory = deb_file + '-' + version python_version = '%s.%s' % sys.version_info[:2] @@ -102,7 +102,7 @@ [ -r /etc/default/%(deb_file)s ] && . /etc/default/%(deb_file)s -test -x /usr/bin/twistd%(python_version)s || exit 0 +test -x /usr/bin/twistd || exit 0 test -r $file || exit 0 test -r /usr/share/%(deb_file)s/package-installed || exit 0 @@ -110,7 +110,7 @@ case "$1" in start) echo -n "Starting %(deb_file)s: twistd" - start-stop-daemon --start --quiet --exec /usr/bin/twistd%(python_version)s -- \ + start-stop-daemon --start --quiet --exec /usr/bin/twistd -- \ --pidfile=$pidfile \ --rundir=$rundir \ --%(twistd_option)s=$file \ @@ -150,12 +150,14 @@ #!/bin/sh update-rc.d %(deb_file)s defaults >/dev/null invoke-rc.d %(deb_file)s start +#DEBHELPER# ''' % vars()) save_to_file(os.path.join('.build', directory, 'debian', 'prerm'), '''\ #!/bin/sh invoke-rc.d %(deb_file)s stop +#DEBHELPER# ''' % vars()) save_to_file(os.path.join('.build', directory, 'debian', 'postrm'), @@ -182,12 +184,14 @@ Section: net Priority: extra Maintainer: %(maintainer)s -Build-Depends-Indep: debhelper -Standards-Version: 3.5.6 +Build-Depends-Indep: debhelper, python (>= 2.6.5-7) +Standards-Version: 3.8.4 +XS-Python-Version: current Package: %(deb_file)s Architecture: all -Depends: python%(python_version)s-twisted +Depends: ${python:Depends}, python-twisted-core +XB-Python-Version: ${python:Versions} Description: %(description)s %(long_description)s ''' % vars()) @@ -220,7 +224,7 @@ '''\ #!/usr/bin/make -f -export DH_COMPAT=1 +export DH_COMPAT=5 build: build-stamp build-stamp: @@ -257,9 +261,9 @@ dh_strip dh_compress dh_installchangelogs + dh_python2 dh_fixperms dh_installdeb - dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb debian/patches/python3_modules.diff0000664000000000000000000000371012253650524014612 0ustar Description: Port Py_InitModule* calls to PyModule_Create for python3. Author: Adam Conrad Forwarded: no --- twisted-12.3.0.orig/twisted/python/_initgroups.c +++ twisted-12.3.0/twisted/python/_initgroups.c @@ -58,9 +58,27 @@ static PyMethodDef InitgroupsMethods[] = #endif /* defined(__unix__) || defined(unix) */ +#if PY_MAJOR_VERSION >= 3 +static struct PyModuleDef moduledef = { + PyModuleDef_HEAD_INIT, + "_initgroups", /* m_name */ + NULL, /* m_doc */ + -1, /* m_size */ + InitgroupsMethods, /* m_methods */ + NULL, /* m_reload */ + NULL, /* m_traverse */ + NULL, /* m_clear */ + NULL, /* m_free */ +}; +#endif + void init_initgroups(void) { +#if PY_MAJOR_VERSION >= 3 + PyModule_Create(&moduledef); +#else Py_InitModule("_initgroups", InitgroupsMethods); +#endif } --- twisted-12.3.0.orig/twisted/python/sendmsg.c +++ twisted-12.3.0/twisted/python/sendmsg.c @@ -116,6 +116,19 @@ static PyMethodDef sendmsg_methods[] = { {NULL, NULL, 0, NULL} }; +#if PY_MAJOR_VERSION >= 3 +static struct PyModuleDef moduledef = { + PyModuleDef_HEAD_INIT, + "sendmsg", /* m_name */ + sendmsg_doc, /* m_doc */ + -1, /* m_size */ + sendmsg_methods, /* m_methods */ + NULL, /* m_reload */ + NULL, /* m_traverse */ + NULL, /* m_clear */ + NULL, /* m_free */ +}; +#endif PyMODINIT_FUNC initsendmsg(void) { PyObject *module; @@ -123,7 +136,11 @@ PyMODINIT_FUNC initsendmsg(void) { sendmsg_socket_error = NULL; /* Make sure that this has a known value before doing anything that might exit. */ +#if PY_MAJOR_VERSION >= 3 + module = PyModule_Create(&moduledef); +#else module = Py_InitModule3("sendmsg", sendmsg_methods, sendmsg_doc); +#endif if (!module) { return; debian/patches/series0000664000000000000000000000016112253650524012036 0ustar #tap2deb.diff #index-doc.diff #python3.diff #python3_modules.diff #lp1102685.diff #lp1098127.diff admin-dir.diff debian/patches/admin-dir.diff0000664000000000000000000003220012253650524013316 0ustar Index: b/admin/_twistedpython3.py =================================================================== --- /dev/null +++ b/admin/_twistedpython3.py @@ -0,0 +1,242 @@ +# Copyright (c) Twisted Matrix Laboratories. +# See LICENSE for details. + +""" +Provide lists of modules ported to Python 3. + +Modules listed below have been ported to Python 3. The port may be partial, +with only some functionality available. + +run-python3-tests uses this, and in the future it may be used by setup.py and +pydoctor. +""" + +from __future__ import division, absolute_import + +# A list of modules that have been ported, e.g. "twisted.python.versions"; a +# package name (e.g. "twisted.python") indicates the corresponding __init__.py +# file has been ported (e.g. "twisted/python/__init__.py"). To reduce merge +# conflicts, add new lines in alphabetical sort. +modules = [ + "twisted", + "twisted.copyright", + "twisted.internet", + "twisted.internet.abstract", + "twisted.internet.address", + "twisted.internet.base", + "twisted.internet.default", + "twisted.internet.defer", + "twisted.internet.endpoints", + "twisted.internet.epollreactor", + "twisted.internet.error", + "twisted.internet.interfaces", + "twisted.internet.fdesc", + "twisted.internet.gireactor", + "twisted.internet._glibbase", + "twisted.internet.gtk3reactor", + "twisted.internet.main", + "twisted.internet._newtls", + "twisted.internet.posixbase", + "twisted.internet.protocol", + "twisted.internet.pollreactor", + "twisted.internet.reactor", + "twisted.internet.selectreactor", + "twisted.internet._signals", + "twisted.internet.ssl", + "twisted.internet.task", + "twisted.internet.tcp", + "twisted.internet.test", + "twisted.internet.test.connectionmixins", + "twisted.internet.test.modulehelpers", + "twisted.internet.test._posixifaces", + "twisted.internet.test.reactormixins", + "twisted.internet.threads", + "twisted.internet.udp", + "twisted.internet.util", + "twisted.names", + "twisted.names.cache", + "twisted.names.client", + "twisted.names.common", + "twisted.names.dns", + "twisted.names.error", + "twisted.names.hosts", + "twisted.names.resolve", + "twisted.names.test", + "twisted.names._version", + "twisted.protocols", + "twisted.protocols.basic", + "twisted.protocols.policies", + "twisted.protocols.test", + "twisted.protocols.tls", + "twisted.python", + "twisted.python.compat", + "twisted.python.components", + "twisted.python.context", + "twisted.python.deprecate", + "twisted.python.failure", + "twisted.python.filepath", + "twisted.python.log", + "twisted.python.monkey", + "twisted.python.randbytes", + "twisted.python._reflectpy3", + "twisted.python.runtime", + "twisted.python.test", + "twisted.python.test.deprecatedattributes", + "twisted.python.test.modules_helpers", + "twisted.python.threadable", + "twisted.python.threadpool", + "twisted.python.util", + "twisted.python.versions", + "twisted.test", + "twisted.test.proto_helpers", + "twisted.test.ssl_helpers", + "twisted.trial", + "twisted.trial._asynctest", + "twisted.trial.itrial", + "twisted.trial._synctest", + "twisted.trial.test", + "twisted.trial.test.detests", + "twisted.trial.test.erroneous", + "twisted.trial.test.suppression", + "twisted.trial.test.packages", + "twisted.trial.test.skipping", + "twisted.trial.test.suppression", + "twisted.trial.unittest", + "twisted.trial.util", + "twisted._version", + "twisted.web", + "twisted.web.http_headers", + "twisted.web.resource", + "twisted.web._responses", + "twisted.web.test", + "twisted.web.test.requesthelper", + "twisted.web._version", + ] + + +# A list of test modules that have been ported, e.g +# "twisted.python.test.test_versions". To reduce merge conflicts, add new +# lines in alphabetical sort. +testModules = [ + "twisted.internet.test.test_abstract", + "twisted.internet.test.test_address", + "twisted.internet.test.test_base", + "twisted.internet.test.test_core", + "twisted.internet.test.test_default", + "twisted.internet.test.test_endpoints", + "twisted.internet.test.test_epollreactor", + "twisted.internet.test.test_fdset", + "twisted.internet.test.test_filedescriptor", + "twisted.internet.test.test_inlinecb", + "twisted.internet.test.test_gireactor", + "twisted.internet.test.test_glibbase", + "twisted.internet.test.test_main", + "twisted.internet.test.test_newtls", + "twisted.internet.test.test_posixbase", + "twisted.internet.test.test_protocol", + "twisted.internet.test.test_sigchld", + "twisted.internet.test.test_tcp", + "twisted.internet.test.test_threads", + "twisted.internet.test.test_tls", + "twisted.internet.test.test_udp", + "twisted.internet.test.test_udp_internals", + "twisted.names.test.test_cache", + "twisted.names.test.test_client", + "twisted.names.test.test_common", + "twisted.names.test.test_dns", + "twisted.names.test.test_hosts", + "twisted.protocols.test.test_basic", + "twisted.protocols.test.test_tls", + "twisted.python.test.test_components", + "twisted.python.test.test_deprecate", + "twisted.python.test.test_reflectpy3", + "twisted.python.test.test_runtime", + "twisted.python.test.test_util", + "twisted.python.test.test_versions", + "twisted.test.test_abstract", + "twisted.test.test_compat", + "twisted.test.test_context", + "twisted.test.test_cooperator", + "twisted.test.test_defer", + "twisted.test.test_defgen", + "twisted.test.test_error", + "twisted.test.test_factories", + "twisted.test.test_failure", + "twisted.test.test_fdesc", + "twisted.test.test_internet", + "twisted.test.test_iutils", + "twisted.test.test_log", + "twisted.test.test_loopback", + "twisted.test.test_monkey", + "twisted.test.test_paths", + "twisted.test.test_policies", + "twisted.test.test_randbytes", + "twisted.test.test_setup", + "twisted.test.test_ssl", + "twisted.test.test_sslverify", + "twisted.test.test_task", + "twisted.test.test_tcp", + "twisted.test.test_tcp_internals", + "twisted.test.test_threadable", + "twisted.test.test_threads", + "twisted.test.test_twisted", + "twisted.test.test_threadpool", + "twisted.test.test_udp", + "twisted.trial.test.test_assertions", + "twisted.trial.test.test_asyncassertions", + "twisted.trial.test.test_deferred", + "twisted.trial.test.test_pyunitcompat", + "twisted.trial.test.test_suppression", + "twisted.trial.test.test_testcase", + "twisted.trial.test.test_tests", + "twisted.trial.test.test_util", + "twisted.trial.test.test_warning", + # downloadPage tests weren't ported: + "twisted.web.test.test_webclient", + "twisted.web.test.test_http", + "twisted.web.test.test_http_headers", + "twisted.web.test.test_resource", + "twisted.web.test.test_web", + ] + +# A list of any other modules which are needed by any of the modules in the +# other two lists, but which themselves have not actually been properly ported +# to Python 3. These modules might work well enough to satisfy some of the +# requirements of the modules that depend on them, but cannot be considered +# generally usable otherwise. +almostModules = [ + # Missing test coverage, see #6156: + "twisted.internet._sslverify", + # twisted.names.client semi-depends on twisted.names.root, but only on + # Windows really: + "twisted.names.root", + # Missing test coverage: + "twisted.protocols.loopback", + # Minimally used by setup3.py: + "twisted.python.dist", + # twisted.python.filepath depends on twisted.python.win32, but on Linux it + # only really needs to import: + "twisted.python.win32", + "twisted.test.reflect_helper_IE", + "twisted.test.reflect_helper_VE", + "twisted.test.reflect_helper_ZDE", + # Required by some of the ported trial tests: + "twisted.trial.reporter", + # Agent code and downloadPage aren't ported, test coverage isn't complete: + "twisted.web.client", + # twisted.web.resource depends on twisted.web.error, so it is sorta + # ported, but its tests are not yet ported, so it probably doesn't + # completely work. + "twisted.web.error", + # Required by twisted.web.server, no actual code here: + "twisted.web.iweb", + # Required by twisted.web.server for an error handling case: + "twisted.web.html", + # This module has a lot of missing test coverage. What tests it has pass, + # but it needs a lot more. It was ported only enough to make the client + # work. + "twisted.web.http", + # GzipEncoder and allowed methods functionality not ported, no doubt + # missing lots of test coverage: + "twisted.web.server", + ] Index: b/admin/run-python3-tests =================================================================== --- /dev/null +++ b/admin/run-python3-tests @@ -0,0 +1,26 @@ +#!/usr/bin/env python3.3 + +""" +This program is intended to run Twisted's test suite under Python 3. As such, +it should go away once Twisted has been fully ported to Python 3. It is only +intended to be used from a Twisted checkout, and implementation can and will +change at any time. +""" + +import sys, os, unittest, tempfile + +# Make sure checkout's code is used: +twistedPath = os.path.abspath(os.path.dirname(os.path.dirname(sys.argv[0]))) +sys.path.insert(0, twistedPath) + +if sys.argv[1:]: + testModules = sys.argv[1:] +else: + from _twistedpython3 import testModules + +# Avoid dumping trash all over the place +os.chdir(tempfile.mkdtemp(prefix="tw-py3-")) + +# Run the tests +unittest.main(module=None, argv=["run-python3-tests", "-v"] + testModules) + Index: b/admin/twisted.spec =================================================================== --- /dev/null +++ b/admin/twisted.spec @@ -0,0 +1,62 @@ +%define name Twisted +%define version SVN-trunk +%define release 1tummy +%define prefix %{_prefix} +%define py_libver 2.3 + +Summary: Twisted is an event-based framework for internet applications. +Name: %{name} +Version: %{version} +Release: %{release} +Source: %{name}-%{version}.tar.bz2 +License: MIT +Group: System/Libraries +URL: http://www.twistedmatrix.com/ +Requires: python >= %{py_libver} +BuildRequires: python-devel +BuildRoot: %{_tmppath}/%{name}-buildroot +Prefix: %{_prefix} + +%description +Twisted is an event-based framework for internet applications. It includes a +web server, a telnet server, a chat server, a news server, a generic client +and server for remote object access, and APIs for creating new protocols and +services. Twisted supports integration of the Tk, GTK+, Qt or wxPython event +loop with its main event loop. The Win32 event loop is also supported, as is +basic support for running servers on top of Jython. + +%package doc +Summary: Twisted documentation and example programs +Group: Development/Python +%description doc +Twisted is an event-based framework for internet applications. +Install Twisted-doc if you need the API documentation and example programs. + +%prep +%setup -n %{name}-%{version} +%build + +%install +[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT" +mkdir -p "$RPM_BUILD_ROOT" + +python setup.py install --optimize=2 --record=installed-files \ + --root="$RPM_BUILD_ROOT" + +# install man pages +mkdir -p "$RPM_BUILD_ROOT"/%{_mandir}/man1/ +cp -a doc/man/*.1 "$RPM_BUILD_ROOT"/%{_mandir}/man1/ + +%clean +[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT" + +%files +%defattr(755,root,root) +%doc CREDITS LICENSE README +%{_bindir}/* +%attr(644,-,-) %{_mandir}/man1/* +%{_libdir}/python%{py_libver}/site-packages/twisted/ + +%files doc +%defattr(-,root,root) +%doc doc/* Index: b/admin/update-documentation.py =================================================================== --- /dev/null +++ b/admin/update-documentation.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python +# Copyright (c) Twisted Matrix Laboratories. +# See LICENSE for details. + +import sys +from twisted.python import filepath + +def updateDocumentation(project, twistedCheckoutPath, websiteCheckoutPath): + """ + Copy documentation for a particular project out of the craphole where lore + dumps it, and into a WebSite working copy. + + @param generatedDocPath: The path to the root of a Twisted checkout, ie + ~/Projects/Twisted/tags/releases/TwistedWeb/0.5.x/ + + @param websiteCheckoutPath: The path to the root of a WebSite checkout, ie + ~/Projects/WebSite/branches/update-web-docs-123/ + """ + docPath = twistedCheckoutPath.child('doc').child(project) + minusSVN = docPath.temporarySibling() + docPath.copyTo(minusSVN) + for child in minusSVN.walk(): + if child.basename() == '.svn': + child.remove() + + minusSVN.copyTo(websiteCheckoutPath.child('vhosts').child('twistedmatrix.com').child('projects').child(project).child('documentation')) + minusSVN.remove() + + +if __name__ == '__main__': + if len(sys.argv) != 4: + raise SystemExit("Usage: %s " % (sys.argv[0],)) + updateDocumentation(sys.argv[1], filepath.FilePath(sys.argv[2]), filepath.FilePath(sys.argv[3])) debian/patches/lp1102685.diff0000664000000000000000000000270112253650524012637 0ustar Description: Use pygtkcompat directly and fall back to gi.pygtkcompat Bug: https://twistedmatrix.com/trac/ticket/6280 Author: Rodney Dawes === modified file 'twisted/internet/gireactor.py' --- old/twisted/internet/gireactor.py 2013-01-16 17:44:26 +0000 +++ new/twisted/internet/gireactor.py 2013-01-23 17:13:29 +0000 @@ -37,9 +37,12 @@ else: from twisted.python.modules import theSystemPath _pygtkcompatPresent = True try: - theSystemPath["gi.pygtkcompat"] + theSystemPath["pygtkcompat"] except KeyError: - _pygtkcompatPresent = False + try: + theSystemPath["gi.pygtkcompat"] + except KeyError: + _pygtkcompatPresent = False # Modules that we want to ensure aren't imported if we're on older versions of @@ -75,8 +78,11 @@ else: # Newer version of gi, so we can try to initialize compatibility layer; if # real pygtk was already imported we'll get ImportError at this point # rather than segfault, so unconditional import is fine. - import gi.pygtkcompat - gi.pygtkcompat.enable() + try: + import pygtkcompat + except ImportError: + from gi import pygtkcompat + pygtkcompat.enable() # At this point importing gobject will get you gi version, and importing # e.g. gtk will either fail in non-segfaulty way or use gi version if user # does gi.pygtkcompat.enable_gtk(). So, no need to prevent imports of debian/patches/python3.diff0000664000000000000000000000170212253650524013061 0ustar Index: b/setup.py =================================================================== --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ import sys if sys.version_info < (2, 6): - print >>sys.stderr, "You must use at least Python 2.6 for Twisted" + print("You must use at least Python 2.6 for Twisted", sys.stderr) sys.exit(3) if os.path.exists('twisted'): Index: b/twisted/python/dist.py =================================================================== --- a/twisted/python/dist.py +++ b/twisted/python/dist.py @@ -313,8 +313,8 @@ for specialExclusion in ['.svn', '_preamble.py', '_preamble.pyc']: if specialExclusion in thingies: thingies.remove(specialExclusion) - return filter(os.path.isfile, - [os.path.join(scriptdir, x) for x in thingies]) + return list(filter(os.path.isfile, + [os.path.join(scriptdir, x) for x in thingies])) ## Helpers and distutil tweaks debian/patches/index-doc.diff0000664000000000000000000000150212253650524013325 0ustar Index: b/doc/index.html =================================================================== --- a/doc/index.html +++ b/doc/index.html @@ -20,12 +20,14 @@
  • Development of Twisted: for people who want to work on Twisted itself
  • -

    An API - reference is available on the twistedmatrix web site.

    +

    An API reference is also available. +You can find the +latest + reference on the twistedmatrix web site.

    Index

    Version: 12.3.0 - \ No newline at end of file + debian/compat0000664000000000000000000000000212253650524010372 0ustar 7 debian/copyright0000664000000000000000000001024012253650524011124 0ustar This package was debianized by Moshe Zadka on Sat, 21 Jul 2001 09:35:33 +0300, updated for 2.0 by Matthias Klose It was downloaded from http://www.twistedmatrix.com Copyright (c) 2005 Allen Short Andrew Bennetts Benjamin Bruheim Bob Ippolito Christopher Armstrong Donovan Preston Eric Mangold Itamar Shtull-Trauring James Knight Jason A. Mobarak Jonathan Lange Jonathan D. Simms Jp Calderone Juergen Hermann Kevin Turner Mary Gardiner Matthew Lefkowitz Massachusetts Institute of Technology Moshe Zadka Paul Swartz Pavel Pergamenshchik Sean Riley Travis B. Hartwell except as noted at the end of this file. 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. Copyright Exceptions: The source includes in twisted/python/pymodules some files from the Python 2.3 upstream tarball (not included in the binary packages). The Python 2.3 license follows: PSF LICENSE AGREEMENT FOR PYTHON 2.3 ------------------------------------ 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using Python 2.3 software in source or binary form and its associated documentation. 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python 2.3 alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003 Python Software Foundation; All Rights Reserved" are retained in Python 2.3 alone or in any derivative version prepared by Licensee. 3. In the event Licensee prepares a derivative work that is based on or incorporates Python 2.3 or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python 2.3. 4. PSF is making Python 2.3 available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 2.3 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 2.3 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.3, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. 8. By copying, installing or otherwise using Python 2.3, Licensee agrees to be bound by the terms and conditions of this License Agreement. debian/control0000664000000000000000000000313212253650524010576 0ustar Source: twisted-py3 Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Matthias Klose Uploaders: Free Ekanayaka Build-Depends: debhelper (>=7.0.50~), python3-all-dev (>= 3.3), python3-all-dbg, python3-zope.interface-dbg, patch #Build-Depends-Indep: python-pydoctor Build-Conflicts: python-setuptools XS-Python-Version: all Standards-Version: 3.9.4 Package: python3-twisted-experimental Architecture: all Depends: ${python3:Depends}, python3-zope.interface (>= 3.6), ${misc:Depends} Suggests: python3-tk, python3-gtk2, python3-glade2, python3-qt3, python3-wxgtk2.8 Recommends: python3-openssl, python3-pam, python3-serial Conflicts: python3-twisted-core Replaces: python3-twisted-core Description: Event-based framework for internet applications It includes a web server, a telnet server, a multiplayer RPG engine, a generic client and server for remote object access, and APIs for creating new protocols. . This package holds the modules already ported to Python3. Package: twisted-py3-doc Section: doc Priority: extra Architecture: all Depends: ${misc:Depends} Suggests: python3-twisted-experimental Recommends: www-browser | postscript-viewer | pdf-viewer Description: Official documentation of Twisted This contains various HOWTOs and overviews in various formats . Twisted is an event-based framework for internet applications. It includes a web server, a telnet server, a multiplayer RPG engine, a generic client and server for remote object access, and APIs for creating new protocols. debian/source/0000775000000000000000000000000012253650524010474 5ustar debian/source/format0000664000000000000000000000001412253650524011702 0ustar 3.0 (quilt) debian/Twisted.egg-info.in0000664000000000000000000000063612253650524012646 0ustar Metadata-Version: 1.0 Name: Twisted Version: @twversion@ Summary: An asynchronous networking framework written in Python Home-page: http://twistedmatrix.com/ Author: Glyph Lefkowitz Author-email: glyph@twistedmatrix.com License: MIT Description: An extensible framework for Python programming, with special focus on event-based network programming and multiprotocol integration. Platform: UNKNOWN debian/twisted-doc.doc-base0000664000000000000000000000053412253650524013023 0ustar Document: twisted-howto Title: The Twisted Book Author: The Twisted Team Abstract: This book describes how to use Twisted for any use -- from bringing up a simple web site to coding distributed applications Section: Programming/Python Format: HTML Index: /usr/share/doc/twisted-doc/howto/index.html Files: /usr/share/doc/twisted-doc/howto/*.html debian/python3-twisted-core.triggers0000664000000000000000000000003712253650524014757 0ustar interest twisted-plugins-cache debian/python-twisted-core.postrm0000664000000000000000000000044712253650524014377 0ustar #! /bin/sh set -e case "$1" in remove|purge) find /usr/lib/python[23].*/*-packages/twisted/plugins \ -name dropin.cache 2>/dev/null | xargs -r rm -f for d in /usr/lib/python[23].*/*-packages/twisted/plugins; do rmdir $d 2>/dev/null || true done ;; esac #DEBHELPER# exit 0 debian/python-twisted-core.triggers0000664000000000000000000000003712253650524014674 0ustar interest twisted-plugins-cache debian/watch0000664000000000000000000000013412253650524010223 0ustar version=3 http://twistedmatrix.com/Releases/Core/(\d\d\.\d)/TwistedCore-([\d\.]*)\.tar\.bz2