9c1ef06bf4
0.19.2 Fixed - In `set_key`, add missing newline character before new entry if necessary. 0.19.1 Added - Add support for Python 3.10. 0.19.0 Changed - Require Python 3.5 or a later version. Python 2 and 3.4 are no longer supported. by [@bbc2]). Added - The `dotenv_path` argument of `set_key` and `unset_key` now has a type of `Union[str, os.PathLike]` instead of just `os.PathLike` - The `stream` argument of `load_dotenv` and `dotenv_values` can now be a text stream (`IO[str]`), which includes values like `io.StringIO("foo")` and `open("file.env", "r")` 0.18.0 Changed - Raise `ValueError` if `quote_mode` isn't one of `always`, `auto` or `never` in `set_key` - When writing a value to a .env file with `set_key` or `dotenv set <key> <value>` - Use single quotes instead of double quotes. - Don't strip surrounding quotes. - In `auto` mode, don't add quotes if the value is only made of alphanumeric characters (as determined by `string.isalnum`). 0.17.1 Fixed - Fixed tests for build environments relying on `PYTHONPATH` [0.17.0 Changed - Make `dotenv get <key>` only show the value, not `key=value` Added - Add `--override`/`--no-override` option to `dotenv run` 0.16.0 Changed - The default value of the `encoding` parameter for `load_dotenv` and `dotenv_values` is now `"utf-8"` instead of `None` - Fix resolution order in variable expansion with `override=False`
28 lines
872 B
Makefile
28 lines
872 B
Makefile
# $NetBSD: Makefile,v 1.6 2021/11/25 08:13:28 adam Exp $
|
|
|
|
DISTNAME= python-dotenv-0.19.2
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^python-//}
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-dotenv/}
|
|
|
|
MAINTAINER= wen@NetBSD.org
|
|
HOMEPAGE= https://github.com/theskumar/python-dotenv
|
|
COMMENT= Add .env support to your django/flask apps
|
|
LICENSE= modified-bsd
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-click>=5.0:../../devel/py-click
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-sh-[0-9]*:../../sysutils/py-sh
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
PYSETUPTESTTARGET= pytest
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && ${MV} dotenv dotenv-${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|