Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.11 KB

README.md

File metadata and controls

41 lines (33 loc) · 1.11 KB

Test Repo to Recreate force-include issue in Hatchling v1.19.0+

pypa/hatch#1130 and pypa/hatch#1305

Instructions to recreate issue

git clone [email protected]:hguturu/hatching_test.git

cd hatching_test

# to re-create the issue
tox

# issue caused due to tox installing from sdist, to recreate directly
python -m build . --sdist
pip install dist/footest-1.0.tar.gz

# the  following works
pip install .
> python -m footest
# importing footest
> ls ~/miniconda3/lib/python3.10/site-packages/footest
FooSans  __init__.py  __pycache__  stylelib

# the following works (dev install)
pip install -e .
> python -m footest
# importing footest
> ls ~/miniconda3/lib/python3.10/site-packages/footest
FooSans  stylelib

# if workaround of removing the follow is used, then the `pip install .` doesn't work anymore
[tool.hatch.build.targets.wheel.force-include]
"external/stylelib" = "src/foo/stylelib"

pip install .
> python -m footest
# importing footest
> ls ~/miniconda3/lib/python3.10/site-packages/footest
__init__.py  __pycache__
# the force included folders are missing