23 Commits

Author SHA1 Message Date
Joao Paulo Magalhaes
5e7596d97f Improve python API:
- expose `to_arena()`
- improve type handling in Tree methods accepting scalars
2025-12-28 13:13:57 +00:00
Joao Paulo Magalhaes
940d9f76b2 Fix wheel import problem in macosx
Kudos to @davidrudlstorfer for identifying the fix in #516.
2025-04-09 15:19:13 +01:00
Joao Paulo Magalhaes
9e9ab5eb50 Fix python wheel build and workflows 2025-04-09 15:19:12 +01:00
Joao Paulo Magalhaes
93d76be507 fix #428: ensure SWIG API raises exception 2024-04-28 19:10:52 +01:00
Joao Paulo Magalhaes
6fe06404a6 [ci] disable creation of python packages for Windows (except 3.6/3.7) and MacOSX
Here's an example log of the problem for Windows:
see https://github.com/biojppm/rapidyaml/actions/runs/3686238289/jobs/6238204139

```
+ pip install -v dist/rapidyaml-0.4.1.post139-cp311-cp311-win_amd64.whl
Using pip 22.3.1 from C:\hostedtoolcache\windows\Python\3.11.0\x64\Lib\site-packages\pip (python 3.11)
Processing d:\a\rapidyaml\rapidyaml\dist\rapidyaml-0.4.1.post139-cp311-cp311-win_amd64.whl
Installing collected packages: rapidyaml
Successfully installed rapidyaml-0.4.1.post139
+ pip show -f rapidyaml
Name: rapidyaml
Version: 0.4.1.post139
Summary: Rapid YAML - a library to parse and emit YAML, and do it fast
Home-page: https://github.com/biojppm/rapidyaml
Author: Joao Paulo Magalhaes
Author-email: dev@jpmag.me
License: MIT
Location: C:\hostedtoolcache\windows\Python\3.11.0\x64\Lib\site-packages
Requires:
Required-by:
Files:
  rapidyaml-0.4.1.post139.dist-info\INSTALLER
  rapidyaml-0.4.1.post139.dist-info\LICENSE.txt
  rapidyaml-0.4.1.post139.dist-info\METADATA
  rapidyaml-0.4.1.post139.dist-info\RECORD
  rapidyaml-0.4.1.post139.dist-info\REQUESTED
  rapidyaml-0.4.1.post139.dist-info\WHEEL
  rapidyaml-0.4.1.post139.dist-info\direct_url.json
  rapidyaml-0.4.1.post139.dist-info\top_level.txt
  ryml\__init__.py
  ryml\__pycache__\__init__.cpython-311.pyc
  ryml\__pycache__\ryml.cpython-311.pyc
  ryml\__pycache__\version.cpython-311.pyc
  ryml\_ryml.pyd
  ryml\ryml.py
  ryml\tests\__pycache__\parse_bm.cpython-311.pyc
  ryml\tests\__pycache__\test_parse.cpython-311.pyc
  ryml\tests\parse_bm.py
  ryml\tests\test_parse.py
  ryml\version.py
+ python -c 'import ryml'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\hostedtoolcache\windows\Python\3.11.0\x64\Lib\site-packages\ryml\__init__.py", line 1, in <module>
    from ryml.ryml import *
  File "C:\hostedtoolcache\windows\Python\3.11.0\x64\Lib\site-packages\ryml\ryml.py", line 13, in <module>
    from . import _ryml
ImportError: DLL load failed while importing _ryml: The specified module could not be found.
Error: Process completed with exit code 1.
```
2022-12-15 10:56:19 +00:00
Joao Paulo Magalhaes
a035301384 [fix] ensure that predefined CPU macros are forwarded to SWIG 2021-09-25 14:52:14 +01:00
Joao Paulo Magalhaes
27bd209dfa [fix] update python test after file rename 2021-09-25 01:30:46 +01:00
Joao Paulo Magalhaes
6b04bf5b9a [chore] github actions: refactor release action 2021-09-25 00:21:54 +01:00
Tim 'mithro' Ansell
ce39680601 Reworking Python packaging.
* Move `setup.py` and `pyproject.toml` to root directory otherwise
   everything breaks.
 * Use `setuptool_scm` for version.
 * Build wheels from sdist files using pip.
2021-03-23 00:21:02 -07:00
Keith Rothman
5a245999e9 Use python from venv for testing.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-01-14 16:53:21 -08:00
Keith Rothman
3230e5f7b3 Tighten up CMake python test invocations.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-01-13 09:50:15 -08:00
Keith Rothman
f2717db162 Initial attempt to create python packaging for ryml module.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-01-13 09:50:15 -08:00
Keith Rothman
2ebdb0c398 Initial attempt at CMake / setup.py integration.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2021-01-13 09:50:15 -08:00
Joao Paulo Magalhaes
231b1088e3 [wip] api generation in windows 2020-11-01 18:02:19 +00:00
Joao Paulo Magalhaes
a5bd9ccf14 update c4proj 2020-01-22 00:02:10 +01:00
Joao Paulo Magalhaes
eab9050064 c4proj: fix install of incorporated targets 2020-01-15 01:23:40 +01:00
Joao Paulo Magalhaes
df5a095753 api tests require that the api is added at the end 2019-03-21 14:25:20 +00:00
Joao Paulo Magalhaes
7afb30a524 python API: unit tests, benchmark 2019-03-19 00:26:21 +00:00
Joao Paulo Magalhaes
0b8608422a API WIP 2019-03-18 04:01:20 +00:00
Joao Paulo Magalhaes
c00dd9e869 fix clang-tidy tests 2019-03-17 15:36:58 +00:00
Joao Paulo Magalhaes
5ed8c6c598 interfaces WIP 2019-03-16 22:18:25 +00:00
Joao Paulo Magalhaes
310ab6e48b swig API WIP 2019-03-13 02:35:08 +00:00
Joao Paulo Magalhaes
5486932f30 creating SWIG API wip [ci skip] 2019-03-12 14:05:52 +00:00