{ "info": { "author": "Rob Miller", "author_email": "robm@openplans.org", "bugtrack_url": null, "classifiers": [ "Framework :: Buildout", "Intended Audience :: Developers", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "========================\ntopp.recipes.cfgtemplate\n========================\n\nThis is a zc.buildout recipe that provides support for template\nsubstitution within the buildout.cfg file. When this recipe is loaded\nin a buildout.cfg file, it will search the buildout configuration for\nany instances of the the template syntax, i.e. any text enclosed by\n{{double-curly-braces}}. If substitutions are found, the\nconfiguration will be altered directly in memory, and any subsequent\nrecipes will be run with the substituted values.\n\nThe template substitution values come from a separate config file,\nspecified in the topp.recipes.cfgtemplate configuration, defaulting to\n\"cfgsubs.cfg\". If the substitution file does not exist, or if it is\nmissing any values required by the buildout.cfg file, then the user\nwill be interactively prompted to enter the requested information, and\nthe substitution file will be created or amended with the provided\nvalues.\n\nThe idea is that you'll create a templatized buildout.cfg file and\nstore it in a revision control system (RCS). The templatized values\nwould represent information that is not suitable for storage in the\nRCS, such as port numbers, passwords, database connection strings, or\nanything else that is either sensitive or likely to vary from\ndeployment to deployment. The first time this buildout.cfg file is\nused in a new location, the user will interactively provide these\nvalues, which would then be stored in the substitution file, which is\nleft out of the RCS, or (if desired) is stored in a more secure\nrepository elsewhere.\n\nChange history\n**************\n\n${0.1.0 or \"0.0.0\"} (xxxx-xx-xx)\n==================\n\n - Created recipe with ZopeSkel [${Rob Miller or \"\"}].\n\nDetailed Documentation\n**********************\n\nSupported options\n=================\n\nThe recipe supports the following options:\n\n.. Note to recipe author!\n ----------------------\n For each option the recipe uses you shoud include a description\n about the purpose of the option, the format and semantics of the\n values it accepts, whether it is mandatory or optional and what the\n default value is if it is omitted.\n\noption1\n Description for ``option1``...\n\noption2\n Description for ``option2``...\n\n\nExample usage\n=============\n\n.. Note to recipe author!\n ----------------------\n zc.buildout provides a nice testing environment which makes it\n relatively easy to write doctests that both demonstrate the use of\n the recipe and test it.\n You can find examples of recipe doctests from the PyPI, e.g.\n \n http://pypi.python.org/pypi/zc.recipe.egg\n\n The PyPI page for zc.buildout contains documentation about the test\n environment.\n\n http://pypi.python.org/pypi/zc.buildout#testing-support\n\n Below is a skeleton doctest that you can start with when building\n your own tests.\n\nWe'll start by creating a buildout that uses the recipe::\n\n >>> write('buildout.cfg',\n ... \"\"\"\n ... [buildout]\n ... parts = test1\n ...\n ... [test1]\n ... recipe = topp.recipes.cfgtemplate\n ... option1 = %(foo)s\n ... option2 = %(bar)s\n ... \"\"\" % { 'foo' : 'value1', 'bar' : 'value2'})\n\nRunning the buildout gives us::\n\n >>> print system(buildout)\n Upgraded:\n ...\n Installing test1.\n Unused options for test1: 'option2' 'option1'.\n\n\n\nContributors\n************\n\n${Rob Miller or \"\"}, Author\n\n\nDownload\n********", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://topp.openplans.org/", "keywords": "buildout", "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "topp.recipes.cfgtemplate", "package_url": "https://pypi.org/project/topp.recipes.cfgtemplate/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/topp.recipes.cfgtemplate/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://topp.openplans.org/" }, "release_url": "https://pypi.org/project/topp.recipes.cfgtemplate/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Provides template substitution for other recipe configurations in the same buildout.cfg file.", "version": "0.1.0" }, "last_serial": 800801, "releases": { "0.1.0": [], "0.1.0dev-r19466": [ { "comment_text": "", "digests": { "md5": "9c9b9cc35bfc848ee756400397e48839", "sha256": "493cd14f3e1a4ac82292b155d61e6a52a90144cf877d1546032586d9c6b43be7" }, "downloads": -1, "filename": "topp.recipes.cfgtemplate-0.1.0dev-r19466.tar.gz", "has_sig": false, "md5_digest": "9c9b9cc35bfc848ee756400397e48839", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6394, "upload_time": "2008-07-26T06:20:33", "url": "https://files.pythonhosted.org/packages/c8/98/0f8667265e442ce22323da6d2ef5030668a6daa83cbef4adeb9d9ce56784/topp.recipes.cfgtemplate-0.1.0dev-r19466.tar.gz" } ], "0.1.0dev-r19469": [ { "comment_text": "", "digests": { "md5": "d40949aca6d47eee0f757580be4baf08", "sha256": "db5848e49154611ff0b63fffb3f302e8c52f2b51353821081c5425fdd3da33e0" }, "downloads": -1, "filename": "topp.recipes.cfgtemplate-0.1.0dev-r19469.tar.gz", "has_sig": false, "md5_digest": "d40949aca6d47eee0f757580be4baf08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6512, "upload_time": "2008-07-26T07:45:31", "url": "https://files.pythonhosted.org/packages/97/a0/23f336cf821bd577a09ef09a7b00b34e2e24f5353cc127b2a5e2f8207e62/topp.recipes.cfgtemplate-0.1.0dev-r19469.tar.gz" } ] }, "urls": [] }