90 | | |
91 | | setup_requires = [] |
92 | | |
93 | | # The darcsver command from the darcsver plugin is needed to initialize the |
94 | | # distribution's .version attribute correctly. (It does this either by |
95 | | # examining darcs history, or if that fails by reading the |
96 | | # src/allmydata/_version.py file). darcsver will also write a new version |
97 | | # stamp in src/allmydata/_version.py, with a version number derived from |
98 | | # darcs history. Note that the setup.cfg file has an "[aliases]" section |
99 | | # which enumerates commands that you might run and specifies that it will run |
100 | | # darcsver before each one. If you add different commands (or if I forgot |
101 | | # some that are already in use), you may need to add it to setup.cfg and |
102 | | # configure it to run darcsver before your command, if you want the version |
103 | | # number to be correct when that command runs. |
104 | | # http://pypi.python.org/pypi/darcsver |
105 | | setup_requires.append('darcsver >= 1.2.0') |
106 | | |
107 | | # Nevow requires Twisted to setup, but doesn't declare that requirement in a |
108 | | # way that enables setuptools to satisfy that requirement before Nevow's |
109 | | # setup.py tried to "import twisted". Fortunately we require setuptools_trial |
110 | | # to setup and setuptools_trial requires Twisted to install, so hopefully |
111 | | # everything will work out until the Nevow issue is fixed: |
112 | | # http://divmod.org/trac/ticket/2629 setuptools_trial is needed if you want |
113 | | # "./setup.py trial" or "./setup.py test" to execute the tests (and in order |
114 | | # to make sure Twisted is installed early enough -- see the paragraph above). |
115 | | # http://pypi.python.org/pypi/setuptools_trial |
116 | | setup_requires.extend(['setuptools_trial >= 0.5']) |
117 | | |
118 | | # setuptools_darcs is required to produce complete distributions (such as |
119 | | # with "sdist" or "bdist_egg") (unless there is a PKG-INFO file present which |
120 | | # shows that this is itself a source distribution). For simplicity, and |
121 | | # because there is some unknown error with setuptools_darcs when building and |
122 | | # testing tahoe all in one python command on some platforms, we always add it |
123 | | # to setup_requires. http://pypi.python.org/pypi/setuptools_darcs |
124 | | setup_requires.append('setuptools_darcs >= 1.1.0') |
125 | | |
126 | | # trialcoverage is required if you want the "trial" unit test runner to have a |
127 | | # "--reporter=bwverbose-coverage" option which produces code-coverage results. |
128 | | # The required version is 0.3.3, because that is the latest version that only |
129 | | # depends on a version of pycoverage for which binary packages are available. |
130 | | if "--reporter=bwverbose-coverage" in sys.argv: |
131 | | setup_requires.append('trialcoverage >= 0.3.3') |
132 | | |
133 | | # stdeb is required to produce Debian files with the "sdist_dsc" command. |
134 | | if "sdist_dsc" in sys.argv: |
135 | | setup_requires.append('stdeb >= 0.3') |
136 | | |
137 | | tests_require=[ |
138 | | # Mock - Mocking and Testing Library |
139 | | # http://www.voidspace.org.uk/python/mock/ |
140 | | "mock", |
141 | | ] |
142 | | |
| 297 | if not external_dependency_management: |
| 298 | # Tahoe's dependencies are managed by the find_links= entry in setup.cfg and |
| 299 | # the _auto_deps.install_requires list, which is used in the call to setup() |
| 300 | # below. |
| 301 | from _auto_deps import install_requires |
| 302 | |
| 303 | setup_requires = [] |
| 304 | |
| 305 | # The darcsver command from the darcsver plugin is needed to initialize the |
| 306 | # distribution's .version attribute correctly. (It does this either by |
| 307 | # examining darcs history, or if that fails by reading the |
| 308 | # src/allmydata/_version.py file). darcsver will also write a new version |
| 309 | # stamp in src/allmydata/_version.py, with a version number derived from |
| 310 | # darcs history. Note that the setup.cfg file has an "[aliases]" section |
| 311 | # which enumerates commands that you might run and specifies that it will run |
| 312 | # darcsver before each one. If you add different commands (or if I forgot |
| 313 | # some that are already in use), you may need to add it to setup.cfg and |
| 314 | # configure it to run darcsver before your command, if you want the version |
| 315 | # number to be correct when that command runs. |
| 316 | # http://pypi.python.org/pypi/darcsver |
| 317 | setup_requires.append('darcsver >= 1.2.0') |
| 318 | |
| 319 | # Nevow requires Twisted to setup, but doesn't declare that requirement in a |
| 320 | # way that enables setuptools to satisfy that requirement before Nevow's |
| 321 | # setup.py tried to "import twisted". Fortunately we require setuptools_trial |
| 322 | # to setup and setuptools_trial requires Twisted to install, so hopefully |
| 323 | # everything will work out until the Nevow issue is fixed: |
| 324 | # http://divmod.org/trac/ticket/2629 setuptools_trial is needed if you want |
| 325 | # "./setup.py trial" or "./setup.py test" to execute the tests (and in order |
| 326 | # to make sure Twisted is installed early enough -- see the paragraph above). |
| 327 | # http://pypi.python.org/pypi/setuptools_trial |
| 328 | setup_requires.extend(['setuptools_trial >= 0.5']) |
| 329 | |
| 330 | # setuptools_darcs is required to produce complete distributions (such as |
| 331 | # with "sdist" or "bdist_egg") (unless there is a PKG-INFO file present which |
| 332 | # shows that this is itself a source distribution). For simplicity, and |
| 333 | # because there is some unknown error with setuptools_darcs when building and |
| 334 | # testing tahoe all in one python command on some platforms, we always add it |
| 335 | # to setup_requires. http://pypi.python.org/pypi/setuptools_darcs |
| 336 | setup_requires.append('setuptools_darcs >= 1.1.0') |
| 337 | |
| 338 | # trialcoverage is required if you want the "trial" unit test runner to have a |
| 339 | # "--reporter=bwverbose-coverage" option which produces code-coverage results. |
| 340 | # The required version is 0.3.3, because that is the latest version that only |
| 341 | # depends on a version of pycoverage for which binary packages are available. |
| 342 | if "--reporter=bwverbose-coverage" in sys.argv: |
| 343 | setup_requires.append('trialcoverage >= 0.3.3') |
| 344 | |
| 345 | # stdeb is required to produce Debian files with the "sdist_dsc" command. |
| 346 | if "sdist_dsc" in sys.argv: |
| 347 | setup_requires.append('stdeb >= 0.3') |
| 348 | |
| 349 | tests_require=[ |
| 350 | # Mock - Mocking and Testing Library |
| 351 | # http://www.voidspace.org.uk/python/mock/ |
| 352 | "mock", |
| 353 | ] |
| 354 | |
| 355 | setup_args["install_requires"] = install_requires |
| 356 | setup_args["setup_requires"] = setup_requires |
| 357 | setup_args["tests_require"] = tests_require |
| 358 | |