<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cffi.git/cffi/error.py, branch master</title>
<subtitle>foss.heptapod.net: pypy/cffi
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cffi.git/'/>
<entry>
<title>Tweaks to the pkgconfig support</title>
<updated>2019-01-31T11:14:50+00:00</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2019-01-31T11:14:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cffi.git/commit/?id=acfd2aef58cd40f4ee06bcc551b8549bb16974e8'/>
<id>acfd2aef58cd40f4ee06bcc551b8549bb16974e8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Reduce number of exceptions</title>
<updated>2019-01-11T21:38:58+00:00</updated>
<author>
<name>Michal Vyskocil</name>
<email>michal.vyskocil@gmail.com</email>
</author>
<published>2019-01-11T21:38:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cffi.git/commit/?id=53466767c1c37d79ca28a4e83100759f599c2d43'/>
<id>53466767c1c37d79ca28a4e83100759f599c2d43</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Define and raise specific hierarchy of exceptions</title>
<updated>2019-01-10T12:28:54+00:00</updated>
<author>
<name>Michal Vyskocil</name>
<email>michal.vyskocil@gmail.com</email>
</author>
<published>2019-01-10T12:28:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cffi.git/commit/?id=8c32e1dc8d053ce26153e47ee273188d70606939'/>
<id>8c32e1dc8d053ce26153e47ee273188d70606939</id>
<content type='text'>
* PkgConfigNotFound             - not installed
* PkgConfigError                - base pkg-config errors
    * PkgConfigModuleNotFound   - pc file for module was not found
    * PkgConfigModuleVersionNotFound - requested version was not found

Boilerplate now looks
```
from cffi.error import PkgConfigNotFound, PkgConfigError
...
try:
    # try pkg-config way
    ffibuilder.set_source(..., pkgconfig=["libczmq &gt;= 4.0.0"])
except PkgConfigNotFound as e:
    # if pkg-config is not installed, try backup
    ffibuilder.set_source(..., libraries=["czmq", "zmq", "uuid", "pgm"])
except PkgConfigError as e:
    # here we catch both PkgConfigModuleNotFound and PkgConfigModuleVersionNotFound
    # and raise it again - simply to show they are raised
    raise e from None
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* PkgConfigNotFound             - not installed
* PkgConfigError                - base pkg-config errors
    * PkgConfigModuleNotFound   - pc file for module was not found
    * PkgConfigModuleVersionNotFound - requested version was not found

Boilerplate now looks
```
from cffi.error import PkgConfigNotFound, PkgConfigError
...
try:
    # try pkg-config way
    ffibuilder.set_source(..., pkgconfig=["libczmq &gt;= 4.0.0"])
except PkgConfigNotFound as e:
    # if pkg-config is not installed, try backup
    ffibuilder.set_source(..., libraries=["czmq", "zmq", "uuid", "pgm"])
except PkgConfigError as e:
    # here we catch both PkgConfigModuleNotFound and PkgConfigModuleVersionNotFound
    # and raise it again - simply to show they are raised
    raise e from None
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Try to systematically include the line number</title>
<updated>2017-05-09T16:07:19+00:00</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2017-05-09T16:07:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cffi.git/commit/?id=a780b6772eeced3b5b57e313a5b9cf394f722f9e'/>
<id>a780b6772eeced3b5b57e313a5b9cf394f722f9e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid cyclic imports by moving exceptions to a separate module</title>
<updated>2017-01-20T03:05:39+00:00</updated>
<author>
<name>Ronan Lamy</name>
<email>ronan.lamy@gmail.com</email>
</author>
<published>2017-01-20T03:05:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cffi.git/commit/?id=a8d9aeb4588b054aaf802d2f666827e448d1aed7'/>
<id>a8d9aeb4588b054aaf802d2f666827e448d1aed7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
