{ "info": { "author": "Peter A. Donis", "author_email": "peterdonis@alum.mit.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: Python Software Foundation License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Systems Administration", "Topic :: Utilities" ], "description": "SetupHelper: Automating Boilerplate in Python Setup Scripts\n===========================================================\n\nThis Python module will make your setup scripts simpler to\nwrite, by automating as much as possible of the 'boilerplate'\nthat normally goes into them. Instead of invoking the ``setup``\nfunction with a long list of keyword arguments, you just set\nglobal variables in your setup script and then invoke the\n``setup_main function``, passing ``globals()`` as its argument.\n(The SetupHelper setup.py script itself illustrates this usage.)\n\nThe helper module does all the grunt work of translating your\nvariables into keyword arguments, including automatically\ndeducing and generating many arguments so that you only have\nto specify a much simpler set of data. As a bonus, if you are\nusing Python's standard distutils, SetupHelper provides (very\nbasic!) support for the ``requires`` keyword, downloading and\ninstalling required packages for you, as long as their download\nURLs are available on PyPI. (You can also specify a local\ndirectory as a \"repository\" by setting the environment\nvariable ``PYPI_LOCAL`` to point to it--see the ``CHANGES``\nfile in the source archive for details.) This functionality\ncurrently does *not* support version specifiers after the\npackage name (unless you are using setuptools, which does\nallow this--see below).\n\n(Note that the Python 2.5 and later distutils package allows\nthe ``requires`` keyword in distribution metadata, but does\nnot actually use it to install anything for you. Of course\nsome distutils replacements like setuptools do provide this\nfunctionality; if you are using setuptools, you can set the\nvariable ``__distutils_pkg__`` to ``'setuptools'`` and\nSetupHelper will use setuptools' support instead of its own,\nwhich has some additional features, such as allowing version\nspecifiers for required packages. SetupHelper also adds the\n``requires``, ``provides``, and ``obsoletes`` keywords to\nyour package metadata when you use the ``setup.py register``\ncommand with Python versions < 2.5; in other words, it gives\nyou support for metadata version 1.1 even if your Python\nversion doesn't.)\n\nSince SetupHelper has all the information needed to determine\nwhat should be in your source or binary distribution files,\nit auto-generates ``MANIFEST.in`` each time it runs, so you don't\nhave to maintain your ``MANIFEST.in`` file manually (and if you\ndid, it would get overwritten anyway). Even though it is not\nstrictly necessary to write ``MANIFEST.in`` unless you are running\na distribution command, SetupHelper does it every time because\nchecking its output can often help you debug problems with the\nvariable definitions in your setup script. (At least, it has\ncertainly helped *me* to do that!)\n\nUsing SetupHelper as an Installer\n---------------------------------\n\nThis distribution includes a script, ``setuphelper``, that you\ncan use to leverage SetupHelper's ``requires`` keyword support\nto use it as an installer. Command line arguments to the\nscript are treated as a list of requirements to be installed,\nand the script uses SetupHelper to download and install them,\njust as if they were listed in a ``setup.py`` script. If you\nwant to use setuptools' ``easy_install`` support with this\ntechnique, use the command line option ``--use-setuptools``\n(short form ``-s``).\n\nSince this script uses the ``requires`` keyword functionality\nin SetupHelper, it has the limitation noted above, that no\nversion specifiers can currently be used after package names.\n\nPost-Install Script Support\n---------------------------\n\nAs one other bonus, SetupHelper allows you to automate the\nrunning of post-install scripts; just set the ``__post_install__``\nvariable in your ``setup.py`` to a list of script names to be run\nfrom a subshell (this is done using ``os.system``, so it has the\nlimitations of that Python command). It is desirable to allow\npost-install scripts to be run from ``setup.py`` so that SetupHelper\ncan ensure that any required packages are fully installed by\njust calling ``python setup.py install`` on them once they are\nunpacked. (Note that, if you are using setuptools, this feature\ndoes not work, as setuptools does not actually run\n``python setup.py install`` to install your package. A future\nversion of SetupHelper might lift this constraint.)\n\nNote that SetupHelper patches the ``install_scripts`` command in\n``distutils`` to capture the correct script installation directory.\nThis ensures that the correct version of your post-install scripts\n(i.e., the one that just got installed) runs even if there are\nmultiple copies on your path.\n\nInstallation\n------------\n\nOf course, to install SetupHelper, you can simply type::\n\n $ python setup.py install\n\nin the directory where you unpacked the SetupHelper archive.\nHowever, since SetupHelper is used by setup scripts, you will\nprobably want to include it along with your ``setup.py`` in the\nsource archives for your Python projects as well as having it\ninstalled on your own system.", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/packages/source/s/setuphelper/setuphelper-0.5.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/setuphelper/0.5.1", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "setuphelper", "package_url": "https://pypi.org/project/setuphelper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/setuphelper/", "project_urls": { "Download": "http://pypi.python.org/packages/source/s/setuphelper/setuphelper-0.5.1.tar.gz", "Homepage": "http://pypi.python.org/pypi/setuphelper/0.5.1" }, "release_url": "https://pypi.org/project/setuphelper/0.5.1/", "requires_dist": null, "requires_python": null, "summary": "A helper module for setup.py scripts.", "version": "0.5.1" }, "last_serial": 749443, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "aaaa4c656f03d071a1c799c2c91ba32d", "sha256": "d0d63eebe32d03636c8b9105a06a9a58ed0564d5c2d1d65ed61e43fa1c89339d" }, "downloads": -1, "filename": "setuphelper-0.1.tar.gz", "has_sig": false, "md5_digest": "aaaa4c656f03d071a1c799c2c91ba32d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12848, "upload_time": "2008-02-14T06:40:30", "url": "https://files.pythonhosted.org/packages/a4/24/f9adff2939f8020ed1712ec7ef9101fc97ba90ca64d29f32d2197e72c5cf/setuphelper-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "0161dde7ed6aa0db0836431dd62bcefc", "sha256": "6b4cdd1fa8ffe0ca4a81b90f309ff1f10ad38f445a660a073a4c49272f33718e" }, "downloads": -1, "filename": "setuphelper-0.2.tar.gz", "has_sig": false, "md5_digest": "0161dde7ed6aa0db0836431dd62bcefc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15313, "upload_time": "2008-02-16T02:13:15", "url": "https://files.pythonhosted.org/packages/21/40/5949f8778fd1dfc675898308adf084f7db18ad03b503eaedf506e1a19160/setuphelper-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "6ac45bf3a95458a0a17d1773ef9b608b", "sha256": "925310ebfc5cdacfc1c4784c053af501c4dfca8c2cb279fbf8938d7bcb0dc860" }, "downloads": -1, "filename": "setuphelper-0.3.tar.gz", "has_sig": false, "md5_digest": "6ac45bf3a95458a0a17d1773ef9b608b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18369, "upload_time": "2008-02-24T07:20:44", "url": "https://files.pythonhosted.org/packages/51/1e/234e11bb854134148485c19940311eefb27d5d0edd75036a6627575c215d/setuphelper-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "4c6e93d9e37518eefed3b0bbc0af70e8", "sha256": "b86e92900f41421e2c48c8c66a09e7a193c9d5faff2f9d6ec94ae567a8660caa" }, "downloads": -1, "filename": "setuphelper-0.3.1.tar.gz", "has_sig": false, "md5_digest": "4c6e93d9e37518eefed3b0bbc0af70e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18388, "upload_time": "2008-02-25T04:14:47", "url": "https://files.pythonhosted.org/packages/d5/27/fa849281fc4697afa163fe7a5e663029c485797d21d685dde625cdb9fac2/setuphelper-0.3.1.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "3df20339cd2f9a05d83b216810b7d1ba", "sha256": "0fc1692511a07dedfdc7af0e8aaa13ecb238edcfff537ae42d906dc9e20e66f2" }, "downloads": -1, "filename": "setuphelper-0.4.tar.gz", "has_sig": false, "md5_digest": "3df20339cd2f9a05d83b216810b7d1ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20883, "upload_time": "2008-03-01T02:19:46", "url": "https://files.pythonhosted.org/packages/85/f9/58332f88286a27f6ae6d0e806e963bdd91949f92f24b07a9377722788110/setuphelper-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "02f127312d8948126f0fefb83bd405ca", "sha256": "5a00a1cb19a931fcfedc033344c8e37810f17f1106174a21413391f783ac18bf" }, "downloads": -1, "filename": "setuphelper-0.4.1.tar.gz", "has_sig": false, "md5_digest": "02f127312d8948126f0fefb83bd405ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21285, "upload_time": "2008-03-08T01:28:38", "url": "https://files.pythonhosted.org/packages/ee/4b/a5e1d5cb29d2134e9e84aa8fbd273ef21eee17fce022da578f2c7ae7db22/setuphelper-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "419b6177d0fdfbef49891dfe5989c330", "sha256": "0749fc74a60a1576964901c5a83aa9412398f4030cb0778a05812dcc0cd9328a" }, "downloads": -1, "filename": "setuphelper-0.4.2.tar.gz", "has_sig": false, "md5_digest": "419b6177d0fdfbef49891dfe5989c330", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21464, "upload_time": "2008-03-13T03:02:57", "url": "https://files.pythonhosted.org/packages/55/ed/4cd2705269038e85653edbb9c3117b4b74bd0baccd800a68d3823980f705/setuphelper-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "b5a20ba07282a87f7d4b5fac145a2630", "sha256": "848e0f78cc35c36977b4a377698dd027a23b75c5a230bd60919ff0d26a14e36e" }, "downloads": -1, "filename": "setuphelper-0.4.3.tar.gz", "has_sig": false, "md5_digest": "b5a20ba07282a87f7d4b5fac145a2630", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21563, "upload_time": "2008-10-25T02:30:17", "url": "https://files.pythonhosted.org/packages/db/23/6353adef22291ada5e92585e778344faa9f057bc2477cdaccfd9c781644d/setuphelper-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "97460c3b51ffe8d9b21583eaaa8bfd5b", "sha256": "799317e7d155ce652bc3008c139f4f3af932357dda049462731f2b0099e8be22" }, "downloads": -1, "filename": "setuphelper-0.4.4.tar.gz", "has_sig": false, "md5_digest": "97460c3b51ffe8d9b21583eaaa8bfd5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22038, "upload_time": "2009-12-14T19:59:18", "url": "https://files.pythonhosted.org/packages/3f/89/9506924674c310d108d3b6fb211972424646bc5d4e36b2361e06d9d6568b/setuphelper-0.4.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "71d34ebffbbd509b794a9ad645bf300d", "sha256": "963cbc8eae7994057b9307d4975a14caf14cfa8457750c9a6f7654d36cc1c0ac" }, "downloads": -1, "filename": "setuphelper-0.5.tar.gz", "has_sig": false, "md5_digest": "71d34ebffbbd509b794a9ad645bf300d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23096, "upload_time": "2009-12-21T22:18:15", "url": "https://files.pythonhosted.org/packages/41/98/dffc78e6fd847830fa1eff35630cc20c3172a766806509b13af6521244b4/setuphelper-0.5.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "ee75864338db7eeb9060c985192bd8b6", "sha256": "dd52e7211f0e2e6db9495597c228bf50965b8b4099e521fa45947c0a3235f7aa" }, "downloads": -1, "filename": "setuphelper-0.5.1.tar.gz", "has_sig": false, "md5_digest": "ee75864338db7eeb9060c985192bd8b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23506, "upload_time": "2009-12-28T04:26:38", "url": "https://files.pythonhosted.org/packages/ae/87/27c3ae6649a2ae045ff5d4957cb51507d29551ec8b7d13609fd088ab878e/setuphelper-0.5.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ee75864338db7eeb9060c985192bd8b6", "sha256": "dd52e7211f0e2e6db9495597c228bf50965b8b4099e521fa45947c0a3235f7aa" }, "downloads": -1, "filename": "setuphelper-0.5.1.tar.gz", "has_sig": false, "md5_digest": "ee75864338db7eeb9060c985192bd8b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23506, "upload_time": "2009-12-28T04:26:38", "url": "https://files.pythonhosted.org/packages/ae/87/27c3ae6649a2ae045ff5d4957cb51507d29551ec8b7d13609fd088ab878e/setuphelper-0.5.1.tar.gz" } ] }