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
It would be very useful if we could pass a null "root path" for the ZIP archive, thereby disabling the filename prefix for archive members.
That is, if I have the following project:
src/
a.py
b.py
c.py
would like to be able to write install-name = '' and sources = [ 'src' ] and obtain the following archive members:
a.py
b.py
c.py
MANIFEST.json
Currently this can be achieved by setting install-name = '.' in the plugin config, but this seems somewhat dependent on undocumented behaviors of the ZipFile class and the unzip utility.
If you're interested, I can try working this into the test suite, although it might be a little tricky given the current fixture setup. Also happy to consider alternative designs.
The text was updated successfully, but these errors were encountered:
Thanks for the useful Hatch plugin!
It would be very useful if we could pass a null "root path" for the ZIP archive, thereby disabling the filename prefix for archive members.
That is, if I have the following project:
would like to be able to write
install-name = ''
andsources = [ 'src' ]
and obtain the following archive members:Currently this can be achieved by setting
install-name = '.'
in the plugin config, but this seems somewhat dependent on undocumented behaviors of theZipFile
class and theunzip
utility.Here is my (not-yet-tested) patch to implement explicit support for
install-name = ''
: master...gwerbin:hatch-zipped-directory:support-null-install-nameIf you're interested, I can try working this into the test suite, although it might be a little tricky given the current fixture setup. Also happy to consider alternative designs.
The text was updated successfully, but these errors were encountered: