From nobody Sun Oct 22 08:45:39 2023 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 4SCsNM4jg1z4yGSN; Sun, 22 Oct 2023 08:45:39 +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 4SCsNM4C9pz3Fv1; Sun, 22 Oct 2023 08:45:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697964339; 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=EWtGYqXUD2JuGnNqWev4N+pPzKFZZFJPy5CZ0sxaK/o=; b=UouMawDqHZzmPCSRar4MPUqdamPFMhSrpFz/J3JVyQSM48byVQvMtbpALTYnnFXtLO7p2x HnYqBZPA7s7aV9HPNefnO0uBucoKaJC1Vdy46aaAcVUPdCd4+ANeZfqzghyyApd2CGyb+k ebAsZWjsMRz79O0Pu9Au5P1iW2v5mRColbOtPJxzHJ8UpSboI44rmr8QoCxO6kGOCvvaXi ONpkIGSAMGFeDqI+8o9zAikqaPc82zKjlBNqn0NKx9vn6FlbBmvdptN8tsSsDshdcXg0xy jWXbk77trr7k7B+h5ztC7mUetsTMTjszwJizVJ8iCyZ7ci1gFXo5ngR3mapfHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697964339; a=rsa-sha256; cv=none; b=LQR6fvmyIZxKaFOKYF1YqUZcBbks844+WAhGq5wfWlyGhnOn7y9Jv2fhxJN7ssxQdyCncn yrOWf4eH6dXZnwNY68p+cGesqYc+o23OTxN2Ek7B5jvxVXouiAaEsdQ3cwaIomruzjNFsR GJgJ/Li3q6jgxx+ADzC38nKxDm4O9pv752ico7SJcOZtfyqeW6rCOBib5eUZkKMvdfQtsC DG5a4TGRpe8be5B5cn7rUer5Fr1no3ttfkaK7scUOD9mxF0BMM0jHWENVwF/2d1lyE1W8e W1pP2Hy5PyEK5A2IoxoOiYXAM99YZgViA/g4+IRH308xFp+XbJi55hxc2TRy+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697964339; 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=EWtGYqXUD2JuGnNqWev4N+pPzKFZZFJPy5CZ0sxaK/o=; b=a9DUxi0Z5BXjkdN51w7jnskZblvidLrHoWq8IDLJ2t2pc5kKRRJeF9+rZVGrrTfQMV/L5s l0qLzw8bf5ptaYVfREhs/t6zL+h49f03QxQdsLakQZ8SiWWhDTpgapRkdyQ4qXSSr93MsS Fjm8YbcxN/A18K3v2WdepPcMhWbinI7QVBWt/yKro2YSEBoxfTDkqOlt8rJMKGR/mQeN1F jQaQc120YDD/jrpzgoG0+mpHJhlrjRIde3IgRI3Ae5NrD7pKiKTW1HjImajOE66PdTUsVq 7prg4s0r22FmznDIAymaxicA00IKj0eHErf//WVkCq41L+ou4nOxFxsu6QmcGg== 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 4SCsNM3Glzzr73; Sun, 22 Oct 2023 08:45:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39M8jdXf099098; Sun, 22 Oct 2023 08:45:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39M8jdaV099095; Sun, 22 Oct 2023 08:45:39 GMT (envelope-from git) Date: Sun, 22 Oct 2023 08:45:39 GMT Message-Id: <202310220845.39M8jdaV099095@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kurt Jaeger Subject: git: 3601989e86ec - main - databases/py-dbt-snowflake: new port 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: pi X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3601989e86ec783801f9ffca5b8374e1757f107b Auto-Submitted: auto-generated The branch main has been updated by pi: URL: https://cgit.FreeBSD.org/ports/commit/?id=3601989e86ec783801f9ffca5b8374e1757f107b commit 3601989e86ec783801f9ffca5b8374e1757f107b Author: Pat Maddox AuthorDate: 2023-10-22 08:43:24 +0000 Commit: Kurt Jaeger CommitDate: 2023-10-22 08:43:24 +0000 databases/py-dbt-snowflake: new port The dbt-snowflake package contains all of the code enabling dbt to work with Snowflake. PR: 274583 Author: Pat Maddox --- databases/Makefile | 1 + databases/py-dbt-snowflake/Makefile | 38 ++++++++++++++++++++++++++++++++++++ databases/py-dbt-snowflake/distinfo | 3 +++ databases/py-dbt-snowflake/pkg-descr | 2 ++ 4 files changed, 44 insertions(+) diff --git a/databases/Makefile b/databases/Makefile index a9d000c30e9f..34b75fde9742 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -758,6 +758,7 @@ SUBDIR += py-dbf SUBDIR += py-dbt-core SUBDIR += py-dbt-semantic-interfaces + SUBDIR += py-dbt-snowflake SUBDIR += py-dbutils SUBDIR += py-duckdb SUBDIR += py-fakeredis diff --git a/databases/py-dbt-snowflake/Makefile b/databases/py-dbt-snowflake/Makefile new file mode 100644 index 000000000000..d09504defe8c --- /dev/null +++ b/databases/py-dbt-snowflake/Makefile @@ -0,0 +1,38 @@ +PORTNAME= dbt-snowflake +PORTVERSION= 1.6.0 +CATEGORIES= databases python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= pat@patmaddox.com +COMMENT= Snowflake adapter plugin for dbt +WWW= https://github.com/dbt-labs/dbt-snowflake + +LICENSE= APACHE20 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}agate>0:textproc/py-agate@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dbt-core>=1.6,<2:databases/py-dbt-core@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}snowflake-connector-python>=3.0,<4:databases/py-snowflake-connector-python@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}keyring>0:security/py-keyring@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +# py-dbt-snowflake attempts to install __init__.py and the generated bytecode into +# these directories which conflicts with those installed by py-dbt-core. We need to +# delete these files and their entries in the generated plist post-install. +COMMON_DIRS= dbt \ + dbt/adapters \ + dbt/include + +post-stage: +.for dir in ${COMMON_DIRS:S|/|\/|g} + @${REINPLACE_CMD} -e '/.*\/${dir}\/__init__.py/d' \ + -e '/.*\/${dir}\/__pycache__.*/d' \ + ${WRKDIR}/.PLIST.pymodtmp +.endfor +.for dir in ${COMMON_DIRS} + @(cd ${STAGEDIR}${PYTHON_SITELIBDIR}/${dir} && ${RM} -r __pycache__ __init__.py) +.endfor + +.include diff --git a/databases/py-dbt-snowflake/distinfo b/databases/py-dbt-snowflake/distinfo new file mode 100644 index 000000000000..76bf8dc3209c --- /dev/null +++ b/databases/py-dbt-snowflake/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1691563233 +SHA256 (dbt-snowflake-1.6.0.tar.gz) = 1e710aeafceaa57318dce58789595c813cc1c551f43a0e1ec03d34c6659f504c +SIZE (dbt-snowflake-1.6.0.tar.gz) = 31680 diff --git a/databases/py-dbt-snowflake/pkg-descr b/databases/py-dbt-snowflake/pkg-descr new file mode 100644 index 000000000000..0c0b89753a9a --- /dev/null +++ b/databases/py-dbt-snowflake/pkg-descr @@ -0,0 +1,2 @@ +The dbt-snowflake package contains all of the code enabling dbt to work with +Snowflake.