I have the following structure for a package :
├───Docs
│ ├───Dir
│ └───Output
└───MyPackage
├───__init__.py
├───test
├───MySubPackage1
│ ├───__init__.py
│ ├───...
│ └───data
│ └─── data.pth
└───MySubPackage2
└───__init__.py
I need to include the data.pth file so I tried as advise there to use a MANIFEST.IN like this :
MANIFEST.IN
graft data
setup.py
setup(name='MyPackage',
version='1.0',
package_dir={"MyPackage": "MyPackage"},
packages=find_packages(),
include_package_data=True)
but when installing :
python setup.py install
I see the following warning:
reading manifest template 'MANIFEST.in'
warning: no directories found matching 'data'
what is the correct way to handle this data that sits within a subpackage with a MANIFEST.IN ?