{ "info": { "author": "Florian Schulze", "author_email": "florian.schulze@gmx.net", "bugtrack_url": null, "classifiers": [], "description": "buildout.variables\n==================\n\nProvides dynamic variables in buildouts.\n\nAn example use are unique DB names and conflict free parallel continuous integration runs on one machine.\n\nExample buildout section::\n\n [variables]\n recipe = buildout.variables\n index-file = ${env:HOME}/jenkins-buildout-index.json\n index-start = 0\n index-key = ${env:JOB_NAME}\n portbase = indexed 12{index}00\n port = int portbase 0:100\n port-instance = new port\n jobname = str \"${env:JOB_NAME}\" [^a-zA-Z0-9] _\n\n [env]\n recipe = gocept.recipe.env\n\nThere are several things going on here.\n\nThe first are the ``index-`` options. They provide you with the possiblity to get unique indices based on a key and stored in a shared file. That way each buildout gets the same index for each key used. In the example above the key is the JOB_NAME environment variable (set by Jenkins for example) and the index starts at 0. If a buildout with a different JOB_NAME is run, then it will get the next free index.\n\nThe ``portbase`` option evaluates \"12{index}00\".format(index=index). Thus the\nfirst job will get 12000 and the second job 12100 and so on.\n\nThe ``port`` option declares a range of integers which can be used to get unique ports for whatever you need them for. The ``port-instance`` option uses that to declare a port which can be used with ${variables:port-instance} throughout the buildout and would be 12000 in this example. If you declare more, then up to 12099 will be possible before you get an error. Which variable\ngets which port is determined by lexical order of the variable name.\n\nThe ``jobname`` option takes ${env:JOB_NAME} and runs re.sub on it. In this example everything besides letters and numbers is replaced by an underscore.\n\nBesides integer ranges you can't use other dynamic variables from the same section.\n\nCredits\n=======\n\nThanks to Legacy Parts Corporation and http://enquos.com for which this package was initially created.\n\nChangelog\n=========\n\n0.3 - 2013-03-15\n----------------\n\n* First official release.\n [fschulze]\n\n\n0.2 - Unreleased\n----------------\n\n* Fix persisted index.\n [fschulze]\n\n\n0.1 - Unreleased\n----------------\n\n* Initial version.\n [fschulze (Florian Schulze)]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/fschulze/buildout.variables", "keywords": null, "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "buildout.variables", "package_url": "https://pypi.org/project/buildout.variables/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/buildout.variables/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/fschulze/buildout.variables" }, "release_url": "https://pypi.org/project/buildout.variables/0.3/", "requires_dist": null, "requires_python": null, "summary": "Provides dynamic variables in buildouts", "version": "0.3" }, "last_serial": 642882, "releases": { "0.2": [], "0.3": [ { "comment_text": "", "digests": { "md5": "a937befa4e160832a1e018b064c0f6c0", "sha256": "664e00a7842d28b96ba81f9aeb35a533e9bce58e2dd122ec67ba1e3234eadb48" }, "downloads": -1, "filename": "buildout.variables-0.3.zip", "has_sig": false, "md5_digest": "a937befa4e160832a1e018b064c0f6c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9192, "upload_time": "2013-03-15T14:14:58", "url": "https://files.pythonhosted.org/packages/d4/59/5a973bf92a77320870a281dec7ce5209f1a1855e1de5bb5da4b6fb2f6805/buildout.variables-0.3.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a937befa4e160832a1e018b064c0f6c0", "sha256": "664e00a7842d28b96ba81f9aeb35a533e9bce58e2dd122ec67ba1e3234eadb48" }, "downloads": -1, "filename": "buildout.variables-0.3.zip", "has_sig": false, "md5_digest": "a937befa4e160832a1e018b064c0f6c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9192, "upload_time": "2013-03-15T14:14:58", "url": "https://files.pythonhosted.org/packages/d4/59/5a973bf92a77320870a281dec7ce5209f1a1855e1de5bb5da4b6fb2f6805/buildout.variables-0.3.zip" } ] }