Skip to content

Commit

Permalink
Use MANIFEST.in to identify package data, allows recursive include (#…
Browse files Browse the repository at this point in the history
…9021) (#9026)

* changelog

* use MANIFEST.in to identify package data

(cherry picked from commit 839c720)

Co-authored-by: Mike Alfare <[email protected]>
  • Loading branch information
github-actions[bot] and mikealfare authored Nov 7, 2023
1 parent 66cb5a0 commit bebd6ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .changes/unreleased/Fixes-20231107-094130.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Fixes
body: Use MANIFEST.in to recursively include all jinja templates; fixes issue where
some templates were not included in the distribution
time: 2023-11-07T09:41:30.121733-05:00
custom:
Author: mikealfare
Issue: "9016"
1 change: 1 addition & 0 deletions plugins/postgres/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include dbt/include *.sql *.yml
9 changes: 1 addition & 8 deletions plugins/postgres/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,7 @@ def _dbt_psycopg2_name():
author_email="[email protected]",
url="https://github.com/dbt-labs/dbt-core",
packages=find_namespace_packages(include=["dbt", "dbt.*"]),
package_data={
"dbt": [
"include/postgres/dbt_project.yml",
"include/postgres/sample_profiles.yml",
"include/postgres/macros/*.sql",
"include/postgres/macros/**/*.sql",
]
},
include_package_data=True,
install_requires=[
"dbt-core=={}".format(package_version),
"{}~=2.8".format(DBT_PSYCOPG2_NAME),
Expand Down

0 comments on commit bebd6ca

Please sign in to comment.