Releases: equinor/cwrap
Releases · equinor/cwrap
1.6.7
1.6.6
version 1.6.5
What's Changed
- Fix basecenum not able to bind methods by @eivindjahren in #42
New Contributors
- @eivindjahren made their first contribution in #42
Full Changelog: 1.6.4...1.6.5
version 1.6.4
What's Changed
- Add check that object is initialized before calling bound functions by @mortalisk in #41
Full Changelog: 1.6.3...1.6.4
1.6.3
Version 1.6.2
What's Changed
- Add github actions by @mortalisk in #32
- Update issue templates by @pinkwah in #33
- Add install and test instructions by @mortalisk in #34
- Create CODE_OF_CONDUCT.md by @mortalisk in #36
- Create CONTRIBUTING.md by @pinkwah in #35
- Fix ArgumentError handling by @valentin-krasontovitsch in #39
New Contributors
- @mortalisk made their first contribution in #32
- @pinkwah made their first contribution in #33
- @valentin-krasontovitsch made their first contribution in #39
Full Changelog: 1.6.1...1.6.2
ArgumentErrors never leave cwrap
Convert ArgumentError to TypeError when calling C function ArgumentError belongs to ctypes, and the fact that we are using ctype is just an implementation details. In order to catch that exception, ctypes has to be imported as well, so that implementation detail might spread through the code base. By converting it to a TypeError, ctypes stays confined inside cwrap, which also makes it easier for user to drop methods based on a C implementation for a pure python implmentation The error message in the exception now looks like this `Argument 4: cannot create a <class 'ctypes.c_double'> from the given value [1, 2, 3] (<type 'list'>)` It still mentions ctypes, and it is not trivial to get rid of it while maintinaing the message as informative as it is now. The content of the message is arguably not part of the API so I decided to not investigate this further
Fix on windows
Merge pull request #26 from andreabrambilla/py3win Support Python 3 on Windows
Fix to: 1.5.1
Merge pull request #22 from joakim-hove/1.5 Require only setuptools
Version with hardcoded cwrap/version.py
Merge pull request #21 from joakim-hove/1.5 Fix version in cwrap/version.py for packaging