setup.py: Mention Jinja and CherryPy as requirements
authorW. Trevor King <wking@tremily.us>
Thu, 24 Jan 2013 03:12:59 +0000 (22:12 -0500)
committerW. Trevor King <wking@tremily.us>
Thu, 24 Jan 2013 03:24:02 +0000 (22:24 -0500)
Unfortunately, none of the current Python installation tools
(easy_install, pip, others?) actaully use the `Requires` field that
this populates [1,2], and it's gone since PEP 345, replaced by
`Requires-Dist` [2,3,4].  Eventually a new packaging library
(distutils2, packaging, distlib, ...) will land in the Python standard
library and we can use whatever interface it provides for specifying
dependencies [5].

[1]: http://blog.doughellmann.com/2007/11/requiring-packages-with-distutils.html
[2]: http://ziade.org/2010/02/10/pep-345-and-386-accepted-summary-of-changes/
[3]: http://www.python.org/dev/peps/pep-0345/#requires-dist-multiple-use
[4]: http://www.python.org/dev/peps/pep-0426/#requires-dist-multiple-use
[5]: http://ncoghlan_devs-python-notes.readthedocs.org/en/latest/pep_ideas/core_packaging_api.html

setup.py

index cd49bf0e2caa2f31769127a8cdbc309c0f534551..31d65517fdb84101a00eb5bd1eeec06ba141a513 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -47,7 +47,6 @@ setup(
         'Programming Language :: Python :: 2.7',
         'Topic :: Software Development :: Bug Tracking',
         ],
-
     packages=['libbe',
               'libbe.command',
               'libbe.storage',
@@ -58,4 +57,8 @@ setup(
               'libbe.util'],
     scripts=['be'],
     data_files=data_files,
+    requires=[
+        'Jinja2 (>=2.6)',
+        'CherryPy (>=3.2)',
+        ]
     )