[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2283: replace _auto_deps with a pkg_resources API call

Tahoe-LAFS trac at tahoe-lafs.org
Sat Sep 3 02:25:59 UTC 2016


#2283: replace _auto_deps with a pkg_resources API call
-----------------------------+------------------------
     Reporter:  zooko        |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  normal       |  Milestone:  1.13.0
    Component:  packaging    |    Version:  1.10.0
   Resolution:               |   Keywords:  setuptools
Launchpad Bug:               |
-----------------------------+------------------------

Comment (by warner):

 Would this really mean replacing a lot of the diagnostic "what version got
 installed, and does it meet our requirements?" code in `__init__.py`? I
 think *that*'s the deeper problem. I agree with Daira that `_auto_deps.py`
 isn't all that complicated (but I strongly feel that its
 `install_requires` contents should be moved into `setup.py`).

 What if we made a module named `allmydata.versioncheck`? We would move all
 the non-`install_requires` stuff from `_auto_deps.py` into there, we'd get
 rid of the deprecation-suppression and fix those warnings directly (I have
 to imagine that most of them are resolved by now), we'd move all the
 check-and-compare-versions stuff from `__init__.py` into versioncheck too,
 make it a function, that gets called by `tahoe --check-versions`, and then
 part of the troubleshooting process is to run this command, maybe do it
 automatically when you do something early, like `tahoe --version` or
 `tahoe create-client`.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2283#comment:5>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list