Date: Thu, 6 Jan 2022 15:58:53 GMT From: Dan Langille <dvl@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: eb231fa7d7e4 - main - devel/py-python-decouple: Add new port: Separation of settings from code Message-ID: <202201061558.206Fwrsx000856@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=eb231fa7d7e4073ac89a5718aebb040d9fde257b commit eb231fa7d7e4073ac89a5718aebb040d9fde257b Author: Dan Langille <dvl@FreeBSD.org> AuthorDate: 2022-01-06 15:57:05 +0000 Commit: Dan Langille <dvl@FreeBSD.org> CommitDate: 2022-01-06 15:58:49 +0000 devel/py-python-decouple: Add new port: Separation of settings from code Decouple helps you to organize your settings so that you can change parameters without having to redeploy your app. re: https://github.com/henriquebastos/python-decouple/ --- devel/Makefile | 1 + devel/py-python-decouple/Makefile | 17 +++++++++++++++++ devel/py-python-decouple/distinfo | 3 +++ devel/py-python-decouple/pkg-descr | 24 ++++++++++++++++++++++++ 4 files changed, 45 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index cfedc94bf750..dd1b6bb41e8e 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5112,6 +5112,7 @@ SUBDIR += py-python-bugzilla SUBDIR += py-python-dbusmock SUBDIR += py-python-distutils-extra + SUBDIR += py-python-decouple SUBDIR += py-python-dtrace SUBDIR += py-python-easyconfig SUBDIR += py-python-editor diff --git a/devel/py-python-decouple/Makefile b/devel/py-python-decouple/Makefile new file mode 100644 index 000000000000..3bcae794cbf1 --- /dev/null +++ b/devel/py-python-decouple/Makefile @@ -0,0 +1,17 @@ +PORTNAME= python-decouple +DISTVERSION= 3.5 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Strict separation of settings from code + +LICENSE= MIT + +USES= python:3.6+ +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-python-decouple/distinfo b/devel/py-python-decouple/distinfo new file mode 100644 index 000000000000..382a2a509d64 --- /dev/null +++ b/devel/py-python-decouple/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1641484322 +SHA256 (python-decouple-3.5.tar.gz) = 68e4b3fcc97e24bc90eecc514852d0bf970f4ff031f5f7a6728ddafa9afefcaf +SIZE (python-decouple-3.5.tar.gz) = 11655 diff --git a/devel/py-python-decouple/pkg-descr b/devel/py-python-decouple/pkg-descr new file mode 100644 index 000000000000..0656385bc056 --- /dev/null +++ b/devel/py-python-decouple/pkg-descr @@ -0,0 +1,24 @@ +Decouple helps you to organize your settings so that you can change parameters +without having to redeploy your app. + +It also makes it easy for you to: + +* store parameters in ini or .env files; +* define comprehensive default values; +* properly convert values to the correct data type; +* have only one configuration module to rule all your instances. +* It was originally designed for Django, but became an independent generic too + for separating settings from code. + +Import the config object: + +from decouple import config + +Retrieve the configuration parameters: + +SECRET_KEY = config('SECRET_KEY') +DEBUG = config('DEBUG', default=False, cast=bool) +EMAIL_HOST = config('EMAIL_HOST', default='localhost') +EMAIL_PORT = config('EMAIL_PORT', default=25, cast=int) + +WWW: https://github.com/henriquebastos/python-decouple/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201061558.206Fwrsx000856>