Build a Wheel Distribution without altering the folder structure #4105
Replies: 1 comment 4 replies
-
If your goal is for the YAML files to be in the root of the wheel, that is a bad idea, as, when your wheel is installed, those files will be placed directly in the Python environment's If you don't want your files in the |
Beta Was this translation helpful? Give feedback.
-
I'm trying to build a distribution package based on Wheel. Below is the folder structure that I currently have -
. └── dbtsqlworkloadtest/ ├── dbt/ │ ├── analyses/ │ ├── macros/ │ ├── models/ │ ├── seeds/ │ ├── snapshots/ │ └── tests/ ├── docs/ │ └── index.md ├── catalog.yaml ├── dbt_project.yml ├── mkdocs.yml ├── profiles.yml ├── pyproject.toml ├── README.md ├── setup.cfg └── version.py
Currently, the situation is that when trying to build the wheel and extracting it locally to see the contents, I'm unable to preserve the directory structure mentioned above (meaning the files ending with *.yaml and *.yml are moved to a different directory and the rest in the root directory). Is there any way to ensure that I get a .whl file (or distribution package) with the same directory structure?
Currently, I get the below structure (after extracting the wheel) by executing the below command -
Below is my setup.cfg -
Any ideas / suggestions on how to preserve the structure of the directory while creating the Wheel Distribution. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions