-
Notifications
You must be signed in to change notification settings - Fork 42
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
[CT-2027] [Feature] Standardize setup.py
across adapter repos
#80
Comments
setup.py
across adapter repossetup.py
across adapter repos
Part of these updates should include visiting the conditionals in setup.py per dbt-labs/dbt-snowflake#633 |
If setup.py is being overhauled, why not just switch to pyproject.toml and maybe also switch to python poetry at the same time? |
@DustinMoriarty we're definitely interested in switching to We'd consider Poetry separately. We last discussed this in dbt-labs/dbt-core#4446, which has since gone stale and subsequently closed. We'd invite you to comment on that closed issue and we can re-open it for further discussion. I just added a comment here. |
@dbeatty10 : I would definitely recommend poetry for any project, especially one that is refactoring it's build tools. I would be happy to help with the migration if you want. I have migrated quite a few projects to poetry. It is not nearly as big of a change as you would think. It is not a breaking change because the build output meets the same PEP standards. The project just becomes easier to manage. |
We (Databricks) have a stale PR in our repo for doing exactly this. It's mostly never gotten merged because I waffled about if we're ok with more fragmentation for people who might work across the ecosystem. |
In other words, would strongly appreciate the move to modern build tools. Poetry's value is maybe more debatable, but I'd love to consolidate all our python config into a pyproject.toml. |
We migrated to dbt-postgres has an example pyproject.toml. When we do the same for the other adapters maintained by dbt Labs, then this issue will be resolved. |
#80) * Merge `main` into `1.0.latest` (#46) * Slack message for failed nightly runs (#41) * Add Redshift parameter to create tables with backup option specified (#42) * Update impl and adapters to support backup parameter * Add test files * Add test files * Add PR link to Changelog * Add EOF newlines * Debug and split test into two separate cases * Add contributor info Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com> * Bumping version to 1.0.0rc2 (#45) * Bumping version to 1.0.0rc2 * Update changelog Co-authored-by: Github Build Bot <buildbot@fishtownanalytics.com> Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com> Co-authored-by: Dan Bryan <dlb8685@gmail.com> Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Github Build Bot <buildbot@fishtownanalytics.com> * [Backport] Bumping version to 1.0.0 (#47) (#48) * Bumping version to 1.0.0 (#47) Co-authored-by: Github Build Bot <buildbot@fishtownanalytics.com> * Update CHANGELOG.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Github Build Bot <buildbot@fishtownanalytics.com> * Fix package version (#49) * using string interpoloation to gather correct pointer for dbt-core tests against release branches * created new job for gha to grab correct version of dbt-core to test branch against * minor update * adding Get dbt-core-version step to integration.yaml * modifying version parameters * change for integration testing * updating file * readding pull_request_target now that tests pass * make nit: suggested changes * testing conditional logic in integration.yml * updating test names * creating main.yml versions of new condtional steps for dbt-version gather * trying different version of test v.2 * v.3 of conditional mix of original version of tests and leah logic * adding comment and changelog entry * changes made after review by @VersusFacit and @kwigley * name change * minor updates * updating name of version ref * name change of dbt-version step to dbt-core-ref to be more descriptive iof where version is coming from * Update test_backup_table_option.py * Update test_backup_table_option.py * reseting file that shouldn't of been changed Co-authored-by: leahwicz <60146280+leahwicz@users.noreply.github.com> Co-authored-by: Dan Bryan <dlb8685@gmail.com> Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Github Build Bot <buildbot@fishtownanalytics.com>
Co-authored-by: Mila Page <versusfacit@users.noreply.github.com>
Is this your first time submitting a feature request?
Describe the feature
Loving the changes that @mikealfare made to setup.py in Redshift.
It seems like we should standardize and make similar changes in the other adapters!
I'm not sure if they would apply to Postgres or not 🤷 -- someone would need to assess:
Bonus suggestion:
setup.py
here and then just use that to stamp out instances for each adapterDescribe alternatives you've considered
We could allow the structure and contents of setup.py to drift. But I don't think it's necessary for them to drift. After a detailed assessment, nearly everything I saw was undifferentiated across adapters.
Who will this benefit?
One benefit:
setup.py
from an adapter maintained by dbt Labs, and it would be nice for them to get the "latest and greatest" version.Another benefit:
Are you interested in contributing this feature?
Happy to help however -- pretty easy to open PRs for these
Anything else?
See below for a templated version of
setup.py
(that may itself be stale already 🤷). It would be very easy to convert this for usage by Copier, Cruft, Cookiecutter, Cookieninja, etc.Cookiecutter template for
setup.py
The text was updated successfully, but these errors were encountered: