Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update create_adapter_plugins.py #3509

Merged
merged 2 commits into from
Jul 9, 2021
Merged

Conversation

jtcohen6
Copy link
Contributor

resolves #3002

  • Bump default dbt version, add to .bumpversion.cfg
  • Add __version__.py, sample_profiles.yml, <myadapter>.dbtspec
  • Use find_namespace_packages and MANIFEST.in
  • This feels like a good candidate for cookiecutter! There's so many arguments to this script, and I could imagine getting fancier and asking for credential members as well (to populate in connections.py, sample_profiles.yml, and <myadapter>.dbtspec). I may take a crack at that, but I don't want to impede progress in the meantime.

This PR does not include all the opinionated (and fairly tricky) logic that we have in dbt-spark + dbt-presto around:

  • Dynamically grabbing the package version from __version__.py (as long as both are being bumped...)
  • Guaranteeing that the package version matches the dbt-core version

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

@cla-bot cla-bot bot added the cla:yes label Jun 29, 2021
@jtcohen6 jtcohen6 requested review from a team, gshank and kwigley and removed request for a team June 29, 2021 14:10
@jtcohen6 jtcohen6 temporarily deployed to Postgres June 29, 2021 14:15 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Bigquery June 29, 2021 14:15 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Bigquery June 29, 2021 14:15 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Snowflake June 29, 2021 14:15 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Snowflake June 29, 2021 14:15 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Redshift June 29, 2021 14:15 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Redshift June 29, 2021 14:15 Inactive
Copy link
Contributor

@gshank gshank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not an area that I'm familiar with, but it looks pretty straightforward.

@@ -232,12 +284,12 @@ def parse_args(argv=None):
parser.add_argument('adapter')
parser.add_argument('--title-case', '-t', default=None)
parser.add_argument('--dependency', action='append')
parser.add_argument('--dbt-core-version', default='0.16.1rc1')
parser.add_argument('--dbt-core-version', default='0.20.0rc1')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😮

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know!

Copy link
Contributor Author

@jtcohen6 jtcohen6 Jul 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going to update this to 0.20.0rc2 to match current bumpversion

@jtcohen6 jtcohen6 force-pushed the update/adapter-plugin-script branch from a6b2af3 to 21065e5 Compare July 9, 2021 17:55
@jtcohen6 jtcohen6 temporarily deployed to Postgres July 9, 2021 18:00 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Bigquery July 9, 2021 18:00 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Bigquery July 9, 2021 18:00 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Redshift July 9, 2021 18:00 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Redshift July 9, 2021 18:00 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Snowflake July 9, 2021 18:00 Inactive
@jtcohen6 jtcohen6 temporarily deployed to Snowflake July 9, 2021 18:00 Inactive
@jtcohen6 jtcohen6 merged commit fb91bad into develop Jul 9, 2021
@jtcohen6 jtcohen6 deleted the update/adapter-plugin-script branch July 9, 2021 18:53
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
* Update create_adapter_plugins.py

* Bump, changelog [skip ci]

automatic commit by git-black, original commits:
  fb91bad
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
* Update create_adapter_plugins.py

* Bump, changelog [skip ci]

automatic commit by git-black, original commits:
  6aafd82
  fb91bad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update create_adapter_plugins.py
3 participants