{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "tox-envfile\n===========\n\nA [tox](https://tox.readthedocs.io/) plugin that loads environment variables\nfrom env files into your tox envs.\n\nReads environment variables from a file named `.devdata.env` in the same\ndirectory as your `tox.ini` file and adds them to the environment that tox runs\nyour commands in.\n\nThis is a pretty dumb plugin for now: all of the environment variables in\n`.devdata.env` will be loaded into the environment for every tox env that you\nrun, unconditionally. Any existing envvars with conflicting names will be\noverwritten.\n\nTODO:\n\n- [ ] Support env file names other than `.devdata.env` (which just happens to\n be the filename I'm using in my projects)\n- [ ] Support some kind of conditional loading where you can specify in the\n `tox.ini` file which tox envs the env file should be loaded for, and which\n not. And load different env files for different tox envs. Something like:\n `env = {toxinidir}/.env` (or `readenv`) in `tox.ini`.\n\nUsage\n-----\n\nJust add this to your `tox.ini` file:\n\n```INI\nrequires = tox-envfile\n```\n\nenv File Format\n---------------\n\n[python-dotenv](https://saurabh-kumar.com/python-dotenv/) is used for the env file parsing.\n\nThe `.devdata.env` file should be an env file with contents that look like\nthis:\n\n```shell\n# a comment that will be ignored.\nREDIS_ADDRESS=localhost:6379\nMEANING_OF_LIFE=42\nMULTILINE_VAR=\"hello\\nworld\"\n```\n\nOr like this:\n\n```shell\nexport S3_BUCKET=YOURS3BUCKET\nexport SECRET_KEY=YOURSECRETKEYGOESHERE\n```\n\nPOSIX variable expansion works, using variables from the environment or from\nearlier lines in the env file:\n\n```shell\nCONFIG_PATH=${HOME}/.config/foo\nDOMAIN=example.org\nEMAIL=admin@${DOMAIN}\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "tox-envfile", "package_url": "https://pypi.org/project/tox-envfile/", "platform": "", "project_url": "https://pypi.org/project/tox-envfile/", "project_urls": null, "release_url": "https://pypi.org/project/tox-envfile/0.0.2/", "requires_dist": [ "python-dotenv" ], "requires_python": "", "summary": "", "version": "0.0.2" }, "last_serial": 5923790, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2c2148f11bbd8a7a654b9071cadc08ee", "sha256": "c047c830be58a14ef04c9996b4b2e3cce23b92824fe68b162d89abf02e2b2224" }, "downloads": -1, "filename": "tox_envfile-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "2c2148f11bbd8a7a654b9071cadc08ee", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2477, "upload_time": "2019-10-02T18:44:29", "url": "https://files.pythonhosted.org/packages/7e/aa/c887808ca142f62a75aac5b5cc5d59083ab9167bcec2f28bb01615e23f57/tox_envfile-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b149ef00e3107d69d4d41a3c435468e1", "sha256": "40df4b56ce0d5860ae2a711cab07bb08fc5faa57fda98f0bfcc67bd3eb6d315e" }, "downloads": -1, "filename": "tox-envfile-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b149ef00e3107d69d4d41a3c435468e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2106, "upload_time": "2019-10-02T18:44:30", "url": "https://files.pythonhosted.org/packages/bc/c1/f5da3efe89583208de59c69b989763997226f3e48853497799da7f2d6a1a/tox-envfile-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "9f4943ec7879e2ea2b2a4fb01a0175fe", "sha256": "e1d083972cdbedaf80ab854d4be43f5a8a779c729f93c365cd4c4e8e83301f98" }, "downloads": -1, "filename": "tox_envfile-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "9f4943ec7879e2ea2b2a4fb01a0175fe", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2477, "upload_time": "2019-10-03T14:29:31", "url": "https://files.pythonhosted.org/packages/3a/3d/4f397f6dfdeb8706ff2927bd3d5c51b0938fc6fa86efbefb423cdf595df0/tox_envfile-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83e82a56f11f4ec21a21ac60efe48221", "sha256": "cc02785d0881adc161ffd7a5208f6a36bbd0cc6b5f3a99a27ac4dc6788718212" }, "downloads": -1, "filename": "tox-envfile-0.0.2.tar.gz", "has_sig": false, "md5_digest": "83e82a56f11f4ec21a21ac60efe48221", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2105, "upload_time": "2019-10-03T14:29:33", "url": "https://files.pythonhosted.org/packages/26/45/c436399f30b2482119d875d805f7ed5f01436227276d3d1de2cfa7654e57/tox-envfile-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9f4943ec7879e2ea2b2a4fb01a0175fe", "sha256": "e1d083972cdbedaf80ab854d4be43f5a8a779c729f93c365cd4c4e8e83301f98" }, "downloads": -1, "filename": "tox_envfile-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "9f4943ec7879e2ea2b2a4fb01a0175fe", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2477, "upload_time": "2019-10-03T14:29:31", "url": "https://files.pythonhosted.org/packages/3a/3d/4f397f6dfdeb8706ff2927bd3d5c51b0938fc6fa86efbefb423cdf595df0/tox_envfile-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83e82a56f11f4ec21a21ac60efe48221", "sha256": "cc02785d0881adc161ffd7a5208f6a36bbd0cc6b5f3a99a27ac4dc6788718212" }, "downloads": -1, "filename": "tox-envfile-0.0.2.tar.gz", "has_sig": false, "md5_digest": "83e82a56f11f4ec21a21ac60efe48221", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2105, "upload_time": "2019-10-03T14:29:33", "url": "https://files.pythonhosted.org/packages/26/45/c436399f30b2482119d875d805f7ed5f01436227276d3d1de2cfa7654e57/tox-envfile-0.0.2.tar.gz" } ] }