]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit - src/allmydata/_auto_deps.py
dependecy specs: tolerate new PEP440 semantics too
authorDaira Hopwood <daira@jacaranda.org>
Tue, 20 Jan 2015 18:52:02 +0000 (10:52 -0800)
committerBrian Warner <warner@lothar.com>
Tue, 20 Jan 2015 18:52:02 +0000 (10:52 -0800)
commitef455df990c5585e8755d1d791f4dac0ef954956
tree00643618ff12f1b9077feb90859db0cd65df88ab
parentf77f358dc1b97ac935b1ba4b8290c4a03dabc070
dependecy specs: tolerate new PEP440 semantics too

The latest setuptools (version 8) changed the way dependency
specifications ("I can handle libfoo version 2 or 3, but not 4") are
interpreted. The new version follows PEP440, which is simpler but
somewhat less expressive. Tahoe's _auto_deps.py now uses dep-specs which
are correctly parsed by both old and new setuptools.

Fixes ticket:2354.

* Restrict the requirements in _auto_deps.py to work with either the old
  or PEP 440 semantics.
* Update check_requirement and tests to take account of changes for PEP
  440 compatibility.
* Fix an error message.
* Remove a superfluous TODO.
src/allmydata/__init__.py
src/allmydata/_auto_deps.py
src/allmydata/test/test_version.py