Changed: - Require Python 3.5 or a later version. Python 2 and 3.4 are no longer supported - 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> 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 Signed-off-by: Javier Marcet <javier@marcet.info>
35 lines
1 KiB
Makefile
35 lines
1 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=python-dotenv
|
|
PKG_VERSION:=0.19.0
|
|
PKG_RELEASE:=1
|
|
|
|
PYPI_NAME:=python-dotenv
|
|
PKG_HASH:=f521bc2ac9a8e03c736f62911605c5d83970021e3fa95b37d769e2bbbe9b6172
|
|
|
|
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-dotenv
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
SUBMENU:=Python
|
|
TITLE:=Add .env support to your django/flask apps in development and deployments
|
|
URL:=http://github.com/theskumar/python-dotenv
|
|
DEPENDS:=+python3-light +python3-logging
|
|
endef
|
|
|
|
define Package/python3-dotenv/description
|
|
A Python library which reads the key-value pair from .env file and adds them
|
|
to environment variable. It is great for managing app settings during
|
|
development and in production using 12-factor principles.
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-dotenv))
|
|
$(eval $(call BuildPackage,python3-dotenv))
|
|
$(eval $(call BuildPackage,python3-dotenv-src))
|