[issue23252] Add support of writing to unseekable file in zipfile

2016-02-02 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Currently the zipfile module requires seekable stream to read a list of entries 
from central directory at the end of ZIP file, and for reding their content in 
arbitrary order. The support of unseekable stream needs to design a new API. 
This is separate issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23252] Add support of writing to unseekable file in zipfile

2016-01-30 Thread Patrik Dufresne

Patrik Dufresne added the comment:

While this path provide support to create Zip file for non-seekable stream. It 
doesn't support reading a file from a non-seekable stream.

--
nosy: +Patrik Dufresne

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23252] Add support of writing to unseekable file in zipfile

2015-03-23 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23252] Add support of writing to unseekable file in zipfile

2015-03-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 19f36a2a34ec by Serhiy Storchaka in branch 'default':
Issue #23252:  Added support for writing ZIP files to unseekable streams.
https://hg.python.org/cpython/rev/19f36a2a34ec

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23252] Add support of writing to unseekable file in zipfile

2015-02-21 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you please make a review of the documentation part of the patch David?

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23252] Add support of writing to unseekable file in zipfile

2015-02-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch. Mercurial wouldn't need a wrapper in Python 3.5.

--
keywords: +patch
nosy: +Matt.Mackall
stage: needs patch -> patch review
Added file: http://bugs.python.org/file37970/zipfile_write_unseekable.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23252] Add support of writing to unseekable file in zipfile

2015-01-16 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

ZIP files can be created to transfer it via unseekable streams (pipes, 
sockets). Mercurial uses a workaround to write ZIP files right to wsgirequest, 
but this is possible only with writestr(). write() needs seek() to updated file 
size, compressed sized and CRC. However ZIP file format supports streamed data 
without writing sizes and CRC before file data. It is possible and desirable to 
add full support of unseekable output files in zipfile.

--
assignee: serhiy.storchaka
components: Library (Lib)
messages: 234145
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Add support of writing to unseekable file in zipfile
type: enhancement
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com