<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/docker-py.git/scripts, branch main</title>
<subtitle>github.com: dotcloud/docker-py.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/'/>
<entry>
<title>use python3.6+ constructs</title>
<updated>2021-07-05T22:30:07+00:00</updated>
<author>
<name>Anthony Sottile</name>
<email>asottile@umich.edu</email>
</author>
<published>2021-07-05T22:24:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=5fcc293ba268a89ea1535114d36fbdcb73ec3d88'/>
<id>5fcc293ba268a89ea1535114d36fbdcb73ec3d88</id>
<content type='text'>
Signed-off-by: Anthony Sottile &lt;asottile@umich.edu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Anthony Sottile &lt;asottile@umich.edu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix versions.py to include release stage</title>
<updated>2019-05-01T06:16:09+00:00</updated>
<author>
<name>Joffrey F</name>
<email>joffrey@docker.com</email>
</author>
<published>2019-05-01T06:16:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=20a5c067243bb8736595e92addb873f828fb4e1b'/>
<id>20a5c067243bb8736595e92addb873f828fb4e1b</id>
<content type='text'>
Signed-off-by: Joffrey F &lt;f.joffrey@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joffrey F &lt;f.joffrey@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts/version.py: Use regex grouping to extract the version</title>
<updated>2019-03-28T13:18:02+00:00</updated>
<author>
<name>Ian Campbell</name>
<email>ijc@docker.com</email>
</author>
<published>2019-03-28T11:42:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=b0abdac90c7e6aef444368781bcc3df24f69cab0'/>
<id>b0abdac90c7e6aef444368781bcc3df24f69cab0</id>
<content type='text'>
The `lstrip` and `rstrip` functions take a set of characters to remove, not a
prefix/suffix. Thus `rstrip('-x86_64')` will remove any trailing characters in
the string `'-x86_64'` in any order (in effect it strips the suffix matching
the regex `[-_x468]*`). So with `18.09.4` it removes the `4` suffix resulting
in trying to `int('')` later on:

    Traceback (most recent call last):
      File "/src/scripts/versions.py", line 80, in &lt;module&gt;
        main()
      File "/src/scripts/versions.py", line 73, in main
        versions, reverse=True, key=operator.attrgetter('order')
      File "/src/scripts/versions.py", line 52, in order
        return (int(self.major), int(self.minor), int(self.patch)) + stage
    ValueError: invalid literal for int() with base 10: ''

Since we no longer need to check for the arch suffix (since it no longer
appears in the URLs we are traversing) we could just drop the `rstrip` and
invent a local prefix stripping helper to replace `lstrip('docker-')`. Instead
lets take advantage of the behaviour of `re.findall` which is that if the regex
contains a single `()` match that will be returned. This lets us match exactly
the sub-section of the regex we require.

While editing the regex, also ensure that the suffix is precisely `.tgz` and
not merely `tgz` by adding an explicit `\.`, previously the literal `.` would
be swallowed by the `.*` instead.

Signed-off-by: Ian Campbell &lt;ijc@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `lstrip` and `rstrip` functions take a set of characters to remove, not a
prefix/suffix. Thus `rstrip('-x86_64')` will remove any trailing characters in
the string `'-x86_64'` in any order (in effect it strips the suffix matching
the regex `[-_x468]*`). So with `18.09.4` it removes the `4` suffix resulting
in trying to `int('')` later on:

    Traceback (most recent call last):
      File "/src/scripts/versions.py", line 80, in &lt;module&gt;
        main()
      File "/src/scripts/versions.py", line 73, in main
        versions, reverse=True, key=operator.attrgetter('order')
      File "/src/scripts/versions.py", line 52, in order
        return (int(self.major), int(self.minor), int(self.patch)) + stage
    ValueError: invalid literal for int() with base 10: ''

Since we no longer need to check for the arch suffix (since it no longer
appears in the URLs we are traversing) we could just drop the `rstrip` and
invent a local prefix stripping helper to replace `lstrip('docker-')`. Instead
lets take advantage of the behaviour of `re.findall` which is that if the regex
contains a single `()` match that will be returned. This lets us match exactly
the sub-section of the regex we require.

While editing the regex, also ensure that the suffix is precisely `.tgz` and
not merely `tgz` by adding an explicit `\.`, previously the literal `.` would
be swallowed by the `.*` instead.

Signed-off-by: Ian Campbell &lt;ijc@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent untracked files in releases</title>
<updated>2018-12-08T00:08:00+00:00</updated>
<author>
<name>Joffrey F</name>
<email>joffrey@docker.com</email>
</author>
<published>2018-12-07T23:30:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=1bc5783a3d253021f82d21f123b00a8fe45d08e3'/>
<id>1bc5783a3d253021f82d21f123b00a8fe45d08e3</id>
<content type='text'>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Update setup.py for modern pypi / setuptools</title>
<updated>2018-12-01T01:26:50+00:00</updated>
<author>
<name>Joffrey F</name>
<email>joffrey@docker.com</email>
</author>
<published>2018-12-01T01:26:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=3381f7be151400c973e26a32f194e1ef869f6db8'/>
<id>3381f7be151400c973e26a32f194e1ef869f6db8</id>
<content type='text'>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix versions script to accept versions without -ce suffix</title>
<updated>2018-11-09T02:58:06+00:00</updated>
<author>
<name>Joffrey F</name>
<email>joffrey@docker.com</email>
</author>
<published>2018-11-09T02:58:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=f7a1052b2ba5b5ac308a9ab5c218057ab569a204'/>
<id>f7a1052b2ba5b5ac308a9ab5c218057ab569a204</id>
<content type='text'>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Update version detection script for CI</title>
<updated>2018-11-01T22:23:21+00:00</updated>
<author>
<name>Joffrey F</name>
<email>joffrey@docker.com</email>
</author>
<published>2018-11-01T22:23:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=dd7386de30c028300fd3ac9721cc0841fcd065c8'/>
<id>dd7386de30c028300fd3ac9721cc0841fcd065c8</id>
<content type='text'>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Misc release script improvements</title>
<updated>2018-08-10T00:28:35+00:00</updated>
<author>
<name>Joffrey F</name>
<email>joffrey@docker.com</email>
</author>
<published>2018-08-10T00:28:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=87d72c0f6cf726764a1cf8aebc527c64d46cecfb'/>
<id>87d72c0f6cf726764a1cf8aebc527c64d46cecfb</id>
<content type='text'>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Generate test engines list dynamically</title>
<updated>2018-03-29T23:25:14+00:00</updated>
<author>
<name>Joffrey F</name>
<email>joffrey@docker.com</email>
</author>
<published>2018-03-22T12:10:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=73a9003758d60226879f06c630c01389f3dd0fe7'/>
<id>73a9003758d60226879f06c630c01389f3dd0fe7</id>
<content type='text'>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Bump 3.1.3</title>
<updated>2018-03-20T11:08:24+00:00</updated>
<author>
<name>Joffrey F</name>
<email>joffrey@docker.com</email>
</author>
<published>2018-03-20T10:57:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=af674155b78eaf1d014853d9dfcf728b22f1302b'/>
<id>af674155b78eaf1d014853d9dfcf728b22f1302b</id>
<content type='text'>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
