1 # Note: please minimize imports in this file. In particular, do not import
2 # any module from Tahoe-LAFS or its dependencies, and do not import any
3 # modules at all at global level. That includes setuptools and pkg_resources.
4 # It is ok to import modules from the Python Standard Library if they are
5 # always available, or the import is protected by try...except ImportError.
8 # we require newer versions of setuptools (actually
9 # zetuptoolz) to build, but can handle older versions to run
10 "setuptools >= 0.6c6",
14 # Feisty has simplejson 1.4
17 # zope.interface >= 3.6.0 is required for Twisted >= 12.1.0.
18 # zope.interface 3.6.3 and 3.6.4 are incompatible with Nevow (#1435).
19 "zope.interface == 3.6.0, == 3.6.1, == 3.6.2, >= 3.6.5",
21 # * On Windows we need at least Twisted 9.0 to avoid an indirect
22 # dependency on pywin32.
23 # * On Linux we need at least Twisted 10.1.0 for inotify support used by
24 # the drop-upload frontend.
25 # * We also need Twisted 10.1 for the FTP frontend in order for Twisted's
26 # FTP server to support asynchronous close.
27 # * When the cloud backend lands, it will depend on Twisted 10.2.0 which
28 # includes the fix to https://twistedmatrix.com/trac/ticket/411
29 # * The SFTP frontend depends on Twisted 11.0.0 to fix the SSH server
30 # rekeying bug http://twistedmatrix.com/trac/ticket/4395
34 # * foolscap < 0.5.1 had a performance bug which spent O(N**2) CPU for
35 # transferring large mutable files of size N.
36 # * foolscap < 0.6 is incompatible with Twisted 10.2.0.
37 # * foolscap 0.6.1 quiets a DeprecationWarning.
38 # * foolscap < 0.6.3 is incompatible with Twisted-11.1.0 and newer. Since
39 # current Twisted is 12.0, any build which needs twisted will grab a
40 # version that requires foolscap>=0.6.3
41 # * pyOpenSSL is required by foolscap for it (foolscap) to provide secure
42 # connections. Foolscap doesn't reliably declare this dependency in a
43 # machine-readable way, so we need to declare a dependency on pyOpenSSL
44 # ourselves. Tahoe-LAFS doesn't *really* depend directly on pyOpenSSL,
45 # so if something changes in the relationship between foolscap and
46 # pyOpenSSL, such as foolscap requiring a specific version of
47 # pyOpenSSL, or foolscap switching from pyOpenSSL to a different crypto
48 # library, we need to update this declaration here.
55 # Needed for SFTP. pyasn1 is needed by twisted.conch in Twisted >= 9.0.
56 # pycrypto 2.2 doesn't work due to https://bugs.launchpad.net/pycrypto/+bug/620253
57 # pycrypto 2.4 doesn't work due to https://bugs.launchpad.net/pycrypto/+bug/881130
58 "pycrypto == 2.1.0, == 2.3, >= 2.4.1",
61 # http://www.voidspace.org.uk/python/mock/ , 0.8.0 provides "call"
64 # pycryptopp-0.6.0 includes ed25519
65 "pycryptopp >= 0.6.0",
67 # Will be needed to test web apps, but not yet. See #1001.
71 # Includes some indirect dependencies, but does not include allmydata.
72 # These are in the order they should be listed by --version, etc.
74 # package name module name
75 ('foolscap', 'foolscap'),
76 ('pycryptopp', 'pycryptopp'),
78 ('Twisted', 'twisted'),
80 ('zope.interface', 'zope.interface'),
83 ('pyOpenSSL', 'OpenSSL'),
84 ('simplejson', 'simplejson'),
85 ('pycrypto', 'Crypto'),
93 # Don't try to get the version number of setuptools in frozen builds, because
94 # that triggers 'site' processing that causes failures. Note that frozen
95 # builds still (unfortunately) import pkg_resources in .tac files, so the
96 # entry for setuptools in install_requires above isn't conditional.
97 if not hasattr(sys, 'frozen'):
98 package_imports.append(('setuptools', 'setuptools'))
103 # These are suppressed globally:
105 global_deprecation_messages = [
106 "BaseException.message has been deprecated as of Python 2.6",
107 "twisted.internet.interfaces.IFinishableConsumer was deprecated in Twisted 11.1.0: Please use IConsumer (and IConsumer.unregisterProducer) instead.",
110 # These are suppressed while importing dependencies:
112 deprecation_messages = [
113 "the sha module is deprecated; use the hashlib module instead",
114 "object.__new__\(\) takes no parameters",
115 "The popen2 module is deprecated. Use the subprocess module.",
116 "the md5 module is deprecated; use hashlib instead",
117 "twisted.web.error.NoResource is deprecated since Twisted 9.0. See twisted.web.resource.NoResource.",
118 "the sets module is deprecated",
121 user_warning_messages = [
122 "Hashing uninitialized InterfaceClass instance",
123 "Reliable disconnection notification requires pywin32 215 or later",
126 runtime_warning_messages = [
127 "Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.",
132 'twisted.persisted.sob',
133 'twisted.python.filepath',