<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/buildstream.git/src/buildstream/utils.py, branch update_committers</title>
<subtitle>gitlab.com: buildstream/buildstream.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/'/>
<entry>
<title>utils: Extract 'url_directory_name' to a cython module</title>
<updated>2019-07-17T09:04:08+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-07-15T16:30:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=e8ddeef1ce55076a08106f4b4ffb074618f66b19'/>
<id>e8ddeef1ce55076a08106f4b4ffb074618f66b19</id>
<content type='text'>
`url_directory_name` is heavily called from any downloadable source
plugin, and moving it to cython gives a more than 10x speedup
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`url_directory_name` is heavily called from any downloadable source
plugin, and moving it to cython gives a more than 10x speedup
</pre>
</div>
</content>
</entry>
<entry>
<title>Allowing tar files to be compressed</title>
<updated>2019-07-16T15:35:42+00:00</updated>
<author>
<name>Rebecca Grayson</name>
<email>becky.grayson1@hotmail.co.uk</email>
</author>
<published>2019-06-27T10:55:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=d14ce3cacdb5c1dfce396b64061bb4b8b554a1dc'/>
<id>d14ce3cacdb5c1dfce396b64061bb4b8b554a1dc</id>
<content type='text'>
Changes made to cli.py and _stream.py in order to support tar
compression. Compression flag has been added, which overrides any file
extensions given. Where no compression or file extension provided,
default to uncompressed .tar.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changes made to cli.py and _stream.py in order to support tar
compression. Compression flag has been added, which overrides any file
extensions given. Where no compression or file extension provided,
default to uncompressed .tar.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: add _tempnamedfile_name for win32 happiness</title>
<updated>2019-07-09T14:30:54+00:00</updated>
<author>
<name>Angelos Evripiotis</name>
<email>jevripiotis@bloomberg.net</email>
</author>
<published>2019-06-06T15:23:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=1f9a077bb1d6877d1417870b0aad3a6a31012afb'/>
<id>1f9a077bb1d6877d1417870b0aad3a6a31012afb</id>
<content type='text'>
Avoid a restriction of Windows that prevents us from using both the file
descriptor and the file name of tempfile.NamedTemporaryFile.

Provide a wrapper that only returns the temporary filename, and makes it
easier to be windows-compatible.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Avoid a restriction of Windows that prevents us from using both the file
descriptor and the file name of tempfile.NamedTemporaryFile.

Provide a wrapper that only returns the temporary filename, and makes it
easier to be windows-compatible.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: fix yield type of _tempnamedfile</title>
<updated>2019-07-09T14:30:54+00:00</updated>
<author>
<name>Angelos Evripiotis</name>
<email>jevripiotis@bloomberg.net</email>
</author>
<published>2019-06-27T12:30:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=712250bbf13e54c081861fe58d6d12151e987c3a'/>
<id>712250bbf13e54c081861fe58d6d12151e987c3a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: indent 'with' continuation line</title>
<updated>2019-07-09T14:30:54+00:00</updated>
<author>
<name>Angelos Evripiotis</name>
<email>jevripiotis@bloomberg.net</email>
</author>
<published>2019-06-11T09:44:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=335a1ecea34ea8a1d3674b8882130f048cfab545'/>
<id>335a1ecea34ea8a1d3674b8882130f048cfab545</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>utils.py: Make `magic_timestamp` a public variable</title>
<updated>2019-07-05T15:12:56+00:00</updated>
<author>
<name>Shahwat Dalal</name>
<email>sdalal29@bloomberg.net</email>
</author>
<published>2019-06-03T13:32:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=8e4fd46464f6043dd29a8a4862842a54e19e8821'/>
<id>8e4fd46464f6043dd29a8a4862842a54e19e8821</id>
<content type='text'>
Some plugin elements, such as docker-element and tar-element, require
to set `created` and/or `modified` meta-data fields. It would be nice
to use `magic_timestamp` to ensure these fields are being set in a
consistent and deterministic way.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some plugin elements, such as docker-element and tar-element, require
to set `created` and/or `modified` meta-data fields. It would be nice
to use `magic_timestamp` to ensure these fields are being set in a
consistent and deterministic way.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils.py: Add write permission to root path in _force_rmtree</title>
<updated>2019-07-04T09:48:45+00:00</updated>
<author>
<name>Shahwat Dalal</name>
<email>sdalal29@bloomberg.net</email>
</author>
<published>2019-07-02T11:53:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=438ee733d67dbde09718fe45271628763b27b8e1'/>
<id>438ee733d67dbde09718fe45271628763b27b8e1</id>
<content type='text'>
This is needed in the case where the temp directory permissions
are changed between creation and deletion.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is needed in the case where the temp directory permissions
are changed between creation and deletion.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils._get_volume_size: use shutil.disk_usage</title>
<updated>2019-06-12T10:45:19+00:00</updated>
<author>
<name>Angelos Evripiotis</name>
<email>jevripiotis@bloomberg.net</email>
</author>
<published>2019-04-02T12:36:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=91178bdf105db358a025ce36de1231f76875f3be'/>
<id>91178bdf105db358a025ce36de1231f76875f3be</id>
<content type='text'>
This is win32-friendly, less to read, and fixes a latent bug.

Avoid dealing with low-level platform specifics by using the
higher-level shutil.disk_usage() function to calc total and available
bytes for us.

shutil is also more correct - it uses f_frsize to convert from blocks to
bytes, instead of f_bsize. I verified that the numbers match with the
output from `df -k`, whereas the old implementation did not. Here are
the meanings from `man statvfs`:

    f_frsize    The size in bytes of the minimum unit of allocation on
                this file system. (This corresponds to the f_bsize
                member of struct statfs.)

    f_bsize     The preferred length of I/O requests for files on this
                file system. (Corresponds to the f_iosize member of
                struct statfs.)

Link to shutil.disk_usage() implementation:
https://github.com/python/cpython/blob/3.5/Lib/shutil.py#L980
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is win32-friendly, less to read, and fixes a latent bug.

Avoid dealing with low-level platform specifics by using the
higher-level shutil.disk_usage() function to calc total and available
bytes for us.

shutil is also more correct - it uses f_frsize to convert from blocks to
bytes, instead of f_bsize. I verified that the numbers match with the
output from `df -k`, whereas the old implementation did not. Here are
the meanings from `man statvfs`:

    f_frsize    The size in bytes of the minimum unit of allocation on
                this file system. (This corresponds to the f_bsize
                member of struct statfs.)

    f_bsize     The preferred length of I/O requests for files on this
                file system. (Corresponds to the f_iosize member of
                struct statfs.)

Link to shutil.disk_usage() implementation:
https://github.com/python/cpython/blob/3.5/Lib/shutil.py#L980
</pre>
</div>
</content>
</entry>
<entry>
<title>utils.py: remove misleading documentation</title>
<updated>2019-05-22T13:09:23+00:00</updated>
<author>
<name>Raoul Hidalgo Charman</name>
<email>raoul.hidalgocharman@codethink.co.uk</email>
</author>
<published>2019-05-20T11:10:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=3d2a51b39cdf6e0ae415136d3c36ce09c68ec8ae'/>
<id>3d2a51b39cdf6e0ae415136d3c36ce09c68ec8ae</id>
<content type='text'>
copy_files and link_files suggested that a single file path is a valid argument
when it isn't.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
copy_files and link_files suggested that a single file path is a valid argument
when it isn't.
</pre>
</div>
</content>
</entry>
<entry>
<title>Move source from 'buildstream' to 'src/buildstream'</title>
<updated>2019-05-21T11:41:18+00:00</updated>
<author>
<name>Chandan Singh</name>
<email>csingh43@bloomberg.net</email>
</author>
<published>2019-04-24T21:53:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=070d053e5cc47e572e9f9e647315082bd7a15c63'/>
<id>070d053e5cc47e572e9f9e647315082bd7a15c63</id>
<content type='text'>
This was discussed in #1008.

Fixes #1009.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was discussed in #1008.

Fixes #1009.
</pre>
</div>
</content>
</entry>
</feed>
