pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel py-dotenv: updated to 0.12.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5d3a0a924e7b
branches:  trunk
changeset: 413693:5d3a0a924e7b
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Mar 21 19:41:55 2020 +0000

description:
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

diffstat:

 devel/Makefile                      |   4 ++--
 devel/py-dotenv/ALTERNATIVES        |   1 +
 devel/py-dotenv/DESCR               |   3 +++
 devel/py-dotenv/Makefile            |  32 ++++++++++++++++++++++++++++++++
 devel/py-dotenv/PLIST               |  30 ++++++++++++++++++++++++++++++
 devel/py-dotenv/distinfo            |   6 ++++++
 devel/py-python-dotenv/ALTERNATIVES |   1 -
 devel/py-python-dotenv/DESCR        |   3 ---
 devel/py-python-dotenv/Makefile     |  22 ----------------------
 devel/py-python-dotenv/PLIST        |  23 -----------------------
 devel/py-python-dotenv/distinfo     |   6 ------
 11 files changed, 74 insertions(+), 57 deletions(-)

diffs (192 lines):

diff -r 6ae213514f12 -r 5d3a0a924e7b devel/Makefile
--- a/devel/Makefile    Sat Mar 21 19:28:56 2020 +0000
+++ b/devel/Makefile    Sat Mar 21 19:41:55 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3064 2020/03/21 15:26:41 taca Exp $
+# $NetBSD: Makefile,v 1.3065 2020/03/21 19:41:55 adam Exp $
 #
 
 COMMENT=       Development utilities
@@ -2176,6 +2176,7 @@
 SUBDIR+=       py-docstyle
 SUBDIR+=       py-doctor
 SUBDIR+=       py-dogpile-cache
+SUBDIR+=       py-dotenv
 SUBDIR+=       py-dulwich
 SUBDIR+=       py-editorconfig-core
 SUBDIR+=       py-entrypoints
@@ -2427,7 +2428,6 @@
 SUBDIR+=       py-pysvn
 SUBDIR+=       py-pyte
 SUBDIR+=       py-pytemplate
-SUBDIR+=       py-python-dotenv
 SUBDIR+=       py-python-slugify
 SUBDIR+=       py-pyutil
 SUBDIR+=       py-pyvex
diff -r 6ae213514f12 -r 5d3a0a924e7b devel/py-dotenv/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-dotenv/ALTERNATIVES      Sat Mar 21 19:41:55 2020 +0000
@@ -0,0 +1,1 @@
+bin/dotenv @PREFIX@/bin/dotenv-@PYVERSSUFFIX@
diff -r 6ae213514f12 -r 5d3a0a924e7b devel/py-dotenv/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-dotenv/DESCR     Sat Mar 21 19:41:55 2020 +0000
@@ -0,0 +1,3 @@
+python-dotenv reads the key,value pair from .env and adds them to environment
+variable. It is great of managing app settings during development and in
+production using 12-factor principles.
diff -r 6ae213514f12 -r 5d3a0a924e7b devel/py-dotenv/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-dotenv/Makefile  Sat Mar 21 19:41:55 2020 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2020/03/21 19:41:56 adam Exp $
+
+DISTNAME=      python-dotenv-0.12.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^python-//}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python-dotenv/}
+
+MAINTAINER=    wen%NetBSD.org@localhost
+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-[0-9]*:../../devel/py-test
+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"
diff -r 6ae213514f12 -r 5d3a0a924e7b devel/py-dotenv/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-dotenv/PLIST     Sat Mar 21 19:41:55 2020 +0000
@@ -0,0 +1,30 @@
+@comment $NetBSD: PLIST,v 1.1 2020/03/21 19:41:56 adam Exp $
+bin/dotenv-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/dotenv/__init__.py
+${PYSITELIB}/dotenv/__init__.pyc
+${PYSITELIB}/dotenv/__init__.pyo
+${PYSITELIB}/dotenv/cli.py
+${PYSITELIB}/dotenv/cli.pyc
+${PYSITELIB}/dotenv/cli.pyo
+${PYSITELIB}/dotenv/compat.py
+${PYSITELIB}/dotenv/compat.pyc
+${PYSITELIB}/dotenv/compat.pyo
+${PYSITELIB}/dotenv/ipython.py
+${PYSITELIB}/dotenv/ipython.pyc
+${PYSITELIB}/dotenv/ipython.pyo
+${PYSITELIB}/dotenv/main.py
+${PYSITELIB}/dotenv/main.pyc
+${PYSITELIB}/dotenv/main.pyo
+${PYSITELIB}/dotenv/parser.py
+${PYSITELIB}/dotenv/parser.pyc
+${PYSITELIB}/dotenv/parser.pyo
+${PYSITELIB}/dotenv/py.typed
+${PYSITELIB}/dotenv/version.py
+${PYSITELIB}/dotenv/version.pyc
+${PYSITELIB}/dotenv/version.pyo
diff -r 6ae213514f12 -r 5d3a0a924e7b devel/py-dotenv/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-dotenv/distinfo  Sat Mar 21 19:41:55 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/03/21 19:41:56 adam Exp $
+
+SHA1 (python-dotenv-0.12.0.tar.gz) = 21f4cf56b416e64866877eacb61f85f513229b83
+RMD160 (python-dotenv-0.12.0.tar.gz) = 825dc8d22b7ebea16f73051f9235309d7ded1bde
+SHA512 (python-dotenv-0.12.0.tar.gz) = 9e70ae4f91f3562627f1c54d2e1c8306e6c537cb8807aceff4e97fc11ce7cc5ac759c3bf610c5993e73ab2e5853106b41f460d852e45593dc093b979346eebf9
+Size (python-dotenv-0.12.0.tar.gz) = 28460 bytes
diff -r 6ae213514f12 -r 5d3a0a924e7b devel/py-python-dotenv/ALTERNATIVES
--- a/devel/py-python-dotenv/ALTERNATIVES       Sat Mar 21 19:28:56 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-bin/dotenv @PREFIX@/bin/dotenv-@PYVERSSUFFIX@
diff -r 6ae213514f12 -r 5d3a0a924e7b devel/py-python-dotenv/DESCR
--- a/devel/py-python-dotenv/DESCR      Sat Mar 21 19:28:56 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-python-dotenv reads the key,value pair from .env and adds them to environment
-variable. It is great of managing app settings during development and in
-production using 12-factor principles.
diff -r 6ae213514f12 -r 5d3a0a924e7b devel/py-python-dotenv/Makefile
--- a/devel/py-python-dotenv/Makefile   Sat Mar 21 19:28:56 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2018/05/03 02:26:55 wen Exp $
-
-DISTNAME=      python-dotenv-0.8.2
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES=    devel python
-MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python-dotenv/}
-
-MAINTAINER=    wen%NetBSD.org@localhost
-HOMEPAGE=      https://pypi.org/project/python-dotenv/
-COMMENT=       Add .env support to your django/flask apps
-LICENSE=       modified-bsd
-
-DEPENDS+=      ${PYPKGPREFIX}-click>=5.0:../../devel/py-click
-
-USE_LANGUAGES= # none
-
-post-install:
-       cd ${DESTDIR}${PREFIX}/bin && ${MV} dotenv dotenv-${PYVERSSUFFIX} || ${TRUE}
-
-.include "../../lang/python/application.mk"
-.include "../../lang/python/egg.mk"
-.include "../../mk/bsd.pkg.mk"
diff -r 6ae213514f12 -r 5d3a0a924e7b devel/py-python-dotenv/PLIST
--- a/devel/py-python-dotenv/PLIST      Sat Mar 21 19:28:56 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1 2018/05/03 02:26:55 wen Exp $
-bin/dotenv-${PYVERSSUFFIX}
-${PYSITELIB}/dotenv/__init__.py
-${PYSITELIB}/dotenv/__init__.pyo
-${PYSITELIB}/dotenv/__init__.pyc
-${PYSITELIB}/dotenv/cli.pyo
-${PYSITELIB}/dotenv/cli.pyc
-${PYSITELIB}/dotenv/compat.pyo
-${PYSITELIB}/dotenv/compat.pyc
-${PYSITELIB}/dotenv/ipython.pyo
-${PYSITELIB}/dotenv/ipython.pyc
-${PYSITELIB}/dotenv/main.pyo
-${PYSITELIB}/dotenv/main.pyc
-${PYSITELIB}/dotenv/cli.py
-${PYSITELIB}/dotenv/compat.py
-${PYSITELIB}/dotenv/ipython.py
-${PYSITELIB}/dotenv/main.py
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
diff -r 6ae213514f12 -r 5d3a0a924e7b devel/py-python-dotenv/distinfo
--- a/devel/py-python-dotenv/distinfo   Sat Mar 21 19:28:56 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-$NetBSD: distinfo,v 1.1 2018/05/03 02:26:55 wen Exp $
-
-SHA1 (python-dotenv-0.8.2.tar.gz) = b3f638ca640f989408fc625c0cd29af7509bbf10
-RMD160 (python-dotenv-0.8.2.tar.gz) = 1c7ebff47846c8754e3f8353bf4373e06eb318da
-SHA512 (python-dotenv-0.8.2.tar.gz) = 2fc5a317dc1a673ca2af9aa5e23af90cd5ec23a5c52fe0852a9c2a669e3bdcd6f13c90403b01f14c079a333ba53a2bc64e096640313de63dd8a25f87661c428d
-Size (python-dotenv-0.8.2.tar.gz) = 16757 bytes



Home | Main Index | Thread Index | Old Index