You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fails with FileNotFoundError: [Errno 2] No such file or directory: '.tox\py\lib\site-packages\mypkg\data.txt'
In src\mypkg.egg-info\SOURCES.txt you can see that data.txt is missing in the build.
Running the build frontend (py -m build) updates SOURCES.txt to include src/mypkg/data.txt and includes data.txt in dist/*.tar.gz and dist/*.whl. So this is probably an issue with the tox build frontend itself.
Running the same steps above with git works. In this case data.txt is installed to .tox\py\lib\site-packages\mypkg
Environment
Platform: Windows 10
tox version: 4.2.3
Python version running tox: 3.9.13 32bit
The text was updated successfully, but these errors were encountered:
gaborbernat
added
the
help:wanted
Issues that have been acknowledged, a solution determined and a PR might likely be accepted.
label
Jun 16, 2023
This means the build backend requires some env-vars that tox doesn't pass through. You should set this and everything should work. It's a bit of trial and error to figure out which env-vars are needed.
Issue
tox does not include package data from setuptools_scm if there is a Mercurial (hg) repository.
I attached a reproducible example: tox_scm.zip
Running
fails with FileNotFoundError: [Errno 2] No such file or directory: '.tox\py\lib\site-packages\mypkg\data.txt'
In src\mypkg.egg-info\SOURCES.txt you can see that data.txt is missing in the build.
Running the build frontend (
py -m build
) updates SOURCES.txt to include src/mypkg/data.txt and includes data.txt in dist/*.tar.gz and dist/*.whl. So this is probably an issue with the tox build frontend itself.Running the same steps above with git works. In this case data.txt is installed to .tox\py\lib\site-packages\mypkg
Environment
Platform: Windows 10
tox version: 4.2.3
Python version running tox: 3.9.13 32bit
The text was updated successfully, but these errors were encountered: