From 9452a6e87b6c2c70513bc47a2470bf9f1168920e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 13 Jun 2020 10:39:22 +0100 Subject: gentoo resync : 13.06.2020 --- dev-python/twisted/Manifest | 16 +- dev-python/twisted/files/test_main.patch | 73 ------ dev-python/twisted/files/trial | 22 -- ...t_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch | 11 - .../twisted/files/twisted-16.6.0-test-fixes.patch | 282 --------------------- .../twisted-17.9.0-Fix-test-on-Python-363.patch | 74 ------ .../files/twisted-17.9.0-python-27-utf-8-fix.patch | 47 ---- ...ed-18.4.0-Disable-writing-of-plugin-cache.patch | 25 -- dev-python/twisted/files/utf8_overrides.patch | 64 ----- dev-python/twisted/twisted-16.6.0-r3.ebuild | 185 -------------- dev-python/twisted/twisted-18.4.0.ebuild | 195 -------------- dev-python/twisted/twisted-19.10.0.ebuild | 5 +- dev-python/twisted/twisted-20.3.0.ebuild | 2 +- 13 files changed, 5 insertions(+), 996 deletions(-) delete mode 100644 dev-python/twisted/files/test_main.patch delete mode 100644 dev-python/twisted/files/trial delete mode 100644 dev-python/twisted/files/twisted-16.5.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch delete mode 100644 dev-python/twisted/files/twisted-16.6.0-test-fixes.patch delete mode 100644 dev-python/twisted/files/twisted-17.9.0-Fix-test-on-Python-363.patch delete mode 100644 dev-python/twisted/files/twisted-17.9.0-python-27-utf-8-fix.patch delete mode 100644 dev-python/twisted/files/twisted-18.4.0-Disable-writing-of-plugin-cache.patch delete mode 100644 dev-python/twisted/files/utf8_overrides.patch delete mode 100644 dev-python/twisted/twisted-16.6.0-r3.ebuild delete mode 100644 dev-python/twisted/twisted-18.4.0.ebuild (limited to 'dev-python/twisted') diff --git a/dev-python/twisted/Manifest b/dev-python/twisted/Manifest index b970e8d38e76..ca250b7e016f 100644 --- a/dev-python/twisted/Manifest +++ b/dev-python/twisted/Manifest @@ -1,12 +1,5 @@ -AUX test_main.patch 3035 BLAKE2B 849a8d5aa6014d8c62f2cb464265b2b0d2a2e11e58eb28803b06683e89acdf6ce8668b1b1beb36f1437684f26f57b94b840201f9f8aa3e34b37cf888e2cb6644 SHA512 8e85a2aeb934f9a85bce223e50bae62e63188b4a75f6ef9e67badd040a6018075e7c777683106cf160d65383351d2d6ce02d3bc9a57e434e6e120ac8b669b147 -AUX trial 485 BLAKE2B 5a8ac382860e3967b5cb2d3b30a3799d77525ad3010b19daf5bed693c5739149b4bef070790485585d1e0b13d0286e84196a3cea26d3646ecd8e36ed7f966eef SHA512 b6a58da5281e18306d558fd665acfff02e2478e4f692661a3ed0fc0b01e6e13794a8d2b56ac3f2790a0cdd83a882f37a247f5083ceaf6ed6686fb69bd87853ce AUX twistd.conf 277 BLAKE2B 78ca35b410a6597c9afe6a9c8d3dfb1de113411634901f936794e8a59c0644233d0673e710bd0870ecf4312d079c46f62f43928605700559134f1fb62490559a SHA512 76d44caebab8404f16937c2515ad9ae8236732a48c7127366f7fa22c6ed3d88ace2d33b832a6d95f775973d41b7caf75344805fe5b01e964c04eb710bf3c89fb AUX twistd.init 563 BLAKE2B 24488118b025bf2068bbf07af900064ff6a7ee99106c3da30f15f2b3f85af7443212afebc6b52a12645488b85656f87b653df9263fc2be6bd09707917899f252 SHA512 7860601beba1efda2b0a045b2a044ec33caff9ee915d45225c05e281760a68da349b4c45080600177aab32aa806714327acf3cf5dda92be0874f781f129bb129 -AUX twisted-16.5.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch 427 BLAKE2B 0bf2c34f6dce2eed84782da7ce29ce4a76f6cca3f3b4b273c16c02fc75b22df3115deeca9c836916dc43ea88dc08e3e4c2f544c50164ee0c8fae491b4e54befb SHA512 d14b4941c3a13c59dfe0599a3eb73b9b0d5bde8e7c26033848ac920da8e8c63a0290d7f4d711cab16a17ba55a2e13830ab02bbd0db38f0757768cb973000064c -AUX twisted-16.6.0-test-fixes.patch 10591 BLAKE2B 27729db1ce4b84ea66acfa12bfdf2232623fa6c607fb1a6e0b3cd8325c31343a4565568141d9e659204fce9a2156117db05027cc2b023e8099fdf9e394524df6 SHA512 5071ffe30d1911ab4eb301403542f34198cbb3e09137d6260125fa61f702a0ce10e5c11c7967c10841a9d1b62f2eaf44e04119182a108cfbb7046622ddbdbcf2 -AUX twisted-17.9.0-Fix-test-on-Python-363.patch 3490 BLAKE2B 421318533759dad2d4ad3f054fbfab7900362aa3b3ca0adc75fb42431272fcaa40fe85ab2a3417232d97d3389b380ae658ee5b475e087f3a6097e28dd2094111 SHA512 0ba6b68267418bee3b2cfb15937dab4d6d3291725dd7acc41f37e0c8d39218acc4e23cb704c292f62eea57a128a1fcee6899826601b6763f37800c4b83ad18a8 -AUX twisted-17.9.0-python-27-utf-8-fix.patch 1630 BLAKE2B c70f3223b66a9372e07df7a767937d77a07f91cafecb4a5d84452f57458516e3ef17e4d5862d6b9f003e0edce3391e282f5bfcaf57ff2029db3c499fc6e97262 SHA512 635c498ab0e612b7d7ab262c333f18408e22dbe95d86389e87da36f0c41cee90f25b4c1df626cb755932c970a9f12dc25ca67e3790bd9c15c8a4d8ee6f547956 -AUX twisted-18.4.0-Disable-writing-of-plugin-cache.patch 853 BLAKE2B f2f4f3906266199856056d4eae062aafaa8d5b574858bd494d6a51512ad3f27ee0d813de8a760fbd21bdf479fde0bb1c3e724e13bddceb0d3af83bb8ecb31aa6 SHA512 e27a61855523a64c27e7adfe8ec917fae60149b1bfe0fc555694dc4321669665116046baa8f293d75b4bf68ec19743850062132aa05fed5feab4f582cc75219c AUX twisted-19.10.0-py38-cgi.patch 1356 BLAKE2B d172448bd2807dc57ac2a905427f0a91fa93dd17a1e58ab64dc17fc02fe05a81cee4c08aa667c799720cde33877e4b72f8db8df3587d8d8d711988bb2e388128 SHA512 65629acfc2f6dd6686db715024209e9ff12b97d5190c4377e6d88222c85c1d2a1f3502a93801525ee1a0fc0357f2b28ba87db888ea64bccfbfdc74fdfb667f42 AUX twisted-19.10.0-py38.patch 3997 BLAKE2B 26df585019d5e2aca4257c9a7840a973ee9e1f3dfce65c76b021b8d6ea07ed8c6abca237c11ce75b49994ea7ed95de587a433a6a6f3577cd6f2ddf243d40defd SHA512 bc6eb1b1bbb704fe30c4ef071f8d8e95faaad3089013d11765f30f4b6bdbb108b913b043c071d00c18b53655841cb1810286331c5318d4659ad7c90d90b9fb4e AUX twisted-19.10.0-py39-b64.patch 7022 BLAKE2B f59573231a70318aac1f383602725949f033e017c036ab204815816ef168ad122253e903ff577c1a055c12023d06dc49ebfcdecf693d9890476785653860a628 SHA512 5904bcf5eadcd53d038870d6868fec1a81d6327c31b7b2360987a69e6f4046e92e11b52260c53a2361687161a36a5b6f53b24906d404ebe25f86e5bdc11fc6dc @@ -14,14 +7,9 @@ AUX twisted-20.3.0-py38-cgi.patch 8601 BLAKE2B 6eb76eaa1cfe10ba473a334bfd5e5a4c7 AUX twisted-20.3.0-py38-hmac.patch 3484 BLAKE2B b89587da906517a621ba880eb6eb71cc2f397a7bcf7bcf065f79897626f821d965b2daa0d105af7e48c8c30fb79fb836c02db17058b5ac046ae92f9578899a62 SHA512 a6ed24994bf76a7e602144eed706c61cce531408db050dc2a497fb4131b5594f4d29ebd34c0d780b283460d130dfc88b19ad9cbe5436c0290b9b13eb35c9342b AUX twisted-20.3.0-py39-b64.patch 6747 BLAKE2B 1bb6960e5049f43b08e2ba7a56a16616e82f3b18290645b2f14bd15a199d3e1b2767e030a8295fc2d3f4a8a3d1a6e4a5d5d7d55a089da643c593b2a3df174119 SHA512 6f58dcecf07925d15a1373726e03da4083a0266ee6629089b30b0c8ab62bd007579942430989df2d550578067e2c2c542062dd20a38851794f6ef86e85aefb95 AUX twisted-20.3.0-py39-combined.patch 3752 BLAKE2B 687698bccf6af3213812ae29e7e234c36941f0f7ecfdcfa8c14a6a7b5a433b9ff2a40c2ad870e46b3437210202cf0dc58e17c8d29ebf506c499780355cf60bdb SHA512 81f0b597a7b2609bae5f405388bccf759dd6b0295cf05e6ef2aee76d0f3ab4367a474704aab2753d101be2580d097f30d94acc529035bdb3c3ec43dd035fb733 -AUX utf8_overrides.patch 2288 BLAKE2B 450f921f6a07cd56d9311c15c9f2bf342ec82c807325ebb5b5c2fd61572d489ac7f1c8978892530016a343b7284c580def705127c57ce947a2698835e447b8ce SHA512 b495268282e0233c570655b2b3d42ecc90116b22c36cdec4ebf581ce1019abedb7ee301d860ec161b4b5e691d1b747ad45257966b5f510de8dcce8271021e7e8 -DIST Twisted-16.6.0.tar.bz2 2979747 BLAKE2B 898e0a0fa3ae8547a801b09118423ec8ad80727dd6d034e3f8a151f084eff5a3fc560f2eb9e76c452a14ec90b36d93e14d3bbb388010c3c5c01fd1c4d5ca16bb SHA512 0b8de0ec7f64457f76c396fced64b366b8e63c6e000a5edc6c6388cd917fb2f95711918cd8edda39e0aa77e2cd32b5d775d23630a5ad10fc013c18f8316300cf -DIST Twisted-18.4.0.tar.bz2 3037019 BLAKE2B 6fc32f7591493ccc4fe03233307b566899b82cd035ba3329b3faaf950339a6653de697ba3873b37b22f9d7f8a66109694b80496917bf61e79c56eeb7e351ac87 SHA512 3733a6df0196ea580187da3576f5fd08f287437528a4e19813056d019cca213c61b62d879d80a12eef38661d3505ba33aac9a4fc956b19afa6da7d37a6465c83 DIST Twisted-19.10.0.tar.bz2 3118485 BLAKE2B a0d532b67177aa017e463bf823d7842d4f6ff694f78cd7600865718ffe861023a53ea6a922f7de232133edba26f5255074d7ef277ce8f3bdf02d556ccf4abf41 SHA512 de8d7fd0b2081cebeff68b060c8469377011648bc563a94a993d3530fb007ed42c3a54925c9a10c465ee7a3065cc9108ace12d10d358223fab13494becb9ac4b DIST Twisted-20.3.0.tar.bz2 3127793 BLAKE2B 2e85fc3ec26d89e563c9e79a5d2adea81ff1745d18f0f92b8d45ae3729fbddf09998664257880372c7a4caeb5977c5cad7c863596b8c27ad7890275cead9f763 SHA512 1b850e5fc21a3630ead4c2cc3622c16e78bb3be38ab11d021779b7ce3d3c30acc4e19d79c7791a5fce6c5c6e09c2baa349901dffe952de67dd98eec419846365 DIST twisted-regen-cache.gz 911 BLAKE2B ffd3fcda6c67ffe6fd3ef581c8d507548396b66ed0708e9a5c790095e579c0d5f0f71596acf05712989da2ddef2b8d437eca973bc4d80ef8a9fa852915f38305 SHA512 95a9b931c73017d16d1b5e6b41345dddffe62b6af1a8e93b5e40d06d3d15be17b0dd0181c767ffeeb791534d463764ef9e066fa6c2ee2ac4b53c86d1da8fce03 -EBUILD twisted-16.6.0-r3.ebuild 5783 BLAKE2B e6433d34015f3140e93ac698aaaaae9fa822de410debaa5bce42ffc5697e9c11ed0c3180ce8212703746addda39d9b0d4c30dbbef348fb821a65cc6e24d8701d SHA512 181151b8b2667f688fa08ce7aa97e2fc242c8dd168cc5498d17f6224ce18933406ddcf40a8c813a0631f4cd58e498c370d94371043c41d4b18aa44876677b979 -EBUILD twisted-18.4.0.ebuild 6270 BLAKE2B edbeb59373d55d728b255223dd7ca09043547c80513be779719704983508dd2be866e4fee90bb023f8817f95659291c262b4d037ba6609164a61d13dd660e5e4 SHA512 ae8aede1151acaa3f94553bdcefc25970e9026f4aef8a81c6a6f8f0a0e7d9c91283ff6eaf1aeb2ed8140021279ed3a985967fd6357b8ad239289604a9cc0a2a5 -EBUILD twisted-19.10.0.ebuild 5878 BLAKE2B 23231a9145a514d363600656ebc0ca2136b8be060559131fbdd9adb5235d1bd734383aca7a37e7c0befd005fce67723e55a288117a0e2273862055067f13af5f SHA512 14604830d9de35e8ea66334af5b0c9fc42a562b03d4b20425c579c654eff18047860e9cb100243c9884599fc5294b6018b3c77f54175bcb8c549aedfb0477a95 -EBUILD twisted-20.3.0.ebuild 5587 BLAKE2B a87b12179d3a460ca7185c1ba71d51f49d59934b355e3d62628c5f3eda4192572892c3a640222a22321b0a494d723aca011564609a97e28ddd553e380c5795d6 SHA512 2cfa6cc45ec6a8e1cf182c21a279d5389df6a267fa2343c7342fb305b5bb143915cf82f61dbb234cf12bbf6ca1f92935abd5c0fc891932f3d97bb08edbdc0f13 +EBUILD twisted-19.10.0.ebuild 5789 BLAKE2B 33995700df1fa184e1612aed28c2a42b413c8b5454c13a5e28ede8aa1398394b1e78159b8cea5210f18cccc10a03943a001e46d440240d2d588bd8a5c77cf097 SHA512 1c5428786d6aab20ef667578dd66d05bc22c820105fd700e1e0b15a2620985f10ad71dae14f88ccb9ddee1f155934cba4d3d01e9b87990ce521eedf3d751b45c +EBUILD twisted-20.3.0.ebuild 5596 BLAKE2B 9dcb2d8428d9fb97f1d84bad8fdb3e78b349a003cb1a5a2c62832ebc03c8906fa586f9e4b1e95d02c871c90cafad2721e6939f003f71f598954ba6200a948ad4 SHA512 77383ed93cf4fa6051d257e7b7506f5efe399a274d112c9be6fb2f377e799261e034d14e0f750d0023e926e816e96db485c074557de0c06b760e938d08d3fda9 MISC metadata.xml 1351 BLAKE2B b3a4ccdc922dd4aa902b24b2545f3cc5517b2842c92f1195e8eaa2a8b62558c1ea86059cc23b9ad6a8e6093216a11a01f46360b5ba259e5eadcb351ad3bc0094 SHA512 403d692122913d079c5a93cb5b226f33316776360663a171cd757584d219d0789b24809c9e65840aaeb63eae4cb7cc79258757837abb1e3dd92536369fff6604 diff --git a/dev-python/twisted/files/test_main.patch b/dev-python/twisted/files/test_main.patch deleted file mode 100644 index bfef40450d52..000000000000 --- a/dev-python/twisted/files/test_main.patch +++ /dev/null @@ -1,73 +0,0 @@ -From 2c3c28f5dbbd61bcfa5c548d1d423fffbaf2132d Mon Sep 17 00:00:00 2001 -From: Brian Dolbec -Date: Fri, 31 Mar 2017 09:32:18 -0700 -Subject: [PATCH] tests/test_main.py: Fix test_twisted to handle differntly - sorted options - -Some systems retuned the usage with '__main__.py' instead of the command 'trial' -So, substitute that out if it exists. -The options returned via python can be a different sort order than is output via the -command --help. So break up the lines into a list and check equality, lines are neither -missing or extra. ---- - src/twisted/test/test_main.py | 34 ++++++++++++++++++++++++++++++++-- - 1 file changed, 32 insertions(+), 2 deletions(-) - -diff --git a/src/twisted/test/test_main.py b/src/twisted/test/test_main.py -index 572769018..b010a389e 100644 ---- a/src/twisted/test/test_main.py -+++ b/src/twisted/test/test_main.py -@@ -18,6 +18,10 @@ from twisted.trial.unittest import TestCase - - class MainTests(TestCase): - """Test that twisted scripts can be invoked as modules.""" -+ # this test just does not work correctly on Gentoo -+ # the output has '__main__.py' instead of 'trial' -+ # I have only been able to get 2.7 working correctly -+ # with replacing the value with what is expected. - def test_twisted(self): - """Invoking python -m twisted should execute twist.""" - cmd = sys.executable -@@ -28,11 +32,37 @@ class MainTests(TestCase): - - def processEnded(ign): - f = p.outF -- output = f.getvalue().replace(b'\r\n', b'\n') -+ # Some systems may return __main__.py instead of the command name expected -+ output = f.getvalue().replace(b'\r\n', b'\n').replace(b"__main__.py", b"trial") - - options = TwistOptions() - message = '{}\n'.format(options).encode('utf-8') -- self.assertEqual(output, message) -+ # NOTE: python may return the options in a different order -+ # than is output via the command --help option -+ # so we must break up the text and compare that lines -+ # are not missing or extra from what is expected -+ a = output.split(b'\n') -+ b = message.split(b'\n') -+ extras = [] -+ missing = [] -+ equal_len = (len(a) == len(b)) -+ for i in a: -+ if i not in b: -+ extras.append(i) -+ for i in b: -+ if i not in a: -+ missing.append(i) -+ -+ self.assertTrue(equal_len, -+ msg="Usage reported a different number of lines than expected") -+ self.assertTrue(extras == [], -+ msg="Usage returned these extra lines not expected: %s" -+ % '\n'.join(extras) -+ ) -+ self.assertTrue(missing == [], -+ msg="Usage was missing these expected lines: %s" -+ % '\n'.join(missing) -+ ) - return d.addCallback(processEnded) - - def test_twisted_import(self): --- -2.12.1 - diff --git a/dev-python/twisted/files/trial b/dev-python/twisted/files/trial deleted file mode 100644 index 8da58861abf6..000000000000 --- a/dev-python/twisted/files/trial +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -# Copyright (c) Twisted Matrix Laboratories. -# See LICENSE for details. -import os, sys - -try: - import _preamble -except ImportError: - try: - sys.exc_clear() - except AttributeError: - # exc_clear() (and the requirement for it) has been removed from Py3 - pass - -# begin chdir armor -sys.path[:] = map(os.path.abspath, sys.path) -# end chdir armor - -sys.path.insert(0, os.path.abspath(os.getcwd())) - -from twisted.scripts.trial import run -run() diff --git a/dev-python/twisted/files/twisted-16.5.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch b/dev-python/twisted/files/twisted-16.5.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch deleted file mode 100644 index ed1a46840678..000000000000 --- a/dev-python/twisted/files/twisted-16.5.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- src/twisted/plugin.py -+++ src/twisted/plugin.py -@@ -180,7 +180,7 @@ - if pluginKey not in existingKeys: - del dropinDotCache[pluginKey] - needsWrite = True -- if needsWrite: -+ if needsWrite and os.environ.get("TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE") is None: - try: - dropinPath.setContent(pickle.dumps(dropinDotCache)) - except: diff --git a/dev-python/twisted/files/twisted-16.6.0-test-fixes.patch b/dev-python/twisted/files/twisted-16.6.0-test-fixes.patch deleted file mode 100644 index 3ce04aa3f684..000000000000 --- a/dev-python/twisted/files/twisted-16.6.0-test-fixes.patch +++ /dev/null @@ -1,282 +0,0 @@ -From 91b6d8b5b9d602152fb7148c6e2921463b93a8a5 Mon Sep 17 00:00:00 2001 -From: Brian Dolbec -Date: Fri, 31 Mar 2017 10:55:32 -0700 -Subject: [PATCH] twisted test overrides - ---- - src/twisted/internet/test/test_gireactor.py | 3 ++- - src/twisted/pair/test/test_ethernet.py | 9 +++++++++ - src/twisted/pair/test/test_ip.py | 8 ++++++++ - src/twisted/pair/test/test_rawudp.py | 10 +++++++++- - src/twisted/pair/test/test_tuntap.py | 16 ++++++++++++++++ - src/twisted/python/test/test_dist3.py | 2 ++ - src/twisted/test/test_ident.py | 5 ++++- - src/twisted/test/test_plugin.py | 6 ++++++ - src/twisted/test/test_policies.py | 5 +++++ - src/twisted/test/test_udp.py | 6 ++++++ - 10 files changed, 67 insertions(+), 3 deletions(-) - -diff --git a/src/twisted/internet/test/test_gireactor.py b/src/twisted/internet/test/test_gireactor.py -index 43147fdce..6333218e7 100644 ---- a/src/twisted/internet/test/test_gireactor.py -+++ b/src/twisted/internet/test/test_gireactor.py -@@ -39,6 +39,7 @@ from twisted.python.compat import _PY3 - if gireactor is None: - skip = "gtk3/gi not importable" - -+EMERGE_TEST_OVERRIDE = os.environ.get("EMERGE_TEST_OVERRIDE", False) - - - class GApplicationRegistrationTests(ReactorBuilder, TestCase): -@@ -103,7 +104,7 @@ class GApplicationRegistrationTests(ReactorBuilder, TestCase): - - self.runReactor(app, reactor) - -- if gtk3reactor is None: -+ if gtk3reactor is None or EMERGE_TEST_OVERRIDE: - test_gtkApplicationActivate.skip = ( - "Gtk unavailable (may require running with X11 DISPLAY env set)") - -diff --git a/src/twisted/pair/test/test_ethernet.py b/src/twisted/pair/test/test_ethernet.py -index a4c3a5d19..fe9c57151 100644 ---- a/src/twisted/pair/test/test_ethernet.py -+++ b/src/twisted/pair/test/test_ethernet.py -@@ -1,11 +1,16 @@ - # Copyright (c) Twisted Matrix Laboratories. - # See LICENSE for details. -+ -+import os -+ - from twisted.trial import unittest - - from twisted.python import components - from twisted.pair import ethernet, raw - from zope.interface import implementer - -+EMERGE_TEST_OVERRIDE = os.environ.get("EMERGE_TEST_OVERRIDE", False) -+ - - @implementer(raw.IRawPacketProtocol) - class MyProtocol: -@@ -221,3 +226,7 @@ class EthernetTests(unittest.TestCase): - raise - else: - raise AssertionError('addProto must raise an exception for bad protocols') -+ -+ -+if EMERGE_TEST_OVERRIDE: -+ EthernetTests.skip = "This test does not work via FEATURES=test emerge twisted" -diff --git a/src/twisted/pair/test/test_ip.py b/src/twisted/pair/test/test_ip.py -index 0f192a357..0a99658ef 100644 ---- a/src/twisted/pair/test/test_ip.py -+++ b/src/twisted/pair/test/test_ip.py -@@ -1,11 +1,16 @@ - # Copyright (c) Twisted Matrix Laboratories. - # See LICENSE for details. -+ -+import os -+ - from twisted.trial import unittest - - from twisted.python import components - from twisted.pair import ip, raw - from zope import interface - -+EMERGE_TEST_OVERRIDE = os.environ.get("EMERGE_TEST_OVERRIDE", False) -+ - - @interface.implementer(raw.IRawDatagramProtocol) - class MyProtocol: -@@ -432,3 +437,6 @@ class IPTests(unittest.TestCase): - raise - else: - raise AssertionError('addProto must raise an exception for bad protocols') -+ -+if EMERGE_TEST_OVERRIDE: -+ IPTests.skip = "This test does not work via FEATURES=test emerge twisted" -diff --git a/src/twisted/pair/test/test_rawudp.py b/src/twisted/pair/test/test_rawudp.py -index 15aae10f1..dade38618 100644 ---- a/src/twisted/pair/test/test_rawudp.py -+++ b/src/twisted/pair/test/test_rawudp.py -@@ -1,12 +1,17 @@ - # Copyright (c) Twisted Matrix Laboratories. - # See LICENSE for details. -- - # -+ -+import os -+ - from twisted.trial import unittest - - from twisted.internet import protocol - from twisted.pair import rawudp - -+EMERGE_TEST_OVERRIDE = os.environ.get("EMERGE_TEST_OVERRIDE", False) -+ -+ - class MyProtocol(protocol.DatagramProtocol): - def __init__(self, expecting): - self.expecting = list(expecting) -@@ -325,3 +330,6 @@ class RawUDPTests(unittest.TestCase): - raise - else: - raise AssertionError('addProto must raise an exception for bad protocols') -+ -+if EMERGE_TEST_OVERRIDE: -+ RawUDPTests.skip = "This test does not work via FEATURES=test emerge twisted" -diff --git a/src/twisted/pair/test/test_tuntap.py b/src/twisted/pair/test/test_tuntap.py -index 5e2da6e0f..53e03a008 100644 ---- a/src/twisted/pair/test/test_tuntap.py -+++ b/src/twisted/pair/test/test_tuntap.py -@@ -64,6 +64,7 @@ if platformSkip is None: - else: - skip = platformSkip - -+EMERGE_TEST_OVERRIDE = os.environ.get("EMERGE_TEST_OVERRIDE", False) - - - @implementer(IReactorFDSet) -@@ -1417,3 +1418,18 @@ class RealIOSystemTests(IOSystemTestsMixin, SynchronousTestCase, - """ - General L{_IInputOutputSystem} tests applied to L{_RealSystem}. - """ -+ -+if EMERGE_TEST_OVERRIDE: -+ RealIOSystemTests.skip = "This test does not work via FEATURES=test emerge twisted" -+ MemoryIOSystemTests.skip = "This test does not work via FEATURES=test emerge twisted" -+ TapTests.skip = "This test does not work via FEATURES=test emerge twisted" -+ TunTests.skip = "This test does not work via FEATURES=test emerge twisted" -+ TunnelAddressEqualityTests.skip = "This test does not work via FEATURES=test emerge twisted" -+ TunnelAddressTests.skip = "This test does not work via FEATURES=test emerge twisted" -+ TuntapPortTests.skip = "This test does not work via FEATURES=test emerge twisted" -+ TunnelTests.skip = "This test does not work via FEATURES=test emerge twisted" -+ FakeTapDeviceTests.skip = "This test does not work via FEATURES=test emerge twisted" -+ FakeTapDeviceWithPITests.skip = "This test does not work via FEATURES=test emerge twisted" -+ FakeTunDeviceTests.skip = "This test does not work via FEATURES=test emerge twisted" -+ RealDeviceWithProtocolInformationTests.skip = "This test does not work via FEATURES=test emerge twisted" -+ RealDeviceWithoutProtocolInformationTests.skip = "This test does not work via FEATURES=test emerge twisted" -diff --git a/src/twisted/python/test/test_dist3.py b/src/twisted/python/test/test_dist3.py -index 3ce2bdd60..494674bc7 100644 ---- a/src/twisted/python/test/test_dist3.py -+++ b/src/twisted/python/test/test_dist3.py -@@ -53,3 +53,5 @@ class ModulesToInstallTests(TestCase): - test_exist.skip = "Only on Python 2" - else: - test_notexist.skip = "Only on Python 3" -+ -+ModulesToInstallTests.skip = "This is an upstream distribution test only" -diff --git a/src/twisted/test/test_ident.py b/src/twisted/test/test_ident.py -index d86b840e5..3cc40261f 100644 ---- a/src/twisted/test/test_ident.py -+++ b/src/twisted/test/test_ident.py -@@ -12,7 +12,7 @@ from twisted.protocols import ident - from twisted.python import failure - from twisted.internet import error - from twisted.internet import defer --from twisted.python.compat import NativeStringIO -+from twisted.python.compat import NativeStringIO, _PY3 - - from twisted.trial import unittest - from twisted.test.proto_helpers import StringTransport -@@ -216,6 +216,9 @@ class ProcMixinTests(unittest.TestCase): - """ - L{ident.ProcServerMixin.lookup} uses the Linux TCP process table. - """ -+ if not _PY3: -+ # test is broken in py2.7 -+ return - open_calls = [] - - def mocked_open(*args, **kwargs): -diff --git a/src/twisted/test/test_plugin.py b/src/twisted/test/test_plugin.py -index a23caa72b..a6d61858c 100644 ---- a/src/twisted/test/test_plugin.py -+++ b/src/twisted/test/test_plugin.py -@@ -29,6 +29,8 @@ else: - On python 2, import caches don't need to be invalidated. - """ - -+EMERGE_TEST_OVERRIDE = os.environ.get("EMERGE_TEST_OVERRIDE", False) -+ - - - class ITestPlugin(Interface): -@@ -327,6 +329,8 @@ class PluginTests(unittest.TestCase): - attainable, but an error should be logged to show that the cache - couldn't be updated. - """ -+ if EMERGE_TEST_OVERRIDE: -+ return - # Generate the cache - plugin.getCache(self.module) - -@@ -580,6 +584,8 @@ class DeveloperSetupTests(unittest.TestCase): - provide useful coverage on Windows due to the different meaning of - "read-only directory". - """ -+ if EMERGE_TEST_OVERRIDE: -+ return - self.unlockSystem() - self.sysplug.child('newstuff.py').setContent(pluginFileContents('one')) - self.lockSystem() -diff --git a/src/twisted/test/test_policies.py b/src/twisted/test/test_policies.py -index 3d92633d6..c08809a66 100644 ---- a/src/twisted/test/test_policies.py -+++ b/src/twisted/test/test_policies.py -@@ -7,6 +7,8 @@ Test code for policies. - - from __future__ import division, absolute_import - -+import os -+ - from zope.interface import Interface, implementer, implementedBy - - from twisted.python.compat import NativeStringIO -@@ -23,6 +25,7 @@ try: - except ImportError: - import __builtin__ as builtins - -+EMERGE_TEST_OVERRIDE = os.environ.get("EMERGE_TEST_OVERRIDE", False) - - - class SimpleProtocol(protocol.Protocol): -@@ -883,6 +886,8 @@ class LoggingFactoryTests(unittest.TestCase): - automatically opens a unique log file for that protocol and attaches - the logfile to the built protocol. - """ -+ if EMERGE_TEST_OVERRIDE: -+ return - open_calls = [] - open_rvalues = [] - -diff --git a/src/twisted/test/test_udp.py b/src/twisted/test/test_udp.py -index 6cf4583b2..86b513704 100644 ---- a/src/twisted/test/test_udp.py -+++ b/src/twisted/test/test_udp.py -@@ -8,6 +8,8 @@ Tests for implementations of L{IReactorUDP} and L{IReactorMulticast}. - - from __future__ import division, absolute_import - -+import os -+ - from twisted.trial import unittest - - from twisted.python.compat import intToBytes -@@ -15,6 +17,8 @@ from twisted.internet.defer import Deferred, gatherResults, maybeDeferred - from twisted.internet import protocol, reactor, error, defer, interfaces, udp - from twisted.python import runtime - -+EMERGE_TEST_OVERRIDE = os.environ.get("EMERGE_TEST_OVERRIDE", False) -+ - - class Mixin: - -@@ -699,3 +703,5 @@ if not interfaces.IReactorUDP(reactor, None): - ReactorShutdownInteractionTests.skip = "This reactor does not support UDP" - if not interfaces.IReactorMulticast(reactor, None): - MulticastTests.skip = "This reactor does not support multicast" -+elif EMERGE_TEST_OVERRIDE: -+ MulticastTests.skip = "This reactor test does not work via FEATURES=test emerge twisted" --- -2.12.1 - diff --git a/dev-python/twisted/files/twisted-17.9.0-Fix-test-on-Python-363.patch b/dev-python/twisted/files/twisted-17.9.0-Fix-test-on-Python-363.patch deleted file mode 100644 index ea7a480abace..000000000000 --- a/dev-python/twisted/files/twisted-17.9.0-Fix-test-on-Python-363.patch +++ /dev/null @@ -1,74 +0,0 @@ -From e58956fe12af7b41f6c1735ba7b14cba69e82a5e Mon Sep 17 00:00:00 2001 -From: Craig Rodrigues -Date: Fri, 6 Oct 2017 02:47:55 -0700 -Subject: [PATCH] Fix test on Python 3.6.3 - ---- - src/twisted/test/test_sslverify.py | 53 +++++++++++++++++++++++++++++------------------------ - 1 file changed, 29 insertions(+), 24 deletions(-) - -diff --git a/src/twisted/test/test_sslverify.py b/src/twisted/test/test_sslverify.py -index aca56f5..3fdc480 100644 ---- a/src/twisted/test/test_sslverify.py -+++ b/src/twisted/test/test_sslverify.py -@@ -3052,28 +3052,33 @@ class SelectVerifyImplementationTests(unittest.SynchronousTestCase): - in self.flushWarnings() - if warning["category"] == UserWarning) - -- if _PY3: -- importError = ( -- "'import of 'service_identity' halted; None in sys.modules'") -- else: -- importError = "'No module named service_identity'" -- -- expectedMessage = ( -- "You do not have a working installation of the " -- "service_identity module: {message}. Please install it from " -- " " -- "and make sure all of its dependencies are satisfied. " -- "Without the service_identity module, Twisted can perform only " -- "rudimentary TLS client hostname verification. Many valid " -- "certificate/hostname mappings may be rejected.").format( -- message=importError) -+ importErrors =[ -+ # Python 3.6.3 -+ "'import of service_identity halted; None in sys.modules'", -+ # Python 3 -+ "'import of 'service_identity' halted; None in sys.modules'", -+ # Python 2 -+ "'No module named service_identity'" -+ ] - -- self.assertEqual( -- (warning["message"], warning["filename"], warning["lineno"]), -- -- # Make sure we're abusing the warning system to a sufficient -- # degree: there is no filename or line number that makes sense for -- # this warning to "blame" for the problem. It is a system -- # misconfiguration. So the location information should be blank -- # (or as blank as we can make it). -- (expectedMessage, "", 0)) -+ expectedMessages = [] -+ for importError in importErrors: -+ expectedMessages.append( -+ "You do not have a working installation of the " -+ "service_identity module: {message}. Please install it from " -+ " " -+ "and make sure all of its dependencies are satisfied. " -+ "Without the service_identity module, Twisted can perform only" -+ " rudimentary TLS client hostname verification. Many valid " -+ "certificate/hostname mappings may be rejected.".format( -+ message=importError)) -+ -+ self.assertIn(warning["message"], expectedMessages) -+ -+ # Make sure we're abusing the warning system to a sufficient -+ # degree: there is no filename or line number that makes sense for -+ # this warning to "blame" for the problem. It is a system -+ # misconfiguration. So the location information should be blank -+ # (or as blank as we can make it). -+ self.assertEqual(warning["filename"], "") -+ self.assertEqual(warning["lineno"], 0) --- -libgit2 0.26.0 - diff --git a/dev-python/twisted/files/twisted-17.9.0-python-27-utf-8-fix.patch b/dev-python/twisted/files/twisted-17.9.0-python-27-utf-8-fix.patch deleted file mode 100644 index 7e3ec26bcfdb..000000000000 --- a/dev-python/twisted/files/twisted-17.9.0-python-27-utf-8-fix.patch +++ /dev/null @@ -1,47 +0,0 @@ -From c7db4c055e92509e5c19a051cbebea53034994ba Mon Sep 17 00:00:00 2001 -From: Brian Dolbec -Date: Wed, 25 Oct 2017 14:39:57 -0700 -Subject: [PATCH] python-2.7 utf-8 fixes - ---- - src/twisted/test/test_twistd.py | 14 ++++++++++++-- - 1 file changed, 12 insertions(+), 2 deletions(-) - -diff --git a/src/twisted/test/test_twistd.py b/src/twisted/test/test_twistd.py -index 3a9d337..4b0cf28 100644 ---- a/src/twisted/test/test_twistd.py -+++ b/src/twisted/test/test_twistd.py -@@ -1902,8 +1902,12 @@ class DaemonizeTests(unittest.TestCase): - message is Unicode, the child encodes the message as ascii - with backslash Unicode code points. - """ -+ if sys.hexversion >= 0x3000000: -+ reported_str = b'\u2022' -+ else: -+ reported_str = b'\xe2\x80\xa2' - self.assertErrorWritten(raised=u"\u2022", -- reported=b'1 RuntimeError: \\u2022') -+ reported=b'1 RuntimeError: ' + reported_str) - - - -@@ -2003,9 +2007,15 @@ class DaemonizeTests(unittest.TestCase): - unicode and too long, it's truncated by the child, even if - this splits a unicode escape sequence. - """ -+ if sys.hexversion >= 0x3000000: -+ reported_str = b'\\u2022' -+ length = 14 -+ else: -+ reported_str = b'\xe2\x80\xa2' -+ length = 28 - self.assertErrorWritten( - raised=u"\u2022" * 30, -- reported=b'1 RuntimeError: ' + b'\\u2022' * 14, -+ reported=b'1 RuntimeError: ' + reported_str * length, - ) - - --- -libgit2 0.26.0 - diff --git a/dev-python/twisted/files/twisted-18.4.0-Disable-writing-of-plugin-cache.patch b/dev-python/twisted/files/twisted-18.4.0-Disable-writing-of-plugin-cache.patch deleted file mode 100644 index 318304e58df3..000000000000 --- a/dev-python/twisted/files/twisted-18.4.0-Disable-writing-of-plugin-cache.patch +++ /dev/null @@ -1,25 +0,0 @@ -From cac07e9ef273b065eeebbeeaa27155c8402a36e1 Mon Sep 17 00:00:00 2001 -From: Brian Dolbec -Date: Sat, 7 Jul 2018 11:37:23 -0700 -Subject: [PATCH] Disable writing of plugin cache - ---- - src/twisted/plugin.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/twisted/plugin.py b/src/twisted/plugin.py -index 82522ee..e5849d6 100644 ---- a/src/twisted/plugin.py -+++ b/src/twisted/plugin.py -@@ -180,7 +180,7 @@ def getCache(module): - if pluginKey not in existingKeys: - del dropinDotCache[pluginKey] - needsWrite = True -- if needsWrite: -+ if needsWrite and os.environ.get("TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE") is None: - try: - dropinPath.setContent(pickle.dumps(dropinDotCache)) - except OSError as e: --- -libgit2 0.26.4 - diff --git a/dev-python/twisted/files/utf8_overrides.patch b/dev-python/twisted/files/utf8_overrides.patch deleted file mode 100644 index 41f48cebfd84..000000000000 --- a/dev-python/twisted/files/utf8_overrides.patch +++ /dev/null @@ -1,64 +0,0 @@ -From f8b2e95cc9bd1cbae565e1b4d576950961edc9a7 Mon Sep 17 00:00:00 2001 -From: Brian Dolbec -Date: Fri, 31 Mar 2017 09:40:16 -0700 -Subject: [PATCH] UTF8 test overrides: The DaemonizeTests SafeStrTests tests - may need to be run independantly - -Some other tests may leave python in a state that returns a different form of the b'\\u2022' -bytestring (b'\xe2\x80\xa2') which causes the tests to fail. -In StafeStrTests, the returned 't\\xfcst' != 't\xc3\xbcst' originally sent, but is just -the unicode equivalent. - -This adds an environment override which can be used to skip these test during a full -"trial twisted" run. The DaemonizeTests, SafeStrTests can then be run independantly -with a clean python interpreter. ---- - src/twisted/test/test_reflect.py | 6 ++++++ - src/twisted/test/test_twistd.py | 3 +++ - 2 files changed, 9 insertions(+) - -diff --git a/src/twisted/test/test_reflect.py b/src/twisted/test/test_reflect.py -index ff0c7fc9e..0c13b949b 100644 ---- a/src/twisted/test/test_reflect.py -+++ b/src/twisted/test/test_reflect.py -@@ -19,6 +19,9 @@ from twisted.python.reflect import ( - accumulateMethods, prefixedMethods, prefixedMethodNames, - addMethodNamesToDict, fullyQualifiedName) - -+UTF8_OVERRIDES = os.environ.get("UTF8_OVERRIDES", False) -+ -+ - - class Base(object): - """ -@@ -553,6 +556,9 @@ class SafeStrTests(TestCase): - x = b't\xc3\xbcst' - self.assertEqual(reflect.safe_str(x), x) - -+ if UTF8_OVERRIDES: -+ test_workingUtf8_2.skip = "test_workingUtf8_2 requires to be run independantly of other tests" -+ - - def test_workingUtf8_3(self): - """ -diff --git a/src/twisted/test/test_twistd.py b/src/twisted/test/test_twistd.py -index b74fe4a08..d55be16b9 100644 ---- a/src/twisted/test/test_twistd.py -+++ b/src/twisted/test/test_twistd.py -@@ -78,6 +78,7 @@ if getattr(os, 'setuid', None) is None: - else: - setuidSkip = None - -+UTF8_OVERRIDES = os.environ.get("UTF8_OVERRIDES", False) - - - def patchUserDatabase(patch, user, uid, group, gid): -@@ -1913,3 +1914,5 @@ class DaemonizeTests(unittest.TestCase): - - if _twistd_unix is None: - DaemonizeTests.skip = "twistd unix support not available" -+elif UTF8_OVERRIDES: -+ DaemonizeTests.skip = "twistd.DaemonizeTests testing needs to be run separately" --- -2.12.1 - diff --git a/dev-python/twisted/twisted-16.6.0-r3.ebuild b/dev-python/twisted/twisted-16.6.0-r3.ebuild deleted file mode 100644 index 07002498ec45..000000000000 --- a/dev-python/twisted/twisted-16.6.0-r3.ebuild +++ /dev/null @@ -1,185 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -PYTHON_COMPAT=( python2_7 python3_6) -PYTHON_REQ_USE="threads(+)" - -inherit eutils flag-o-matic distutils-r1 versionator - -TWISTED_PN="Twisted" -TWISTED_P="${TWISTED_PN}-${PV}" -TWISTED_RELEASE=$(get_version_component_range 1-2 "${PV}") - -DESCRIPTION="An asynchronous networking framework written in Python" -HOMEPAGE="https://www.twistedmatrix.com/trac/" -SRC_URI="https://twistedmatrix.com/Releases/${TWISTED_PN}" -SRC_URI="${SRC_URI}/${TWISTED_RELEASE}/${TWISTED_P}.tar.bz2 - https://dev.gentoo.org/~mgorny/dist/twisted-regen-cache.gz" - -# Dropped keywords due to new deps not keyworded -#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~x86 ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86" - -LICENSE="MIT" -SLOT="0" -IUSE="conch crypt http2 serial +soap test" -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-python/incremental-16.10.1[${PYTHON_USEDEP}] - >=dev-python/zope-interface-4.0.2[${PYTHON_USEDEP}] - conch? ( - dev-python/pyasn1[${PYTHON_USEDEP}] - >=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}] - >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] - ) - crypt? ( - >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] - dev-python/service_identity[${PYTHON_USEDEP}] - >=dev-python/idna-0.6[${PYTHON_USEDEP}] - ) - serial? ( dev-python/pyserial[${PYTHON_USEDEP}] ) - soap? ( $(python_gen_cond_dep 'dev-python/soappy[${PYTHON_USEDEP}]' python2_7) ) - http2? ( - >=dev-python/hyper-h2-2.5.0[${PYTHON_USEDEP}] - =dev-python/priority-1.1.0[${PYTHON_USEDEP}] - =dev-python/constantly-15.1.0[${PYTHON_USEDEP}] - !dev-python/twisted-core - !dev-python/twisted-conch - !dev-python/twisted-lore - !dev-python/twisted-mail - !dev-python/twisted-names - !dev-python/twisted-news - !dev-python/twisted-pair - !dev-python/twisted-runner - !dev-python/twisted-words - !dev-python/twisted-web -" -DEPEND=" - >=dev-python/incremental-16.10.1[${PYTHON_USEDEP}] - test? ( - dev-python/gmpy[${PYTHON_USEDEP}] - dev-python/pyasn1[${PYTHON_USEDEP}] - >=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}] - >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] - >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] - dev-python/service_identity[${PYTHON_USEDEP}] - dev-python/idna[${PYTHON_USEDEP}] - dev-python/pyserial[${PYTHON_USEDEP}] - >=dev-python/constantly-15.1.0[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - # Respect TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE variable. - "${FILESDIR}/${PN}-16.5.0-respect_TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE.patch" - "${FILESDIR}/test_main.patch" - "${FILESDIR}/utf8_overrides.patch" - "${FILESDIR}/${PN}-16.6.0-test-fixes.patch" -) - -S=${WORKDIR}/${TWISTED_P} - -python_prepare_all() { - # disable tests that don't work in our sandbox - # and other test failures due to our conditions - if use test ; then - # Remove since this is an upstream distribution test for making releases - rm src/twisted/python/test/test_release.py || die "rm src/twisted/python/test/test_release.py FAILED" - fi - distutils-r1_python_prepare_all -} - -python_compile() { - if ! python_is_python3; then - # Needed to make the sendmsg extension work - # (see https://twistedmatrix.com/trac/ticket/5701 ) - local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" - local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" - fi - - distutils-r1_python_compile -} - -python_test() { - distutils_install_for_testing - - export EMERGE_TEST_OVERRIDE=1 - export UTF8_OVERRIDES=1 - # workaround for the eclass not installing the entry points - # in the test environment. copy the old 16.3.2 start script - # to run the tests with - cp "${FILESDIR}"/trial "${TEST_DIR}" || die - chmod +x "${TEST_DIR}"/trial || die - - pushd "${TEST_DIR}" > /dev/null || die - - if ! "${TEST_DIR}"/trial twisted; then - die "Tests failed with ${EPYTHON}" - fi - # due to an anomoly in the tests, python doesn't return the correct form - # of the escape sequence. So run those test separately with a clean python interpreter - export UTF8_OVERRIDES=0 - if ! "${TEST_DIR}"/trial twisted.test.test_twistd.DaemonizeTests; then - die "DaemonizeTests failed with ${EPYTHON}" - fi - if ! "${TEST_DIR}"/trial twisted.test.test_reflect.SafeStrTests; then - die "SafeStrTests failed with ${EPYTHON}" - fi - - popd > /dev/null || die -} - -python_install() { - distutils-r1_python_install - - cd "${D%/}$(python_get_sitedir)" || die - - # own the dropin.cache so we don't leave orphans - touch twisted/plugins/dropin.cache || die - - python_doscript "${WORKDIR}"/twisted-regen-cache -} - -python_install_all() { - distutils-r1_python_install_all - - newconfd "${FILESDIR}/twistd.conf" twistd - newinitd "${FILESDIR}/twistd.init" twistd -} - -python_postinst() { - twisted-regen-cache || die -} - -pkg_postinst() { - python_foreach_impl python_postinst - - einfo "Install complete" - if use test ; then - einfo "" - einfo "Some tests have been disabled during testing due to" - einfo "known incompatibilities with the emerge sandboxes and/or" - einfo "not runnable as the root user." - einfo "For a complete test suite run on the code." - einfo "Run the tests as a normal user for each python it is installed to." - einfo " ie: $ python3.6 /usr/bin/trial twisted" - einfo "There are a few known python-2.7 errors due to some unicode issues" - einfo "which are different in Gentoo installed python-2.7" - fi -} - -python_postrm() { - rm -f "${ROOT%/}$(python_get_sitedir)/twisted/plugins/dropin.cache" || die -} - -pkg_postrm() { - # if we're removing the last version, remove the cache file - if [[ ! ${REPLACING_VERSIONS} ]]; then - python_foreach_impl python_postrm - fi -} diff --git a/dev-python/twisted/twisted-18.4.0.ebuild b/dev-python/twisted/twisted-18.4.0.ebuild deleted file mode 100644 index 131a2e05578d..000000000000 --- a/dev-python/twisted/twisted-18.4.0.ebuild +++ /dev/null @@ -1,195 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python2_7 python3_6 ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -TWISTED_PN="Twisted" -TWISTED_P="${TWISTED_PN}-${PV}" -TWISTED_RELEASE=$(ver_cut 1-2) - -DESCRIPTION="An asynchronous networking framework written in Python" -HOMEPAGE="https://www.twistedmatrix.com/trac/" -SRC_URI="https://twistedmatrix.com/Releases/${TWISTED_PN}" -SRC_URI="${SRC_URI}/${TWISTED_RELEASE}/${TWISTED_P}.tar.bz2 - https://dev.gentoo.org/~mgorny/dist/twisted-regen-cache.gz" - -# Dropped keywords due to new deps not keyworded -#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~x86 ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~x86" - -LICENSE="MIT" -SLOT="0" -IUSE="conch crypt http2 serial +soap test" -RESTRICT="!test? ( test )" - -# openssh-7.6_p1 test failures: bug https://twistedmatrix.com/trac/ticket/9311 -RDEPEND=" - >=dev-python/incremental-16.10.1[${PYTHON_USEDEP}] - >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] - conch? ( - dev-python/pyasn1[${PYTHON_USEDEP}] - >=dev-python/cryptography-1.5.0[${PYTHON_USEDEP}] - >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] - ) - crypt? ( - >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] - dev-python/service_identity[${PYTHON_USEDEP}] - >=dev-python/idna-0.6[${PYTHON_USEDEP}] - ) - serial? ( >=dev-python/pyserial-3.0[${PYTHON_USEDEP}] ) - soap? ( $(python_gen_cond_dep 'dev-python/soappy[${PYTHON_USEDEP}]' python2_7) ) - http2? ( - >=dev-python/hyper-h2-3.0.0[${PYTHON_USEDEP}] - =dev-python/priority-1.1.0[${PYTHON_USEDEP}] - =dev-python/constantly-15.1.0[${PYTHON_USEDEP}] - >=dev-python/automat-0.3.0[${PYTHON_USEDEP}] - >=dev-python/hyperlink-17.1.1[${PYTHON_USEDEP}] - !dev-python/twisted-core - !dev-python/twisted-conch - !dev-python/twisted-lore - !dev-python/twisted-mail - !dev-python/twisted-names - !dev-python/twisted-news - !dev-python/twisted-pair - !dev-python/twisted-runner - !dev-python/twisted-words - !dev-python/twisted-web -" -DEPEND=" - >=dev-python/incremental-16.10.1[${PYTHON_USEDEP}] - test? ( - dev-python/gmpy[${PYTHON_USEDEP}] - dev-python/pyasn1[${PYTHON_USEDEP}] - >=dev-python/cryptography-0.9.1[${PYTHON_USEDEP}] - >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] - >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}] - dev-python/service_identity[${PYTHON_USEDEP}] - dev-python/idna[${PYTHON_USEDEP}] - dev-python/pyserial[${PYTHON_USEDEP}] - >=dev-python/constantly-15.1.0[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - # ${PN}-17.9.0-Fix-test-on-Python-363.patch" <== version specific from upstream - # Respect TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE variable. - "${FILESDIR}/${PN}-18.4.0-Disable-writing-of-plugin-cache.patch" - "${FILESDIR}/test_main.patch" - "${FILESDIR}/utf8_overrides.patch" - "${FILESDIR}/${PN}-16.6.0-test-fixes.patch" - "${FILESDIR}/${PN}-17.9.0-python-27-utf-8-fix.patch" -) - -S=${WORKDIR}/${TWISTED_P} - -python_prepare_all() { - # disable tests that don't work in our sandbox - # and other test failures due to our conditions - if use test ; then - # Remove since this is an upstream distribution test for making releases - rm src/twisted/python/test/test_release.py || die "rm src/twisted/python/test/test_release.py FAILED" - - # Conch doesn't work with latest >=OpenSSH 7.6 - # - https://twistedmatrix.com/trac/ticket/9311 - # - https://twistedmatrix.com/trac/ticket/9515 - rm src/twisted/conch/test/test_conch.py || die "rm src/twisted/conch/test/test_conch.py FAILED" - rm src/twisted/conch/test/test_cftp.py || die "rm src/twisted/conch/test/test_cftp.py FAILED" - fi - distutils-r1_python_prepare_all -} - -python_compile() { - if ! python_is_python3; then - # Needed to make the sendmsg extension work - # (see https://twistedmatrix.com/trac/ticket/5701 ) - local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" - local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" - fi - - distutils-r1_python_compile -} - -python_test() { - distutils_install_for_testing - - export EMERGE_TEST_OVERRIDE=1 - export UTF8_OVERRIDES=1 - unset TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE - # workaround for the eclass not installing the entry points - # in the test environment. copy the old 16.3.2 start script - # to run the tests with - cp "${FILESDIR}"/trial "${TEST_DIR}" || die - chmod +x "${TEST_DIR}"/trial || die - - pushd "${TEST_DIR}" > /dev/null || die - - if ! "${TEST_DIR}"/trial twisted; then - die "Tests failed with ${EPYTHON}" - fi - # due to an anomoly in the tests, python doesn't return the correct form - # of the escape sequence. So run those test separately with a clean python interpreter - export UTF8_OVERRIDES=0 - if ! "${TEST_DIR}"/trial twisted.test.test_twistd.DaemonizeTests; then - die "DaemonizeTests failed with ${EPYTHON}" - fi - if ! "${TEST_DIR}"/trial twisted.test.test_reflect.SafeStrTests; then - die "SafeStrTests failed with ${EPYTHON}" - fi - - popd > /dev/null || die -} - -python_install() { - distutils-r1_python_install - - cd "${D}$(python_get_sitedir)" || die - - # own the dropin.cache so we don't leave orphans - touch twisted/plugins/dropin.cache || die - - python_doscript "${WORKDIR}"/twisted-regen-cache -} - -python_install_all() { - distutils-r1_python_install_all - - newconfd "${FILESDIR}/twistd.conf" twistd - newinitd "${FILESDIR}/twistd.init" twistd -} - -python_postinst() { - twisted-regen-cache || die -} - -pkg_postinst() { - python_foreach_impl python_postinst - - einfo "Install complete" - if use test ; then - einfo "" - einfo "Some tests have been disabled during testing due to" - einfo "known incompatibilities with the emerge sandboxes and/or" - einfo "not runnable as the root user." - einfo "For a complete test suite run on the code." - einfo "Run the tests as a normal user for each python it is installed to." - einfo " ie: $ python3.6 /usr/bin/trial twisted" - fi -} - -python_postrm() { - rm -f "${ROOT}$(python_get_sitedir)/twisted/plugins/dropin.cache" || die -} - -pkg_postrm() { - # if we're removing the last version, remove the cache file - if [[ ! ${REPLACING_VERSIONS} ]]; then - python_foreach_impl python_postrm - fi -} diff --git a/dev-python/twisted/twisted-19.10.0.ebuild b/dev-python/twisted/twisted-19.10.0.ebuild index 720e3b98f647..ed3222af413e 100644 --- a/dev-python/twisted/twisted-19.10.0.ebuild +++ b/dev-python/twisted/twisted-19.10.0.ebuild @@ -19,11 +19,11 @@ SRC_URI="${SRC_URI}/${TWISTED_RELEASE}/${TWISTED_P}.tar.bz2 https://dev.gentoo.org/~mgorny/dist/twisted-regen-cache.gz" S=${WORKDIR}/${TWISTED_P} -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux" LICENSE="MIT" SLOT="0" -IUSE="conch crypt http2 serial +soap test" +IUSE="conch crypt http2 serial test" RESTRICT="!test? ( test )" RDEPEND=" @@ -45,7 +45,6 @@ RDEPEND=" >=dev-python/idna-0.6[${PYTHON_USEDEP}] ) serial? ( >=dev-python/pyserial-3.0[${PYTHON_USEDEP}] ) - soap? ( $(python_gen_cond_dep 'dev-python/soappy[${PYTHON_USEDEP}]' python2_7) ) http2? ( >=dev-python/hyper-h2-3.0.0[${PYTHON_USEDEP}]