pkgsrc/devel/py-dotenv/Makefile

32 lines
978 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.5 2020/11/09 12:16:14 adam Exp $
py-dotenv: updated to 0.12.0 0.12.0: Changed - Use current working directory to find `.env` when bundled by PyInstaller Fixed - Fix escaping of quoted values written by `set_key` - Fix `dotenv run` crashing on environment variables without values - Remove warning when last line is empty 0.11.0: Added - Add `interpolate` argument to `load_dotenv` and `dotenv_values` to disable interpolation Changed - Use logging instead of warnings Fixed - Fix installation in non-UTF-8 environments - Fix PyPI classifiers 0.10.5: Fixed - Fix handling of malformed lines and lines without a value - Don't print warning when key has no value. - Reject more malformed lines (e.g. "A: B", "a='b',c"). - Fix handling of lines with just a comment 0.10.4: Added - Make typing optional - Print a warning on malformed line - Support keys without a value 0.10.3 - Improve interactive mode detection - Refactor parser to fix parsing inconsistencies - Interpret escapes as control characters only in double-quoted strings. - Interpret `#` as start of comment only if preceded by whitespace. 0.10.2 - Add type hints and expose them to users - `load_dotenv` and `dotenv_values` now accept an `encoding` parameter, defaults to `None` - Fix `str`/`unicode` inconsistency in Python 2: values are always `str` now. - Fix Unicode error in Python 2, introduced in 0.10.0. 0.10.1 - Fix parsing of variable without a value 0.10.0 - Add support for UTF-8 in unquoted values - Add support for trailing comments - Add backslashes support in values - Add support for newlines in values - Force environment variables to str with Python2 on Windows - Drop Python 3.3 support - Fix stderr/-out/-in redirection 0.9.0 - Add `--version` parameter to cli - Enable loading from current directory - Add 'dotenv run' command for calling arbitrary shell script with .env
2020-03-21 20:41:55 +01:00
DISTNAME= python-dotenv-0.15.0
py-dotenv: updated to 0.12.0 0.12.0: Changed - Use current working directory to find `.env` when bundled by PyInstaller Fixed - Fix escaping of quoted values written by `set_key` - Fix `dotenv run` crashing on environment variables without values - Remove warning when last line is empty 0.11.0: Added - Add `interpolate` argument to `load_dotenv` and `dotenv_values` to disable interpolation Changed - Use logging instead of warnings Fixed - Fix installation in non-UTF-8 environments - Fix PyPI classifiers 0.10.5: Fixed - Fix handling of malformed lines and lines without a value - Don't print warning when key has no value. - Reject more malformed lines (e.g. "A: B", "a='b',c"). - Fix handling of lines with just a comment 0.10.4: Added - Make typing optional - Print a warning on malformed line - Support keys without a value 0.10.3 - Improve interactive mode detection - Refactor parser to fix parsing inconsistencies - Interpret escapes as control characters only in double-quoted strings. - Interpret `#` as start of comment only if preceded by whitespace. 0.10.2 - Add type hints and expose them to users - `load_dotenv` and `dotenv_values` now accept an `encoding` parameter, defaults to `None` - Fix `str`/`unicode` inconsistency in Python 2: values are always `str` now. - Fix Unicode error in Python 2, introduced in 0.10.0. 0.10.1 - Fix parsing of variable without a value 0.10.0 - Add support for UTF-8 in unquoted values - Add support for trailing comments - Add backslashes support in values - Add support for newlines in values - Force environment variables to str with Python2 on Windows - Drop Python 3.3 support - Fix stderr/-out/-in redirection 0.9.0 - Add `--version` parameter to cli - Enable loading from current directory - Add 'dotenv run' command for calling arbitrary shell script with .env
2020-03-21 20:41:55 +01:00
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
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
DEPENDS+= ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
.endif
USE_LANGUAGES= # none
PYSETUPTESTTARGET= pytest
post-install:
cd ${DESTDIR}${PREFIX}/bin && ${MV} dotenv dotenv-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"