<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-setuptools-git.git/setuptools/tests/config/test_expand.py, branch dev/core_metadata</title>
<subtitle>github.com: pypa/setuptools.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-setuptools-git.git/'/>
<entry>
<title>Merge PRs #3636 #3634 #3633 #3595 #3576 #3569 #3564</title>
<updated>2022-10-14T11:00:03+00:00</updated>
<author>
<name>Anderson Bravalheri</name>
<email>andersonbravalheri@gmail.com</email>
</author>
<published>2022-10-14T11:00:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-setuptools-git.git/commit/?id=a55b024319679c016ab687777d7da41a06d16c6f'/>
<id>a55b024319679c016ab687777d7da41a06d16c6f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>expand: Give bytes to ast.parse to let it discover encoding cookie.</title>
<updated>2022-09-27T15:00:53+00:00</updated>
<author>
<name>Julien Palard</name>
<email>julien@palard.fr</email>
</author>
<published>2022-09-27T13:56:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-setuptools-git.git/commit/?id=b35394aca15a51ff6fb44943c9f9530c68e685c4'/>
<id>b35394aca15a51ff6fb44943c9f9530c68e685c4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Catch an edge case in expand._assert_local()</title>
<updated>2022-09-18T23:30:03+00:00</updated>
<author>
<name>Mike Salvatore</name>
<email>mike.s.salvatore@gmail.com</email>
</author>
<published>2022-09-18T23:30:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-setuptools-git.git/commit/?id=4249da1ecfaca9541d64f0d3c7f08fb22e73e3b9'/>
<id>4249da1ecfaca9541d64f0d3c7f08fb22e73e3b9</id>
<content type='text'>
Using str.startswith() has an edge case where someone can access files
outside the root directory. For example, consider the case where the
root directory is "/home/user/my-package" but some secrets are stored in
"/home/user/my-package-secrets". Evaluating a check that
"/home/user/my-package-secrets".startswith("/home/user/my-package") will
return True, but the statement's intention is that no file outside of
"/home/user/my-package" can be accessed.

Using pathlib.Path.resolve() and pathlib.Path.parents eliminates this
edge case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using str.startswith() has an edge case where someone can access files
outside the root directory. For example, consider the case where the
root directory is "/home/user/my-package" but some secrets are stored in
"/home/user/my-package-secrets". Evaluating a check that
"/home/user/my-package-secrets".startswith("/home/user/my-package") will
return True, but the statement's intention is that no file outside of
"/home/user/my-package" can be accessed.

Using pathlib.Path.resolve() and pathlib.Path.parents eliminates this
edge case.
</pre>
</div>
</content>
</entry>
<entry>
<title>test_expand: Add example for annotated assignment without value</title>
<updated>2022-06-19T07:27:53+00:00</updated>
<author>
<name>Anderson Bravalheri</name>
<email>andersonbravalheri@gmail.com</email>
</author>
<published>2022-06-19T07:26:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-setuptools-git.git/commit/?id=0488436c5831564a9746707ec3f54e403fffbf98'/>
<id>0488436c5831564a9746707ec3f54e403fffbf98</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for annotated assignments to static attribute lookup.</title>
<updated>2022-06-19T02:24:36+00:00</updated>
<author>
<name>Karl Otness</name>
<email>karl@karlotness.com</email>
</author>
<published>2022-06-16T01:05:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-setuptools-git.git/commit/?id=685c80c864f05ee37db31246ff125639aa38432e'/>
<id>685c80c864f05ee37db31246ff125639aa38432e</id>
<content type='text'>
When walking the ast of a module, look for AnnAssign nodes in addition
to Assign to support assignments with type annotations, for example.
Since we have to read different attributes, split the generators into
a for loop. Existing ast.Assign nodes follow the same processing as
before.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When walking the ast of a module, look for AnnAssign nodes in addition
to Assign to support assignments with type annotations, for example.
Since we have to read different attributes, split the generators into
a for loop. Existing ast.Assign nodes follow the same processing as
before.
</pre>
</div>
</content>
</entry>
<entry>
<title>Simplify auto-discovered package_dir</title>
<updated>2022-04-05T09:44:50+00:00</updated>
<author>
<name>Anderson Bravalheri</name>
<email>andersonbravalheri@gmail.com</email>
</author>
<published>2022-04-04T19:42:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-setuptools-git.git/commit/?id=00b4fb1aef3feb77f9db0cd05bfeb02d1fa1cf75'/>
<id>00b4fb1aef3feb77f9db0cd05bfeb02d1fa1cf75</id>
<content type='text'>
If the directory follows a src-layout-ish, try harder to
make `package_dir` in the form `{"": "src"}`.

This might be later important for PEP 660 (e.g. when composing pth
files or symlinking the toplevel packages).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the directory follows a src-layout-ish, try harder to
make `package_dir` in the form `{"": "src"}`.

This might be later important for PEP 660 (e.g. when composing pth
files or symlinking the toplevel packages).
</pre>
</div>
</content>
</entry>
<entry>
<title>Make sure dynamic classifiers don't fail on unexisting files</title>
<updated>2022-03-25T16:38:05+00:00</updated>
<author>
<name>Anderson Bravalheri</name>
<email>andersonbravalheri@gmail.com</email>
</author>
<published>2022-03-25T16:38:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-setuptools-git.git/commit/?id=7c9761ac1a1608300280d916927dbdb9e6d39974'/>
<id>7c9761ac1a1608300280d916927dbdb9e6d39974</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Change tests for resolve_class to consider different layouts</title>
<updated>2022-03-24T16:06:13+00:00</updated>
<author>
<name>Anderson Bravalheri</name>
<email>andersonbravalheri@gmail.com</email>
</author>
<published>2022-03-24T10:44:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-setuptools-git.git/commit/?id=d489141419688ae3cb87d70506c774011aa8a3cb'/>
<id>d489141419688ae3cb87d70506c774011aa8a3cb</id>
<content type='text'>
Although this situation is different from the one described in #3000,
that issue served as inspiration behind this change.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Although this situation is different from the one described in #3000,
that issue served as inspiration behind this change.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add unit test for read_attr</title>
<updated>2022-03-24T15:26:07+00:00</updated>
<author>
<name>Anderson Bravalheri</name>
<email>andersonbravalheri@gmail.com</email>
</author>
<published>2022-03-23T11:51:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-setuptools-git.git/commit/?id=f86e9346300f9e893c9b473839af1e0e04e5dc65'/>
<id>f86e9346300f9e893c9b473839af1e0e04e5dc65</id>
<content type='text'>
Closes #3176
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #3176
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow expand.find_packges to fill package_dir</title>
<updated>2022-03-09T15:07:57+00:00</updated>
<author>
<name>Anderson Bravalheri</name>
<email>andersonbravalheri@gmail.com</email>
</author>
<published>2022-03-05T18:21:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-setuptools-git.git/commit/?id=83d11a1402a800d6b9617c2dbb514fbf8de38591'/>
<id>83d11a1402a800d6b9617c2dbb514fbf8de38591</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
