From nobody Thu Jan 06 15:58:53 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1FAE01931EAF; Thu, 6 Jan 2022 15:58:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JV9y558sqz3hvf; Thu, 6 Jan 2022 15:58:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 90DED2274A; Thu, 6 Jan 2022 15:58:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 206FwrIG000857; Thu, 6 Jan 2022 15:58:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 206Fwrsx000856; Thu, 6 Jan 2022 15:58:53 GMT (envelope-from git) Date: Thu, 6 Jan 2022 15:58:53 GMT Message-Id: <202201061558.206Fwrsx000856@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dan Langille Subject: git: eb231fa7d7e4 - main - devel/py-python-decouple: Add new port: Separation of settings from code List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dvl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eb231fa7d7e4073ac89a5718aebb040d9fde257b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641484733; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4yYmZkwIfsjBPo1TxG9CybWO9YD4lWcgHPQW9M6p8Ks=; b=b7pqSg59tMLSf4Ou5uGeWWW6+542swX85zuJ2sRQq97x91eUtIG4Oa+Ma8OlfW5NhvdxT6 ia4CfJE7rQp+94QIuQi2Wa2vZAelRr+xMs0mOSVt8V4ea+3Jf6R/hUsGdPrE/LOBuwwe6M +jteyKH9FrFEUZh3USwwiL3/dH2w10g77p5gNJSPPnCE7UuKCL27qDKTm6XctSg8K8MGWY Zkv2iMwYtAL2p1ZVoSJePh55u2FbjSgxFB8tAwEQGHfBolfwxXaZWTjracq+FnvV1YsF53 F2bv5c+5wiQ6X0wyaqeKbffuUtaFI7CNfBQ5WTOhnOdjwr75qbYwI/4yd11g3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641484733; a=rsa-sha256; cv=none; b=En3wiSSSYT61jJfGxbCQILsKXZyyw63G9k3KJyw6xfM4E5LcZlM2msnG0oxMA3jQFpBAQj oKJa5rd+VjtBUGuXAAyDDp+5QlJ62eSWUJjEG4x91/DGrEozejjBATg+VGkIITKZcJUT/z EnQanZ7oQrfOsRbCG/s9tJlxuEreST1rhJG3LXPQFGnURfcRo2WnulfjPUVFtHSJKujMYv zNJn5QaqGXviWoOqSuTysO+PbEVLdJAMx2U3lx9Q7pSv5SLM5/kAGAr/jmaWiQqoiTUJ2+ 0QIU1J41bKd6Mg+TKAabnB6WyCnBdTLXeYIUGfe6QL3Jzbue5gpxCSNo4ljilw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=eb231fa7d7e4073ac89a5718aebb040d9fde257b commit eb231fa7d7e4073ac89a5718aebb040d9fde257b Author: Dan Langille AuthorDate: 2022-01-06 15:57:05 +0000 Commit: Dan Langille 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 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/