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
Dies when it tries to make the wheel out of the SDist (requires build 0.5+ with pypa/build#304 )
Traceback (most recent call last):
File "/Users/henryschreiner/.local/pipx/.cache/a7836b47fd2acf2/lib/python3.9/site-packages/pep517/in_process/_in_process.py", line 280, in <module>
main()
File "/Users/henryschreiner/.local/pipx/.cache/a7836b47fd2acf2/lib/python3.9/site-packages/pep517/in_process/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/henryschreiner/.local/pipx/.cache/a7836b47fd2acf2/lib/python3.9/site-packages/pep517/in_process/_in_process.py", line 204, in build_wheelreturn _build_backend().build_wheel(wheel_directory, config_settings,
File "/private/var/folders/_8/xtbws09n017fbzdx9dmgnyyr0000gn/T/build-env-ohg7b683/lib/python3.9/site-packages/whey/__init__.py", line 57, in build_wheelreturn foreman.build_wheel(build_dir=tmpdir, out_dir=wheel_directory, verbose=True)
File "/private/var/folders/_8/xtbws09n017fbzdx9dmgnyyr0000gn/T/build-env-ohg7b683/lib/python3.9/site-packages/whey/foreman.py", line 145, in build_wheelreturn builder.build()
File "/private/var/folders/_8/xtbws09n017fbzdx9dmgnyyr0000gn/T/build-env-ohg7b683/lib/python3.9/site-packages/whey/builder.py", line 764, in build_wheelself.copy_source()
File "/private/var/folders/_8/xtbws09n017fbzdx9dmgnyyr0000gn/T/build-env-ohg7b683/lib/python3.9/site-packages/whey/builder.py", line 185, in copy_sourcefor py_file inself.iter_source_files():
File "/private/var/folders/_8/xtbws09n017fbzdx9dmgnyyr0000gn/T/build-env-ohg7b683/lib/python3.9/site-packages/whey/builder.py", line 167, in iter_source_filesraiseFileNotFoundError(f"Package directory '{self.config['package']}' not found.")
FileNotFoundError: Package directory 'spam' not found.
Forcing build to build the wheel from the source directly, and not the SDist, works correctly.
$ pipx run build --sdist --wheel
Expected result:
The SDist should not be broken.
Version
whey: 0.16
The text was updated successfully, but these errors were encountered:
Any chance this can get looked at? Producing broken SDists is rather serious (though most users install from wheels). I can't add whey to scikit-hep/cookie unless it produces valid SDists when src folders are present.
Description
Using
src
dir makes broken SDists.Steps to Reproduce
Use the following minimal pyproject.toml:
And the following "package":
Actual result:
Running build:
$ pipx run build
Dies when it tries to make the wheel out of the SDist (requires build 0.5+ with pypa/build#304 )
Forcing build to build the wheel from the source directly, and not the SDist, works correctly.
$ pipx run build --sdist --wheel
Expected result:
The SDist should not be broken.
Version
The text was updated successfully, but these errors were encountered: