Ticket #1274: raise-twisted-version-dep-2.darcs.patch

File raise-twisted-version-dep-2.darcs.patch, 13.4 KB (added by davidsarah, at 2011-06-12T01:11:38Z)

Raise Twisted version requirement to >= 9.0.0 (at both setup- and install-time), in order to avoid an indirect dependency on pywin32 for Windows. refs #1274

Line 
11 patch for repository davidsarah@dev.allmydata.org:/home/darcs/tahoe/trunk:
2
3Sun Jun 12 02:09:42 BST 2011  david-sarah@jacaranda.org
4  * Raise Twisted version requirement to >= 9.0.0 (at both setup- and install-time), in order to avoid an indirect dependency on pywin32 for Windows. refs #1274
5
6New patches:
7
8[Raise Twisted version requirement to >= 9.0.0 (at both setup- and install-time), in order to avoid an indirect dependency on pywin32 for Windows. refs #1274
9david-sarah@jacaranda.org**20110612010942
10 Ignore-this: 2a1e03a4aa0676bde9dc327bcdfa057
11] {
12hunk ./NEWS.rst 14
13   will throw an exception if they gather stats from a new storage
14   server and it sends a "None" for a percentile. (`#1392`_)
15 
16+Compatibility and Dependencies
17+''''''''''''''''''''''''''''''
18+
19+- The Twisted dependency was raised to 9.0.0. This removes an indirect
20+  dependency that older versions of Twisted had on pywin32 for Windows
21+  platforms. (`#1274`_)
22+
23 
24 Release 1.8.2 (2011-01-30)
25 --------------------------
26hunk ./docs/quickstart.rst 41
27 directory has no spaces in it (e.g. on Windows, do not install Python
28 in the "Program Files" directory).
29 
30-If you are on Windows, you now must manually install the pywin32
31-package from `the pywin32 site
32-<http://sourceforge.net/projects/pywin32/files/>`_ before getting
33-Tahoe-LAFS. Make sure to get the correct file for the version of Python
34-you are using -- e.g. ending in "py2.6.exe" for Python v2.6. If using
35-64-bit Windows, the file should have "win-amd64" in its name.
36-
37 Get Tahoe-LAFS
38 --------------
39 
40hunk ./setup.py 144
41 # This only matters when Twisted is not already installed.
42 # See http://divmod.org/trac/ticket/2629
43 # Retire this hack if/when we require Nevow >= 0.9.33.
44-setup_requires.append('Twisted >= 2.4.0')
45+setup_requires += [req for req in install_requires if req.startswith('Twisted')]
46 
47 # setuptools_darcs is required to produce complete distributions (such
48 # as with "sdist" or "bdist_egg"), unless there is a
49hunk ./src/allmydata/_auto_deps.py 19
50 
51     "zope.interface",
52 
53-    "Twisted >= 2.4.0",
54+    # Twisted 9.0.0 removed a dependency on pywin32 on Windows.
55+    "Twisted >= 9.0.0",
56 
57     # foolscap < 0.5.1 had a performance bug which spent
58     # O(N**2) CPU for transferring large mutable files
59}
60
61Context:
62
63[docs: three minor fixes
64zooko@zooko.com**20110610121656
65 Ignore-this: fec96579eb95aceb2ad5fc01a814c8a2
66 CREDITS for arc for stats tweak
67 fix link to .zip file in quickstart.rst (thanks to ChosenOne for noticing)
68 English usage tweak
69]
70[server.py:  get_latencies now reports percentiles _only_ if there are sufficient observations for the interpretation of the percentile to be unambiguous.
71wilcoxjg@gmail.com**20110527120135
72 Ignore-this: 2e7029764bffc60e26f471d7c2b6611e
73 interfaces.py:  modified the return type of RIStatsProvider.get_stats to allow for None as a return value
74 NEWS.rst, stats.py: documentation of change to get_latencies
75 stats.rst: now documents percentile modification in get_latencies
76 test_storage.py:  test_latencies now expects None in output categories that contain too few samples for the associated percentile to be unambiguously reported.
77 fixes #1392
78]
79[corrected "k must never be smaller than N" to "k must never be greater than N"
80secorp@allmydata.org**20110425010308
81 Ignore-this: 233129505d6c70860087f22541805eac
82]
83[docs/running.rst: fix stray HTML (not .rst) link noticed by ChosenOne.
84david-sarah@jacaranda.org**20110609223719
85 Ignore-this: fc50ac9c94792dcac6f1067df8ac0d4a
86]
87[docs: revert link in relnotes.txt from NEWS.rst to NEWS, since the former did not exist at revision 5000.
88david-sarah@jacaranda.org**20110517011214
89 Ignore-this: 6a5be6e70241e3ec0575641f64343df7
90]
91[docs: convert NEWS to NEWS.rst and change all references to it.
92david-sarah@jacaranda.org**20110517010255
93 Ignore-this: a820b93ea10577c77e9c8206dbfe770d
94]
95[docs: remove out-of-date docs/testgrid/introducer.furl and containing directory. fixes #1404
96david-sarah@jacaranda.org**20110512140559
97 Ignore-this: 784548fc5367fac5450df1c46890876d
98]
99[scripts/common.py: don't assume that the default alias is always 'tahoe' (it is, but the API of get_alias doesn't say so). refs #1342
100david-sarah@jacaranda.org**20110130164923
101 Ignore-this: a271e77ce81d84bb4c43645b891d92eb
102]
103[setup: don't catch all Exception from check_requirement(), but only PackagingError and ImportError
104zooko@zooko.com**20110128142006
105 Ignore-this: 57d4bc9298b711e4bc9dc832c75295de
106 I noticed this because I had accidentally inserted a bug which caused AssertionError to be raised from check_requirement().
107]
108[M-x whitespace-cleanup
109zooko@zooko.com**20110510193653
110 Ignore-this: dea02f831298c0f65ad096960e7df5c7
111]
112[docs: fix typo in running.rst, thanks to arch_o_median
113zooko@zooko.com**20110510193633
114 Ignore-this: ca06de166a46abbc61140513918e79e8
115]
116[relnotes.txt: don't claim to work on Cygwin (which has been untested for some time). refs #1342
117david-sarah@jacaranda.org**20110204204902
118 Ignore-this: 85ef118a48453d93fa4cddc32d65b25b
119]
120[relnotes.txt: forseeable -> foreseeable. refs #1342
121david-sarah@jacaranda.org**20110204204116
122 Ignore-this: 746debc4d82f4031ebf75ab4031b3a9
123]
124[replace remaining .html docs with .rst docs
125zooko@zooko.com**20110510191650
126 Ignore-this: d557d960a986d4ac8216d1677d236399
127 Remove install.html (long since deprecated).
128 Also replace some obsolete references to install.html with references to quickstart.rst.
129 Fix some broken internal references within docs/historical/historical_known_issues.txt.
130 Thanks to Ravi Pinjala and Patrick McDonald.
131 refs #1227
132]
133[docs: FTP-and-SFTP.rst: fix a minor error and update the information about which version of Twisted fixes #1297
134zooko@zooko.com**20110428055232
135 Ignore-this: b63cfb4ebdbe32fb3b5f885255db4d39
136]
137[munin tahoe_files plugin: fix incorrect file count
138francois@ctrlaltdel.ch**20110428055312
139 Ignore-this: 334ba49a0bbd93b4a7b06a25697aba34
140 fixes #1391
141]
142[Fix a test failure in test_package_initialization on Python 2.4.x due to exceptions being stringified differently than in later versions of Python. refs #1389
143david-sarah@jacaranda.org**20110411190738
144 Ignore-this: 7847d26bc117c328c679f08a7baee519
145]
146[tests: add test for including the ImportError message and traceback entry in the summary of errors from importing dependencies. refs #1389
147david-sarah@jacaranda.org**20110410155844
148 Ignore-this: fbecdbeb0d06a0f875fe8d4030aabafa
149]
150[allmydata/__init__.py: preserve the message and last traceback entry (file, line number, function, and source line) of ImportErrors in the package versions string. fixes #1389
151david-sarah@jacaranda.org**20110410155705
152 Ignore-this: 2f87b8b327906cf8bfca9440a0904900
153]
154[remove unused variable detected by pyflakes
155zooko@zooko.com**20110407172231
156 Ignore-this: 7344652d5e0720af822070d91f03daf9
157]
158[allmydata/__init__.py: Nicer reporting of unparseable version numbers in dependencies. fixes #1388
159david-sarah@jacaranda.org**20110401202750
160 Ignore-this: 9c6bd599259d2405e1caadbb3e0d8c7f
161]
162[update FTP-and-SFTP.rst: the necessary patch is included in Twisted-10.1
163Brian Warner <warner@lothar.com>**20110325232511
164 Ignore-this: d5307faa6900f143193bfbe14e0f01a
165]
166[control.py: remove all uses of s.get_serverid()
167warner@lothar.com**20110227011203
168 Ignore-this: f80a787953bd7fa3d40e828bde00e855
169]
170[web: remove some uses of s.get_serverid(), not all
171warner@lothar.com**20110227011159
172 Ignore-this: a9347d9cf6436537a47edc6efde9f8be
173]
174[immutable/downloader/fetcher.py: remove all get_serverid() calls
175warner@lothar.com**20110227011156
176 Ignore-this: fb5ef018ade1749348b546ec24f7f09a
177]
178[immutable/downloader/fetcher.py: fix diversity bug in server-response handling
179warner@lothar.com**20110227011153
180 Ignore-this: bcd62232c9159371ae8a16ff63d22c1b
181 
182 When blocks terminate (either COMPLETE or CORRUPT/DEAD/BADSEGNUM), the
183 _shares_from_server dict was being popped incorrectly (using shnum as the
184 index instead of serverid). I'm still thinking through the consequences of
185 this bug. It was probably benign and really hard to detect. I think it would
186 cause us to incorrectly believe that we're pulling too many shares from a
187 server, and thus prefer a different server rather than asking for a second
188 share from the first server. The diversity code is intended to spread out the
189 number of shares simultaneously being requested from each server, but with
190 this bug, it might be spreading out the total number of shares requested at
191 all, not just simultaneously. (note that SegmentFetcher is scoped to a single
192 segment, so the effect doesn't last very long).
193]
194[immutable/downloader/share.py: reduce get_serverid(), one left, update ext deps
195warner@lothar.com**20110227011150
196 Ignore-this: d8d56dd8e7b280792b40105e13664554
197 
198 test_download.py: create+check MyShare instances better, make sure they share
199 Server objects, now that finder.py cares
200]
201[immutable/downloader/finder.py: reduce use of get_serverid(), one left
202warner@lothar.com**20110227011146
203 Ignore-this: 5785be173b491ae8a78faf5142892020
204]
205[immutable/offloaded.py: reduce use of get_serverid() a bit more
206warner@lothar.com**20110227011142
207 Ignore-this: b48acc1b2ae1b311da7f3ba4ffba38f
208]
209[immutable/upload.py: reduce use of get_serverid()
210warner@lothar.com**20110227011138
211 Ignore-this: ffdd7ff32bca890782119a6e9f1495f6
212]
213[immutable/checker.py: remove some uses of s.get_serverid(), not all
214warner@lothar.com**20110227011134
215 Ignore-this: e480a37efa9e94e8016d826c492f626e
216]
217[add remaining get_* methods to storage_client.Server, NoNetworkServer, and
218warner@lothar.com**20110227011132
219 Ignore-this: 6078279ddf42b179996a4b53bee8c421
220 MockIServer stubs
221]
222[upload.py: rearrange _make_trackers a bit, no behavior changes
223warner@lothar.com**20110227011128
224 Ignore-this: 296d4819e2af452b107177aef6ebb40f
225]
226[happinessutil.py: finally rename merge_peers to merge_servers
227warner@lothar.com**20110227011124
228 Ignore-this: c8cd381fea1dd888899cb71e4f86de6e
229]
230[test_upload.py: factor out FakeServerTracker
231warner@lothar.com**20110227011120
232 Ignore-this: 6c182cba90e908221099472cc159325b
233]
234[test_upload.py: server-vs-tracker cleanup
235warner@lothar.com**20110227011115
236 Ignore-this: 2915133be1a3ba456e8603885437e03
237]
238[happinessutil.py: server-vs-tracker cleanup
239warner@lothar.com**20110227011111
240 Ignore-this: b856c84033562d7d718cae7cb01085a9
241]
242[upload.py: more tracker-vs-server cleanup
243warner@lothar.com**20110227011107
244 Ignore-this: bb75ed2afef55e47c085b35def2de315
245]
246[upload.py: fix var names to avoid confusion between 'trackers' and 'servers'
247warner@lothar.com**20110227011103
248 Ignore-this: 5d5e3415b7d2732d92f42413c25d205d
249]
250[refactor: s/peer/server/ in immutable/upload, happinessutil.py, test_upload
251warner@lothar.com**20110227011100
252 Ignore-this: 7ea858755cbe5896ac212a925840fe68
253 
254 No behavioral changes, just updating variable/method names and log messages.
255 The effects outside these three files should be minimal: some exception
256 messages changed (to say "server" instead of "peer"), and some internal class
257 names were changed. A few things still use "peer" to minimize external
258 changes, like UploadResults.timings["peer_selection"] and
259 happinessutil.merge_peers, which can be changed later.
260]
261[storage_client.py: clean up test_add_server/test_add_descriptor, remove .test_servers
262warner@lothar.com**20110227011056
263 Ignore-this: efad933e78179d3d5fdcd6d1ef2b19cc
264]
265[test_client.py, upload.py:: remove KiB/MiB/etc constants, and other dead code
266warner@lothar.com**20110227011051
267 Ignore-this: dc83c5794c2afc4f81e592f689c0dc2d
268]
269[test: increase timeout on a network test because Francois's ARM machine hit that timeout
270zooko@zooko.com**20110317165909
271 Ignore-this: 380c345cdcbd196268ca5b65664ac85b
272 I'm skeptical that the test was proceeding correctly but ran out of time. It seems more likely that it had gotten hung. But if we raise the timeout to an even more extravagant number then we can be even more certain that the test was never going to finish.
273]
274[docs/configuration.rst: add a "Frontend Configuration" section
275Brian Warner <warner@lothar.com>**20110222014323
276 Ignore-this: 657018aa501fe4f0efef9851628444ca
277 
278 this points to docs/frontends/*.rst, which were previously underlinked
279]
280[web/filenode.py: avoid calling req.finish() on closed HTTP connections. Closes #1366
281"Brian Warner <warner@lothar.com>"**20110221061544
282 Ignore-this: 799d4de19933f2309b3c0c19a63bb888
283]
284[Add unit tests for cross_check_pkg_resources_versus_import, and a regression test for ref #1355. This requires a little refactoring to make it testable.
285david-sarah@jacaranda.org**20110221015817
286 Ignore-this: 51d181698f8c20d3aca58b057e9c475a
287]
288[allmydata/__init__.py: .name was used in place of the correct .__name__ when printing an exception. Also, robustify string formatting by using %r instead of %s in some places. fixes #1355.
289david-sarah@jacaranda.org**20110221020125
290 Ignore-this: b0744ed58f161bf188e037bad077fc48
291]
292[Refactor StorageFarmBroker handling of servers
293Brian Warner <warner@lothar.com>**20110221015804
294 Ignore-this: 842144ed92f5717699b8f580eab32a51
295 
296 Pass around IServer instance instead of (peerid, rref) tuple. Replace
297 "descriptor" with "server". Other replacements:
298 
299  get_all_servers -> get_connected_servers/get_known_servers
300  get_servers_for_index -> get_servers_for_psi (now returns IServers)
301 
302 This change still needs to be pushed further down: lots of code is now
303 getting the IServer and then distributing (peerid, rref) internally.
304 Instead, it ought to distribute the IServer internally and delay
305 extracting a serverid or rref until the last moment.
306 
307 no_network.py was updated to retain parallelism.
308]
309[TAG allmydata-tahoe-1.8.2
310warner@lothar.com**20110131020101]
311Patch bundle hash:
3123a5a0d1baca7bb82afabc63e0ba1e0a8ed17c0f3