I have the following setup.cfg file, a usual project I want to publish to pypi and which should be shipped with a data folder, in my case ru_core_news_sm-3.1.0. (I am using setuptools):
[metadata]
name = test-project-name
version = 0.6.0
[options]
packages = find:
python_requires = >=3.6
include_package_data = True
install_requires =
spacy==3.1.3
beautifulsoup4
[options.package_data]
test_project_name/ru_core_news_sm-3.1.0 = *.*
This is my directory structure
base_project_name/
├── test_project_name
│ ├── __init__.py
│ ├── a.py
│ └── ru_core_news_sm-3.1.0
├── pyproject.toml
├── MANIFEST.in
└── setup.cfg
and I have this in my MANIFEST.in:
recursive-include test_project_name/ru_core_news_sm-3.1.0 *.*
I am testing the install by executing pip install path/to/base_project_name
However, this does not get me all files in the data folder, but only some of them, and I don't know why.
These are the files in the base folder:
and this is what remains when I have "test installed" it using pip to some other location (both projects use venv):
What could be the reason?

