Ticket #1454: simplify-makefile-and-setup-py.darcs.patch

File simplify-makefile-and-setup-py.darcs.patch, 27.7 KB (added by davidsarah, at 2011-08-01T04:24:29Z)

Makefile and setup.py: remove setup.py commands that we no longer need, and their uses in the Makefile. Delete a stale and incorrect comment about updating _version.py. Also fix some coding style checks in the Makefile to operate on all source files. (This isn't strictly to do with #1454, but since it also touches the Makefile I'll put it here.)

Line 
11 patch for repository davidsarah@dev.allmydata.org:/home/darcs/tahoe/trunk:
2
3Mon Aug  1 04:19:52 BST 2011  david-sarah@jacaranda.org
4  * Makefile and setup.py: remove setup.py commands that we no longer need, and their uses in the Makefile. Delete a stale and incorrect comment about updating _version.py. Also fix some coding style checks in the Makefile to operate on all source files.
5
6New patches:
7
8[Makefile and setup.py: remove setup.py commands that we no longer need, and their uses in the Makefile. Delete a stale and incorrect comment about updating _version.py. Also fix some coding style checks in the Makefile to operate on all source files.
9david-sarah@jacaranda.org**20110801031952
10 Ignore-this: 80a435dee3bc6e29058d4b37ff579922
11] {
12hunk ./Makefile 12
13 # setup.py will extend sys.path to include our support/lib/... directory
14 # itself. It will also create it in the beginning of the 'develop' command.
15 
16-PP=$(shell $(PYTHON) setup.py -q show_pythonpath)
17-RUNPP=$(PYTHON) setup.py run_with_pythonpath
18 TAHOE=$(PYTHON) bin/tahoe
19hunk ./Makefile 13
20+SOURCES=src/allmydata src/buildtest static misc/build_helpers bin/tahoe-script.template twisted setup.py
21 
22 .PHONY: make-version build
23 
24hunk ./Makefile 23
25 make-version:
26        $(PYTHON) ./setup.py darcsver --count-all-patches
27 
28-# We want src/allmydata/_version.py to be up-to-date, but it's a fairly
29-# expensive operation (about 6 seconds on a just-before-0.7.0 tree, probably
30-# because of the 332 patches since the last tag), and we've removed the need
31-# for an explicit 'build' step by removing the C code from src/allmydata and
32-# by running everything in place. It would be neat to do:
33-#
34-#src/allmydata/_version.py: _darcs/patches
35-#      $(MAKE) make-version
36-#
37-# since that would update the embedded version string each time new darcs
38-# patches were pulled, but without an obligatory 'build' step this rule
39-# wouldn't be run frequently enough anyways.
40-#
41-# So instead, I'll just make sure that we update the version at least once
42-# when we first start using the tree, and again whenever an explicit
43-# 'make-version' is run, since then at least the developer has some means to
44-# update things. It would be nice if 'make clean' deleted any
45-# automatically-generated _version.py too, so that 'make clean; make all'
46-# could be useable as a "what the heck is going on, get me back to a clean
47-# state', but we need 'make clean' to work on non-darcs trees without
48-# destroying useful information.
49-
50 .built:
51        $(MAKE) build
52 
53hunk ./Makefile 29
54 src/allmydata/_version.py:
55        $(MAKE) make-version
56 
57-build: src/allmydata/_version.py
58+# It is unnecessary to have this depend on build or src/allmydata/_version.py,
59+# since 'setup.py build' always updates the version using 'darcsver --count-all-patches'.
60+build:
61        $(PYTHON) setup.py build
62        touch .built
63 
64hunk ./Makefile 40
65 # 'make install PREFIX=/usr/local/stow/tahoe-N.N' will do the same, but to
66 # a different location
67 
68-install: src/allmydata/_version.py
69+install:
70 ifdef PREFIX
71        mkdir -p $(PREFIX)
72        $(PYTHON) ./setup.py install --single-version-externally-managed \
73hunk ./Makefile 72
74 
75 check: test
76 
77-test-coverage: build src/allmydata/_version.py
78+test-coverage: build
79        rm -f .coverage
80        $(TAHOE) debug trial --reporter=bwverbose-coverage $(TEST)
81 
82hunk ./Makefile 126
83 
84 
85 pyflakes:
86-       $(PYTHON) -OOu `which pyflakes` src/allmydata static misc/build_helpers bin/tahoe-script.template twisted setup.py |sort |uniq
87+       $(PYTHON) -OOu `which pyflakes` $(SOURCES) |sort |uniq
88+
89 check-umids:
90hunk ./Makefile 129
91-       $(PYTHON) misc/coding_tools/check-umids.py `find src/allmydata -name '*.py'`
92+       $(PYTHON) misc/coding_tools/check-umids.py `find $(SOURCES) -name '*.py'`
93 
94 count-lines:
95        @echo -n "files: "
96hunk ./Makefile 141
97 
98 check-memory: .built
99        rm -rf _test_memory
100-       $(RUNPP) -p -c "src/allmydata/test/check_memory.py upload"
101-       $(RUNPP) -p -c "src/allmydata/test/check_memory.py upload-self"
102-       $(RUNPP) -p -c "src/allmydata/test/check_memory.py upload-POST"
103-       $(RUNPP) -p -c "src/allmydata/test/check_memory.py download"
104-       $(RUNPP) -p -c "src/allmydata/test/check_memory.py download-GET"
105-       $(RUNPP) -p -c "src/allmydata/test/check_memory.py download-GET-slow"
106-       $(RUNPP) -p -c "src/allmydata/test/check_memory.py receive"
107+       $(TAHOE) @src/allmydata/test/check_memory.py upload
108+       $(TAHOE) @src/allmydata/test/check_memory.py upload-self
109+       $(TAHOE) @src/allmydata/test/check_memory.py upload-POST
110+       $(TAHOE) @src/allmydata/test/check_memory.py download
111+       $(TAHOE) @src/allmydata/test/check_memory.py download-GET
112+       $(TAHOE) @src/allmydata/test/check_memory.py download-GET-slow
113+       $(TAHOE) @src/allmydata/test/check_memory.py receive
114 
115 check-memory-once: .built
116        rm -rf _test_memory
117hunk ./Makefile 151
118-       $(RUNPP) -p -c "src/allmydata/test/check_memory.py $(MODE)"
119+       $(TAHOE) @src/allmydata/test/check_memory.py $(MODE)
120 
121 # The check-speed target uses a pre-established client node to run a canned
122 # set of performance tests against a test network that is also
123hunk ./Makefile 170
124        -$(TAHOE) stop $(TESTCLIENTDIR)
125        $(TAHOE) start $(TESTCLIENTDIR)
126        sleep 5
127-       $(PYTHON) src/allmydata/test/check_speed.py $(TESTCLIENTDIR)
128+       $(TAHOE) @src/allmydata/test/check_speed.py $(TESTCLIENTDIR)
129        $(TAHOE) stop $(TESTCLIENTDIR)
130 
131 # The check-grid target also uses a pre-established client node, along with a
132hunk ./Makefile 178
133 # in src/allmydata/test/check_grid.py to see how to set this up.
134 check-grid: .built
135        if [ -z '$(TESTCLIENTDIR)' ]; then exit 1; fi
136-       $(PYTHON) src/allmydata/test/check_grid.py $(TESTCLIENTDIR) bin/tahoe
137+       $(TAHOE) @src/allmydata/test/check_grid.py $(TESTCLIENTDIR) bin/tahoe
138 
139 bench-dirnode: .built
140hunk ./Makefile 181
141-       $(RUNPP) -p -c src/allmydata/test/bench_dirnode.py
142+       $(TAHOE) @src/allmydata/test/bench_dirnode.py
143 
144 # 'make repl' is a simple-to-type command to get a Python interpreter loop
145 # from which you can type 'import allmydata'
146hunk ./Makefile 199
147        find . |grep -vEe "_darcs|allfiles.tmp|src/allmydata/_(version|appname).py" |sort >allfiles.tmp.new
148        diff allfiles.tmp.old allfiles.tmp.new
149 
150+# It would be nice if 'make clean' deleted any automatically-generated
151+# _version.py too, so that 'make clean; make all' could be useable as a
152+# "what the heck is going on, get me back to a clean state', but we need
153+# 'make clean' to work on non-darcs trees without destroying useful information.
154 clean:
155        rm -rf build _trial_temp _test_memory .built
156        rm -f `find src *.egg -name '*.so' -or -name '*.pyc'`
157hunk ./Makefile 215
158        rm -f bin/tahoe bin/tahoe.pyscript
159 
160 find-trailing-spaces:
161-       $(PYTHON) misc/coding_tools/find-trailing-spaces.py -r src
162+       $(PYTHON) misc/coding_tools/find-trailing-spaces.py -r $(SOURCES)
163 
164 # The test-desert-island target grabs the tahoe-deps tarball, unpacks it,
165 # does a build, then asserts that the build did not try to download anything
166hunk ./setup.py 187
167 tests_require=[]
168 
169 
170-class ShowSupportLib(Command):
171-    user_options = []
172-    def initialize_options(self):
173-        pass
174-    def finalize_options(self):
175-        pass
176-    def run(self):
177-        # TODO: --quiet suppresses the 'running show_supportlib' message.
178-        # Find a way to do this all the time.
179-        print supportlib # TODO windowsy
180-
181-class ShowPythonPath(Command):
182-    user_options = []
183-    def initialize_options(self):
184-        pass
185-    def finalize_options(self):
186-        pass
187-    def run(self):
188-        # TODO: --quiet suppresses the 'running show_supportlib' message.
189-        # Find a way to do this all the time.
190-        print "PYTHONPATH=%s" % os.environ.get("PYTHONPATH", '')
191-
192-class RunWithPythonPath(Command):
193-    description = "Run a subcommand with PYTHONPATH set appropriately"
194-
195-    user_options = [ ("python", "p",
196-                      "Treat command string as arguments to a python executable"),
197-                     ("command=", "c", "Command to be run"),
198-                     ("directory=", "d", "Directory to run the command in"),
199-                     ]
200-    boolean_options = ["python"]
201-
202-    def initialize_options(self):
203-        self.command = None
204-        self.python = False
205-        self.directory = None
206-    def finalize_options(self):
207-        pass
208-    def run(self):
209-        oldpp = os.environ.get("PYTHONPATH", "").split(os.pathsep)
210-        if oldpp == [""]:
211-            # grr silly split() behavior
212-            oldpp = []
213-        os.environ['PYTHONPATH'] = os.pathsep.join(oldpp + [supportlib,])
214-
215-        # We must require the command to be safe to split on
216-        # whitespace, and have --python and --directory to make it
217-        # easier to achieve this.
218-
219-        command = []
220-        if self.python:
221-            command.append(sys.executable)
222-        if self.command:
223-            command.extend(self.command.split())
224-        if not command:
225-            raise RuntimeError("The --command argument is mandatory")
226-        if self.directory:
227-            os.chdir(self.directory)
228-        if self.verbose:
229-            print "command =", " ".join(command)
230-        rc = subprocess.call(command)
231-        sys.exit(rc)
232-
233-class TestMacDiskImage(Command):
234-    description = "test the Mac disk image in dmg format (unmaintained)"
235-    user_options = []
236-
237-    def initialize_options(self):
238-        pass
239-    def finalize_options(self):
240-        pass
241-    def run(self):
242-        import sys
243-        sys.path.append(os.path.join('misc', 'build_helpers'))
244-        import test_mac_diskimage
245-        return test_mac_diskimage.test_mac_diskimage('Allmydata', version=self.distribution.metadata.version)
246-
247-
248 class Trial(Command):
249     description = "run trial (use 'bin%stahoe debug trial' for the full set of trial options)" % (os.sep,)
250     # This is just a subset of the most useful options, for compatibility.
251hunk ./setup.py 328
252       author_email='tahoe-dev@tahoe-lafs.org',
253       url='http://tahoe-lafs.org/',
254       license='GNU GPL', # see README.txt -- there is an alternative licence
255-      cmdclass={"show_supportlib": ShowSupportLib,
256-                "show_pythonpath": ShowPythonPath,
257-                "run_with_pythonpath": RunWithPythonPath,
258-                "test_mac_diskimage": TestMacDiskImage,
259-                "trial": Trial,
260+      cmdclass={"trial": Trial,
261                 "make_executable": MakeExecutable,
262                 "sdist": MySdist,
263                 },
264}
265
266Context:
267
268[src/allmydata/__init__.py: suppress a spurious warning from 'bin/tahoe --version[-and-path]' about twisted-web and twisted-core packages.
269david-sarah@jacaranda.org**20110801005209
270 Ignore-this: 50e7cd53cca57b1870d9df0361c7c709
271]
272[test_cli.py: use to_str on fields loaded using simplejson.loads in new tests. refs #1304
273david-sarah@jacaranda.org**20110730032521
274 Ignore-this: d1d6dfaefd1b4e733181bf127c79c00b
275]
276[cli: make 'tahoe cp' overwrite mutable files in-place
277Kevan Carstensen <kevan@isnotajoke.com>**20110729202039
278 Ignore-this: b2ad21a19439722f05c49bfd35b01855
279]
280[SFTP: write an error message to standard error for unrecognized shell commands. Change the existing message for shell sessions to be written to standard error, and refactor some duplicated code. Also change the lines of the error messages to end in CRLF, and take into account Kevan's review comments. fixes #1442, #1446
281david-sarah@jacaranda.org**20110729233102
282 Ignore-this: d2f2bb4664f25007d1602bf7333e2cdd
283]
284[src/allmydata/scripts/cli.py: fix pyflakes warning.
285david-sarah@jacaranda.org**20110728021402
286 Ignore-this: 94050140ddb99865295973f49927c509
287]
288[Fix the help synopses of CLI commands to include [options] in the right place. fixes #1359, fixes #636
289david-sarah@jacaranda.org**20110724225440
290 Ignore-this: 2a8e488a5f63dabfa9db9efd83768a5
291]
292[encodingutil: argv and output encodings are always the same on all platforms. Lose the unnecessary generality of them being different. fixes #1120
293david-sarah@jacaranda.org**20110629185356
294 Ignore-this: 5ebacbe6903dfa83ffd3ff8436a97787
295]
296[docs/man/tahoe.1: add man page. fixes #1420
297david-sarah@jacaranda.org**20110724171728
298 Ignore-this: fc7601ec7f25494288d6141d0ae0004c
299]
300[Update the dependency on zope.interface to fix an incompatiblity between Nevow and zope.interface 3.6.4. fixes #1435
301david-sarah@jacaranda.org**20110721234941
302 Ignore-this: 2ff3fcfc030fca1a4d4c7f1fed0f2aa9
303]
304[frontends/ftpd.py: remove the check for IWriteFile.close since we're now guaranteed to be using Twisted >= 10.1 which has it.
305david-sarah@jacaranda.org**20110722000320
306 Ignore-this: 55cd558b791526113db3f83c00ec328a
307]
308[Update the dependency on Twisted to >= 10.1. This allows us to simplify some documentation: it's no longer necessary to install pywin32 on Windows, or apply a patch to Twisted in order to use the FTP frontend. fixes #1274, #1438. refs #1429
309david-sarah@jacaranda.org**20110721233658
310 Ignore-this: 81b41745477163c9b39c0b59db91cc62
311]
312[misc/build_helpers/run_trial.py: undo change to block pywin32 (it didn't work because run_trial.py is no longer used). refs #1334
313david-sarah@jacaranda.org**20110722035402
314 Ignore-this: 5d03f544c4154f088e26c7107494bf39
315]
316[misc/build_helpers/run_trial.py: ensure that pywin32 is not on the sys.path when running the test suite. Includes some temporary debugging printouts that will be removed. refs #1334
317david-sarah@jacaranda.org**20110722024907
318 Ignore-this: 5141a9f83a4085ed4ca21f0bbb20bb9c
319]
320[docs/running.rst: use 'tahoe run ~/.tahoe' instead of 'tahoe run' (the default is the current directory, unlike 'tahoe start').
321david-sarah@jacaranda.org**20110718005949
322 Ignore-this: 81837fbce073e93d88a3e7ae3122458c
323]
324[docs/running.rst: say to put the introducer.furl in tahoe.cfg.
325david-sarah@jacaranda.org**20110717194315
326 Ignore-this: 954cc4c08e413e8c62685d58ff3e11f3
327]
328[README.txt: say that quickstart.rst is in the docs directory.
329david-sarah@jacaranda.org**20110717192400
330 Ignore-this: bc6d35a85c496b77dbef7570677ea42a
331]
332[setup: remove the dependency on foolscap's "secure_connections" extra, add a dependency on pyOpenSSL
333zooko@zooko.com**20110717114226
334 Ignore-this: df222120d41447ce4102616921626c82
335 fixes #1383
336]
337[test_sftp.py cleanup: remove a redundant definition of failUnlessReallyEqual.
338david-sarah@jacaranda.org**20110716181813
339 Ignore-this: 50113380b368c573f07ac6fe2eb1e97f
340]
341[docs: add missing link in NEWS.rst
342zooko@zooko.com**20110712153307
343 Ignore-this: be7b7eb81c03700b739daa1027d72b35
344]
345[contrib: remove the contributed fuse modules and the entire contrib/ directory, which is now empty
346zooko@zooko.com**20110712153229
347 Ignore-this: 723c4f9e2211027c79d711715d972c5
348 Also remove a couple of vestigial references to figleaf, which is long gone.
349 fixes #1409 (remove contrib/fuse)
350]
351[add Protovis.js-based download-status timeline visualization
352Brian Warner <warner@lothar.com>**20110629222606
353 Ignore-this: 477ccef5c51b30e246f5b6e04ab4a127
354 
355 provide status overlap info on the webapi t=json output, add decode/decrypt
356 rate tooltips, add zoomin/zoomout buttons
357]
358[add more download-status data, fix tests
359Brian Warner <warner@lothar.com>**20110629222555
360 Ignore-this: e9e0b7e0163f1e95858aa646b9b17b8c
361]
362[prepare for viz: improve DownloadStatus events
363Brian Warner <warner@lothar.com>**20110629222542
364 Ignore-this: 16d0bde6b734bb501aa6f1174b2b57be
365 
366 consolidate IDownloadStatusHandlingConsumer stuff into DownloadNode
367]
368[docs: fix error in crypto specification that was noticed by Taylor R Campbell <campbell+tahoe@mumble.net>
369zooko@zooko.com**20110629185711
370 Ignore-this: b921ed60c1c8ba3c390737fbcbe47a67
371]
372[setup.py: don't make bin/tahoe.pyscript executable. fixes #1347
373david-sarah@jacaranda.org**20110130235809
374 Ignore-this: 3454c8b5d9c2c77ace03de3ef2d9398a
375]
376[Makefile: remove targets relating to 'setup.py check_auto_deps' which no longer exists. fixes #1345
377david-sarah@jacaranda.org**20110626054124
378 Ignore-this: abb864427a1b91bd10d5132b4589fd90
379]
380[Makefile: add 'make check' as an alias for 'make test'. Also remove an unnecessary dependency of 'test' on 'build' and 'src/allmydata/_version.py'. fixes #1344
381david-sarah@jacaranda.org**20110623205528
382 Ignore-this: c63e23146c39195de52fb17c7c49b2da
383]
384[Rename test_package_initialization.py to (much shorter) test_import.py .
385Brian Warner <warner@lothar.com>**20110611190234
386 Ignore-this: 3eb3dbac73600eeff5cfa6b65d65822
387 
388 The former name was making my 'ls' listings hard to read, by forcing them
389 down to just two columns.
390]
391[tests: fix tests to accomodate [20110611153758-92b7f-0ba5e4726fb6318dac28fb762a6512a003f4c430]
392zooko@zooko.com**20110611163741
393 Ignore-this: 64073a5f39e7937e8e5e1314c1a302d1
394 Apparently none of the two authors (stercor, terrell), three reviewers (warner, davidsarah, terrell), or one committer (me) actually ran the tests. This is presumably due to #20.
395 fixes #1412
396]
397[wui: right-align the size column in the WUI
398zooko@zooko.com**20110611153758
399 Ignore-this: 492bdaf4373c96f59f90581c7daf7cd7
400 Thanks to Ted "stercor" Rolle Jr. and Terrell Russell.
401 fixes #1412
402]
403[docs: three minor fixes
404zooko@zooko.com**20110610121656
405 Ignore-this: fec96579eb95aceb2ad5fc01a814c8a2
406 CREDITS for arc for stats tweak
407 fix link to .zip file in quickstart.rst (thanks to ChosenOne for noticing)
408 English usage tweak
409]
410[docs/running.rst: fix stray HTML (not .rst) link noticed by ChosenOne.
411david-sarah@jacaranda.org**20110609223719
412 Ignore-this: fc50ac9c94792dcac6f1067df8ac0d4a
413]
414[server.py:  get_latencies now reports percentiles _only_ if there are sufficient observations for the interpretation of the percentile to be unambiguous.
415wilcoxjg@gmail.com**20110527120135
416 Ignore-this: 2e7029764bffc60e26f471d7c2b6611e
417 interfaces.py:  modified the return type of RIStatsProvider.get_stats to allow for None as a return value
418 NEWS.rst, stats.py: documentation of change to get_latencies
419 stats.rst: now documents percentile modification in get_latencies
420 test_storage.py:  test_latencies now expects None in output categories that contain too few samples for the associated percentile to be unambiguously reported.
421 fixes #1392
422]
423[docs: revert link in relnotes.txt from NEWS.rst to NEWS, since the former did not exist at revision 5000.
424david-sarah@jacaranda.org**20110517011214
425 Ignore-this: 6a5be6e70241e3ec0575641f64343df7
426]
427[docs: convert NEWS to NEWS.rst and change all references to it.
428david-sarah@jacaranda.org**20110517010255
429 Ignore-this: a820b93ea10577c77e9c8206dbfe770d
430]
431[docs: remove out-of-date docs/testgrid/introducer.furl and containing directory. fixes #1404
432david-sarah@jacaranda.org**20110512140559
433 Ignore-this: 784548fc5367fac5450df1c46890876d
434]
435[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
436david-sarah@jacaranda.org**20110130164923
437 Ignore-this: a271e77ce81d84bb4c43645b891d92eb
438]
439[setup: don't catch all Exception from check_requirement(), but only PackagingError and ImportError
440zooko@zooko.com**20110128142006
441 Ignore-this: 57d4bc9298b711e4bc9dc832c75295de
442 I noticed this because I had accidentally inserted a bug which caused AssertionError to be raised from check_requirement().
443]
444[M-x whitespace-cleanup
445zooko@zooko.com**20110510193653
446 Ignore-this: dea02f831298c0f65ad096960e7df5c7
447]
448[docs: fix typo in running.rst, thanks to arch_o_median
449zooko@zooko.com**20110510193633
450 Ignore-this: ca06de166a46abbc61140513918e79e8
451]
452[relnotes.txt: don't claim to work on Cygwin (which has been untested for some time). refs #1342
453david-sarah@jacaranda.org**20110204204902
454 Ignore-this: 85ef118a48453d93fa4cddc32d65b25b
455]
456[relnotes.txt: forseeable -> foreseeable. refs #1342
457david-sarah@jacaranda.org**20110204204116
458 Ignore-this: 746debc4d82f4031ebf75ab4031b3a9
459]
460[replace remaining .html docs with .rst docs
461zooko@zooko.com**20110510191650
462 Ignore-this: d557d960a986d4ac8216d1677d236399
463 Remove install.html (long since deprecated).
464 Also replace some obsolete references to install.html with references to quickstart.rst.
465 Fix some broken internal references within docs/historical/historical_known_issues.txt.
466 Thanks to Ravi Pinjala and Patrick McDonald.
467 refs #1227
468]
469[docs: FTP-and-SFTP.rst: fix a minor error and update the information about which version of Twisted fixes #1297
470zooko@zooko.com**20110428055232
471 Ignore-this: b63cfb4ebdbe32fb3b5f885255db4d39
472]
473[munin tahoe_files plugin: fix incorrect file count
474francois@ctrlaltdel.ch**20110428055312
475 Ignore-this: 334ba49a0bbd93b4a7b06a25697aba34
476 fixes #1391
477]
478[corrected "k must never be smaller than N" to "k must never be greater than N"
479secorp@allmydata.org**20110425010308
480 Ignore-this: 233129505d6c70860087f22541805eac
481]
482[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
483david-sarah@jacaranda.org**20110411190738
484 Ignore-this: 7847d26bc117c328c679f08a7baee519
485]
486[tests: add test for including the ImportError message and traceback entry in the summary of errors from importing dependencies. refs #1389
487david-sarah@jacaranda.org**20110410155844
488 Ignore-this: fbecdbeb0d06a0f875fe8d4030aabafa
489]
490[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
491david-sarah@jacaranda.org**20110410155705
492 Ignore-this: 2f87b8b327906cf8bfca9440a0904900
493]
494[remove unused variable detected by pyflakes
495zooko@zooko.com**20110407172231
496 Ignore-this: 7344652d5e0720af822070d91f03daf9
497]
498[allmydata/__init__.py: Nicer reporting of unparseable version numbers in dependencies. fixes #1388
499david-sarah@jacaranda.org**20110401202750
500 Ignore-this: 9c6bd599259d2405e1caadbb3e0d8c7f
501]
502[update FTP-and-SFTP.rst: the necessary patch is included in Twisted-10.1
503Brian Warner <warner@lothar.com>**20110325232511
504 Ignore-this: d5307faa6900f143193bfbe14e0f01a
505]
506[control.py: remove all uses of s.get_serverid()
507warner@lothar.com**20110227011203
508 Ignore-this: f80a787953bd7fa3d40e828bde00e855
509]
510[web: remove some uses of s.get_serverid(), not all
511warner@lothar.com**20110227011159
512 Ignore-this: a9347d9cf6436537a47edc6efde9f8be
513]
514[immutable/downloader/fetcher.py: remove all get_serverid() calls
515warner@lothar.com**20110227011156
516 Ignore-this: fb5ef018ade1749348b546ec24f7f09a
517]
518[immutable/downloader/fetcher.py: fix diversity bug in server-response handling
519warner@lothar.com**20110227011153
520 Ignore-this: bcd62232c9159371ae8a16ff63d22c1b
521 
522 When blocks terminate (either COMPLETE or CORRUPT/DEAD/BADSEGNUM), the
523 _shares_from_server dict was being popped incorrectly (using shnum as the
524 index instead of serverid). I'm still thinking through the consequences of
525 this bug. It was probably benign and really hard to detect. I think it would
526 cause us to incorrectly believe that we're pulling too many shares from a
527 server, and thus prefer a different server rather than asking for a second
528 share from the first server. The diversity code is intended to spread out the
529 number of shares simultaneously being requested from each server, but with
530 this bug, it might be spreading out the total number of shares requested at
531 all, not just simultaneously. (note that SegmentFetcher is scoped to a single
532 segment, so the effect doesn't last very long).
533]
534[immutable/downloader/share.py: reduce get_serverid(), one left, update ext deps
535warner@lothar.com**20110227011150
536 Ignore-this: d8d56dd8e7b280792b40105e13664554
537 
538 test_download.py: create+check MyShare instances better, make sure they share
539 Server objects, now that finder.py cares
540]
541[immutable/downloader/finder.py: reduce use of get_serverid(), one left
542warner@lothar.com**20110227011146
543 Ignore-this: 5785be173b491ae8a78faf5142892020
544]
545[immutable/offloaded.py: reduce use of get_serverid() a bit more
546warner@lothar.com**20110227011142
547 Ignore-this: b48acc1b2ae1b311da7f3ba4ffba38f
548]
549[immutable/upload.py: reduce use of get_serverid()
550warner@lothar.com**20110227011138
551 Ignore-this: ffdd7ff32bca890782119a6e9f1495f6
552]
553[immutable/checker.py: remove some uses of s.get_serverid(), not all
554warner@lothar.com**20110227011134
555 Ignore-this: e480a37efa9e94e8016d826c492f626e
556]
557[add remaining get_* methods to storage_client.Server, NoNetworkServer, and
558warner@lothar.com**20110227011132
559 Ignore-this: 6078279ddf42b179996a4b53bee8c421
560 MockIServer stubs
561]
562[upload.py: rearrange _make_trackers a bit, no behavior changes
563warner@lothar.com**20110227011128
564 Ignore-this: 296d4819e2af452b107177aef6ebb40f
565]
566[happinessutil.py: finally rename merge_peers to merge_servers
567warner@lothar.com**20110227011124
568 Ignore-this: c8cd381fea1dd888899cb71e4f86de6e
569]
570[test_upload.py: factor out FakeServerTracker
571warner@lothar.com**20110227011120
572 Ignore-this: 6c182cba90e908221099472cc159325b
573]
574[test_upload.py: server-vs-tracker cleanup
575warner@lothar.com**20110227011115
576 Ignore-this: 2915133be1a3ba456e8603885437e03
577]
578[happinessutil.py: server-vs-tracker cleanup
579warner@lothar.com**20110227011111
580 Ignore-this: b856c84033562d7d718cae7cb01085a9
581]
582[upload.py: more tracker-vs-server cleanup
583warner@lothar.com**20110227011107
584 Ignore-this: bb75ed2afef55e47c085b35def2de315
585]
586[upload.py: fix var names to avoid confusion between 'trackers' and 'servers'
587warner@lothar.com**20110227011103
588 Ignore-this: 5d5e3415b7d2732d92f42413c25d205d
589]
590[refactor: s/peer/server/ in immutable/upload, happinessutil.py, test_upload
591warner@lothar.com**20110227011100
592 Ignore-this: 7ea858755cbe5896ac212a925840fe68
593 
594 No behavioral changes, just updating variable/method names and log messages.
595 The effects outside these three files should be minimal: some exception
596 messages changed (to say "server" instead of "peer"), and some internal class
597 names were changed. A few things still use "peer" to minimize external
598 changes, like UploadResults.timings["peer_selection"] and
599 happinessutil.merge_peers, which can be changed later.
600]
601[storage_client.py: clean up test_add_server/test_add_descriptor, remove .test_servers
602warner@lothar.com**20110227011056
603 Ignore-this: efad933e78179d3d5fdcd6d1ef2b19cc
604]
605[test_client.py, upload.py:: remove KiB/MiB/etc constants, and other dead code
606warner@lothar.com**20110227011051
607 Ignore-this: dc83c5794c2afc4f81e592f689c0dc2d
608]
609[test: increase timeout on a network test because Francois's ARM machine hit that timeout
610zooko@zooko.com**20110317165909
611 Ignore-this: 380c345cdcbd196268ca5b65664ac85b
612 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.
613]
614[docs/configuration.rst: add a "Frontend Configuration" section
615Brian Warner <warner@lothar.com>**20110222014323
616 Ignore-this: 657018aa501fe4f0efef9851628444ca
617 
618 this points to docs/frontends/*.rst, which were previously underlinked
619]
620[web/filenode.py: avoid calling req.finish() on closed HTTP connections. Closes #1366
621"Brian Warner <warner@lothar.com>"**20110221061544
622 Ignore-this: 799d4de19933f2309b3c0c19a63bb888
623]
624[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.
625david-sarah@jacaranda.org**20110221015817
626 Ignore-this: 51d181698f8c20d3aca58b057e9c475a
627]
628[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.
629david-sarah@jacaranda.org**20110221020125
630 Ignore-this: b0744ed58f161bf188e037bad077fc48
631]
632[Refactor StorageFarmBroker handling of servers
633Brian Warner <warner@lothar.com>**20110221015804
634 Ignore-this: 842144ed92f5717699b8f580eab32a51
635 
636 Pass around IServer instance instead of (peerid, rref) tuple. Replace
637 "descriptor" with "server". Other replacements:
638 
639  get_all_servers -> get_connected_servers/get_known_servers
640  get_servers_for_index -> get_servers_for_psi (now returns IServers)
641 
642 This change still needs to be pushed further down: lots of code is now
643 getting the IServer and then distributing (peerid, rref) internally.
644 Instead, it ought to distribute the IServer internally and delay
645 extracting a serverid or rref until the last moment.
646 
647 no_network.py was updated to retain parallelism.
648]
649[TAG allmydata-tahoe-1.8.2
650warner@lothar.com**20110131020101]
651Patch bundle hash:
652184d04def5bec42701313f5dd49d588788250c80