<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pycparser.git, branch master</title>
<subtitle>github.com: eliben/pycparser.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycparser.git/'/>
<entry>
<title>Update SECURITY.md</title>
<updated>2023-04-17T13:39:38+00:00</updated>
<author>
<name>Eli Bendersky</name>
<email>eliben@users.noreply.github.com</email>
</author>
<published>2023-04-17T13:39:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycparser.git/commit/?id=670979b89a1e84f9c4828a8a08e9187b90674afa'/>
<id>670979b89a1e84f9c4828a8a08e9187b90674afa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Create a Security Policy (#499)</title>
<updated>2023-03-21T00:00:37+00:00</updated>
<author>
<name>Joyce</name>
<email>joycebrum@google.com</email>
</author>
<published>2023-03-21T00:00:37+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycparser.git/commit/?id=9e8cd294f1527d918ec75927260d6ed3ab0331de'/>
<id>9e8cd294f1527d918ec75927260d6ed3ab0331de</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Upgrade GitHub Actions (#500)</title>
<updated>2023-03-18T21:53:57+00:00</updated>
<author>
<name>Christian Clauss</name>
<email>cclauss@me.com</email>
</author>
<published>2023-03-18T21:53:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycparser.git/commit/?id=0948b38d88dcc362914fd0e09af689a09ad74327'/>
<id>0948b38d88dcc362914fd0e09af689a09ad74327</id>
<content type='text'>
* https://github.com/actions/checkout/releases
* https://github.com/actions/setup-python/releases</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* https://github.com/actions/checkout/releases
* https://github.com/actions/setup-python/releases</pre>
</div>
</content>
</entry>
<entry>
<title>_build_tables: Invalidate cache before importing generated modules (#494)</title>
<updated>2023-02-26T00:04:34+00:00</updated>
<author>
<name>Michał Górny</name>
<email>mgorny@gentoo.org</email>
</author>
<published>2023-02-26T00:04:34+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycparser.git/commit/?id=35a279ecb9af41a6f95ddbc6a0f1beaa2472d165'/>
<id>35a279ecb9af41a6f95ddbc6a0f1beaa2472d165</id>
<content type='text'>
Make sure to invalidate finder caches before trying to import generated
modules.  This is necessary according to the Python documentation:
https://docs.python.org/3/library/importlib.html#importlib.invalidate_caches

This fixes a hard-to-reproduce bug that Python would be unable to find
just-generated `lextab.py` if mtime of the current directory did not
change from the moment the script was started.  This could
e.g. be the case if one has second-precision timestamps and removes
the generated file just before starting the build, e.g.:

    $ rm pycparser/lextab.py; python -m build -nw

It could also be reproduced easier by doing something like:

    $ cd pycparser
    $ touch .; python -B _build_tables.py
    Traceback (most recent call last):
      File "/var/tmp/pycparser/pycparser/_build_tables.py", line 38, in &lt;module&gt;
        import lextab
    ModuleNotFoundError: No module named 'lextab'

This is because the first command (`rm` or `touch`) updates the mtime
of the directory to the current time.  If the script is run fast enough,
it manages to scan the directory and then write the new `lextab.py`
within the same second.  As a result, mtime of the directory after
writing the new file is the same as when the script was started, finder
does not invalidate the cache and assumes that `lextab.py` does not
exist since it did not exist when the directory was scanned earlier.

This potentially fixes #493.

It was originally reported on https://bugs.gentoo.org/701878.
Thanks to Gary E. Miller for patience in reproducing the problem
and proxy-debugging it for me, as well as testing the final patch before
submission.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make sure to invalidate finder caches before trying to import generated
modules.  This is necessary according to the Python documentation:
https://docs.python.org/3/library/importlib.html#importlib.invalidate_caches

This fixes a hard-to-reproduce bug that Python would be unable to find
just-generated `lextab.py` if mtime of the current directory did not
change from the moment the script was started.  This could
e.g. be the case if one has second-precision timestamps and removes
the generated file just before starting the build, e.g.:

    $ rm pycparser/lextab.py; python -m build -nw

It could also be reproduced easier by doing something like:

    $ cd pycparser
    $ touch .; python -B _build_tables.py
    Traceback (most recent call last):
      File "/var/tmp/pycparser/pycparser/_build_tables.py", line 38, in &lt;module&gt;
        import lextab
    ModuleNotFoundError: No module named 'lextab'

This is because the first command (`rm` or `touch`) updates the mtime
of the directory to the current time.  If the script is run fast enough,
it manages to scan the directory and then write the new `lextab.py`
within the same second.  As a result, mtime of the directory after
writing the new file is the same as when the script was started, finder
does not invalidate the cache and assumes that `lextab.py` does not
exist since it did not exist when the directory was scanned earlier.

This potentially fixes #493.

It was originally reported on https://bugs.gentoo.org/701878.
Thanks to Gary E. Miller for patience in reproducing the problem
and proxy-debugging it for me, as well as testing the final patch before
submission.</pre>
</div>
</content>
</entry>
<entry>
<title>feat: set permissions to ci.yml (#492)</title>
<updated>2023-02-23T21:39:37+00:00</updated>
<author>
<name>Joyce</name>
<email>joycebrumu.u@gmail.com</email>
</author>
<published>2023-02-23T21:39:37+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycparser.git/commit/?id=1d012f46b0149cf718ca7fbd498e4b51b06bcd19'/>
<id>1d012f46b0149cf718ca7fbd498e4b51b06bcd19</id>
<content type='text'>
Signed-off-by: Joyce &lt;joycebrum@google.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joyce &lt;joycebrum@google.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Update file name in serialize_ast and make sure it's in .gitignore</title>
<updated>2023-01-09T14:15:25+00:00</updated>
<author>
<name>Eli Bendersky</name>
<email>eliben@gmail.com</email>
</author>
<published>2023-01-09T14:15:25+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycparser.git/commit/?id=c21753191b706bb3c5262454ddcf89ffc92a25d6'/>
<id>c21753191b706bb3c5262454ddcf89ffc92a25d6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Clean up serialize_ast example to use HIGHEST_PROTOCOL for pickling</title>
<updated>2023-01-09T14:13:29+00:00</updated>
<author>
<name>Eli Bendersky</name>
<email>eliben@gmail.com</email>
</author>
<published>2023-01-09T14:13:29+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycparser.git/commit/?id=489d208f09e188025f9b231a9cf2d90c05c92fbe'/>
<id>489d208f09e188025f9b231a9cf2d90c05c92fbe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Feature/add  pragma support (#487)</title>
<updated>2023-01-08T11:14:46+00:00</updated>
<author>
<name>Jordy Ruiz</name>
<email>56157703+jordr@users.noreply.github.com</email>
</author>
<published>2023-01-08T11:14:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycparser.git/commit/?id=4e16079578377c215c7c387eaa2948252e54b108'/>
<id>4e16079578377c215c7c387eaa2948252e54b108</id>
<content type='text'>
* Support _Pragma, a C99 alternative to #pragma

See https://gcc.gnu.org/onlinedocs/cpp/Pragmas.html

* Test cases for _Pragma

* Add explanatory comment for _PRAGMA and PPPRAGMA</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Support _Pragma, a C99 alternative to #pragma

See https://gcc.gnu.org/onlinedocs/cpp/Pragmas.html

* Test cases for _Pragma

* Add explanatory comment for _PRAGMA and PPPRAGMA</pre>
</div>
</content>
</entry>
<entry>
<title>Add encoding param to parse_file (#486)</title>
<updated>2023-01-07T22:11:36+00:00</updated>
<author>
<name>Jordy Ruiz</name>
<email>56157703+jordr@users.noreply.github.com</email>
</author>
<published>2023-01-07T22:11:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycparser.git/commit/?id=5382e3119b84eabcb2369f70978e1b803cbd185a'/>
<id>5382e3119b84eabcb2369f70978e1b803cbd185a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove some legacy stuff from the README</title>
<updated>2023-01-07T16:54:04+00:00</updated>
<author>
<name>Eli Bendersky</name>
<email>eliben@gmail.com</email>
</author>
<published>2023-01-07T16:54:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/pycparser.git/commit/?id=332e84e36670f4584fd644440b1c4c462413aec9'/>
<id>332e84e36670f4584fd644440b1c4c462413aec9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
