{ "info": { "author": "Nathan R. Yergler", "author_email": "nathan@yergler.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Buildout", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "===============\nbuildout_script\n===============\n\n:Author: Nathan R. Yergler \n:Copyright:\n 2006-2015, Nathan R. Yergler, Creative Commons;\n licensed to the public under the `MIT license\n `_.\n\nOverview\n********\n\nbuildout_script is a `zc.buildout`_ recipe for generating scripts from\na template. Unlike scripts specified by the ``console_scripts``\nentry point, those generated by buildout_script are not restricted to\nPython code.\n\nScripts are generated from templates and can include settings from the\nbuildout substituted at runtime.\n\nOne example usage is the generation of a wrapper script for `Paste\nScript`_ to check the status of a\ndaemonized server process (see paster-check below).\n\nUsage\n*****\n\nTo use the buildout_script recipe, specify it as the recipe for a\nzc.buildout part along with the ``template`` part. For example::\n\n [sample_part]\n recipe = buildout_script\n template = paster-check.sh.in\n\nThe script will be created in the bin-directory. You may also specify\nthe following parameters:\n\ntarget\n The filename for the generated script; if omitted, the script will have\n the template filename without the extension.\n\ntemplate_dir\n An optional directory to look for templates in. Default: ``templates``\n Templates included with the recipe may also be used without specifying\n a template_dir.\n\nTemplates\n*********\n\nTemplate variables should be formatted using the buildout convention\nof ``${part-name:variable-name}``.\n\nNB. Until version 0.2a1 of buildout_script the python `string formatting syntax`_ was used\nwhere the dictionary for the formatting operation was a flattened dictionary of the\nbuildout settings and part settings.\n\nFor example, a trivial script template to list the files in the buildout\ninstallation directory would look like this::\n\n #!/bin/bash\n\n # Sample buildout_script script template\n ls ${buildout:directory}\n\nbuildout_script ships with one script template, ``paster-check.sh.in``,\ndescribed below. Additional template contributions are welcome.\n\npaster-check.sh.in\n==================\n\nAt Creative Commons we used `Paste Script`_ as the server for simple\nweb applications. We run them using the ``--daemon`` flag, but\noccassionally something goes awry and the process dies. This template\ngenerates a script which can be called periodically from cron to\nensure the process is still running. Note that this script can also\nbe used to start the server if it is not already running.\n\nConfiguration Parameters\n------------------------\n\nConfiguration parameters used by this script, which should be specified\nas settings in the zc.buildout part:\n\nserver_cfg\n The `Paste Deploy `_ configuration\n file to serve.\n\npid_file\n The PID file to use when starting the server (and to subsequently check).\n\nlog_file\n The log file to use.\n\n.. _`Paste Script`: http://pythonpaste.org/script/\n.. _zc.buildout: http://cheeseshop.python.org/pypi/zc.buildout\n.. _`string formatting syntax`: https://docs.python.org/2/library/stdtypes.html#string-formatting\n\nChange History\n**************\n\n\n0.3.1 (2017-03-06)\n==================\n\n* Fix packaging issues\n\n CHANGES.rst was referenced by setup.py, but not included in the package.\n\n0.3 (2015-10-12)\n================\n\n* PyPI release of changes contributed by jjmurre\n\n0.2a3 (2015-10-08)\n==================\n\n* Templating syntax now cf. buildout, e.g. ${buildout:directory} NB. backwards incompatible!\n\n0.2a2 (2015-10-07)\n==================\n\n* Fixes to make recipe work with modern pythons (>=2.7)\n\n0.2a1 (2007-03-14)\n==================\n\n* Implemented ``template`` recipe for creating a non-executable file.\n\n0.1 (2006-12-12)\n================\n\n* Initial public release\n\nDownload\n********", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nyergler/buildout_script", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "buildout_script", "package_url": "https://pypi.org/project/buildout_script/", "platform": "", "project_url": "https://pypi.org/project/buildout_script/", "project_urls": { "Homepage": "https://github.com/nyergler/buildout_script" }, "release_url": "https://pypi.org/project/buildout_script/0.3.1/", "requires_dist": null, "requires_python": "", "summary": "zc.buildout recipes for generating script and conf files from templates.", "version": "0.3.1" }, "last_serial": 2686495, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6eaff3ba7c242c7a7430008e07f96907", "sha256": "71dda0599c1d59f8c9aa518547d0e62a3a6a674e99539bd2543790058695dc4c" }, "downloads": -1, "filename": "buildout_script-0.1-py2.4.egg", "has_sig": false, "md5_digest": "6eaff3ba7c242c7a7430008e07f96907", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 7679, "upload_time": "2006-12-12T18:55:11", "url": "https://files.pythonhosted.org/packages/ae/9c/fe72926800455aad6bb5fd27defbafcb6dbfdce9cd955084b68709a6dfb4/buildout_script-0.1-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "2d0b58d9c0b84a4ae2ec8a15a420cfea", "sha256": "f1b769eccbefdd6e73b5dcb3fd6cc5204aa3f8906d707d5bd38684f08325f9f9" }, "downloads": -1, "filename": "buildout_script-0.1-py2.5.egg", "has_sig": false, "md5_digest": "2d0b58d9c0b84a4ae2ec8a15a420cfea", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 7683, "upload_time": "2006-12-12T18:55:27", "url": "https://files.pythonhosted.org/packages/5e/8f/d90fadeceb886e850766506bc8d91269428ad8f35b0a9487d7b9327b8a89/buildout_script-0.1-py2.5.egg" } ], "0.2a1": [ { "comment_text": "", "digests": { "md5": "ee4c515e7f1726cc7bc664396f411145", "sha256": "37f931f29e05d750a98db00aea816d2c03d0b15ebfcdf7635b5d59fd007f853d" }, "downloads": -1, "filename": "buildout_script-0.2a1-py2.4.egg", "has_sig": false, "md5_digest": "ee4c515e7f1726cc7bc664396f411145", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 10995, "upload_time": "2007-03-14T22:36:37", "url": "https://files.pythonhosted.org/packages/01/0e/1b860a9cab7a50484db17328816e5578dfc902f1ced226416c5e848021a5/buildout_script-0.2a1-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "2c4a4cbc3d721474e67448c2c7358985", "sha256": "8afd7c93774f95bbe6dcc2fcdaf5859094d7c02058f98864e131bdcc7b7e039d" }, "downloads": -1, "filename": "buildout_script-0.2a1.tar.gz", "has_sig": false, "md5_digest": "2c4a4cbc3d721474e67448c2c7358985", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5273, "upload_time": "2007-03-14T22:36:38", "url": "https://files.pythonhosted.org/packages/23/90/95075f93ae787a350ede48e628323bb61583c5ee68e286b3b508ad65792d/buildout_script-0.2a1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "5e7d4f0fb857e1c77b728d012f590116", "sha256": "f2689fb85cf214b500b1927c54c1c91e9baaede69ac68c43073b79a13cbfdd5a" }, "downloads": -1, "filename": "buildout_script-0.3.tar.gz", "has_sig": false, "md5_digest": "5e7d4f0fb857e1c77b728d012f590116", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5238, "upload_time": "2015-10-13T02:52:59", "url": "https://files.pythonhosted.org/packages/54/ba/56048bb91737ff5684bf72b92228b1c1d330a5d51059004f9f615bc99ae5/buildout_script-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "a2332311a06fe1ad2a0f1b1b2b555bd0", "sha256": "1db74f813ed0c3499fd5ec4e282f9a9e14d199349ad847ddcc801e7b35b840ee" }, "downloads": -1, "filename": "buildout_script-0.3.1.tar.gz", "has_sig": false, "md5_digest": "a2332311a06fe1ad2a0f1b1b2b555bd0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1087765, "upload_time": "2017-03-06T17:46:13", "url": "https://files.pythonhosted.org/packages/96/6e/1344f9b5e769e801a344420466962f732dfbfd44052fa576735679d43b9b/buildout_script-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a2332311a06fe1ad2a0f1b1b2b555bd0", "sha256": "1db74f813ed0c3499fd5ec4e282f9a9e14d199349ad847ddcc801e7b35b840ee" }, "downloads": -1, "filename": "buildout_script-0.3.1.tar.gz", "has_sig": false, "md5_digest": "a2332311a06fe1ad2a0f1b1b2b555bd0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1087765, "upload_time": "2017-03-06T17:46:13", "url": "https://files.pythonhosted.org/packages/96/6e/1344f9b5e769e801a344420466962f732dfbfd44052fa576735679d43b9b/buildout_script-0.3.1.tar.gz" } ] }