I have a Python package with the following directory structure:
project_root_dir/
├── config/
│ └── (config files)
├── src/
│ ├── sophios/
│ │ └── (source files)
├── setup.py
├── MANIFEST.in
I want to create a wheel that packages files from the config directory also.
In the setup.py file, I have the following:
from setuptools import setup, find_packages
setup(
name="sophios",
version="0.1.0",
packages=find_packages(where="src"),
package_dir={"": "src"},
include_package_data=True,
package_data={
"sophios": ["../config/*"],
},
)
And my MANIFEST.IN file is like this:
include config/*
But, this does not add files from the config directory to the wheel. How can I modify this to make sure files from the config directory are added to the wheel?