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

Migrating to a proper directory structure for python packages #95

Merged
merged 5 commits into from
Oct 5, 2024

Conversation

pgoslatara
Copy link
Contributor

The existing repo structure does not align with best practices for python packages. This has several nasty implications:

  • When installed from PyPi the files are placed in lib/*/src, meaning that any other package that also uses the src directory could result in a namespace conflict or even overwriting of files (especially main.py).
  • Currently within dbt-jobs-as-code there are both relative references (.common_types) and references to modules in a manner that the end user will never use (src.client).

To fix these issues this package should align with the practices recommended here ("src layout"), here and here.

@pgoslatara pgoslatara mentioned this pull request Oct 3, 2024
@b-per b-per added the ci-ok Allow running CI from external contributors label Oct 3, 2024
@b-per b-per self-requested a review October 5, 2024 19:59
Copy link
Collaborator

@b-per b-per left a comment

Choose a reason for hiding this comment

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

Thanks for this! I'm learning quite a bit with your different PRs and issues!

@b-per b-per merged commit 15f9440 into dbt-labs:main Oct 5, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-ok Allow running CI from external contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants