Commit Graph

11 Commits

Author SHA1 Message Date
Evan Jones
fa1ab68ef3 Python Bindings. Again. No, really! (#55)
* - Cargo.toml:  add `crate-type = ["cdylib"] to [lib]; lacking this is what was causing the executable to be put in wheels
- pyproject.toml: add "python-binding" to features for conditional compilation
- main.rs:  `cargo build` was failing for the vtracer executable; I think the previous import scheme had an implicit dependency on the library being built and called 'vtracer'. The other way to do this would have been to add an explicit dependency to the [[bin]], but making explicit imports here solves things directly

* re-enable linux builds; features are defined in the pyproject.toml now rather than in the workflow arguments

* And publish Linux, too!
2023-09-23 02:10:04 +08:00
Chris Tsang
b04738fd18 well 2023-09-16 19:38:07 +01:00
Chris Tsang
1080c562ce Try again 2023-09-16 19:27:30 +01:00
Chris Tsang
e44e750721 try again 2023-09-16 19:09:20 +01:00
Chris Tsang
68e8e7fdf1 Disable Linux for now 2023-09-17 15:47:55 +01:00
Chris Tsang
f71dd47907 python release 2023-09-16 17:47:04 +01:00
Chris Tsang
93e946f3c2 python release 2023-09-16 15:05:24 +01:00
Chris Tsang
95b8cbce6c Rename workflow 2023-09-16 14:40:29 +01:00
Chris Tsang
b49158f24c Rename workflow 2023-09-16 14:40:17 +01:00
Evan Jones
f4c7828049 Python bindings configured correctly for PyPI releases (#54)
* Python bindings sep 2023 (#52)

* Added maturin-based Python binding, to be deployed to https://pypi.org/project/vtracer/

* Removed poetry mentions from pyproject.toml, added README_PY.md for use on PYPI

* ->   v0.6.1
-> moved Python bindings to bottom of converter.rs

* - README_PY.md needed to be inside the cmdapp directory to display on PyPi.irg
->  v0.6.3

* Move code around

* Edit Readme

* Edit RELEASES.md

* Feature guard

* Build wheels with the cmdapp/Cargo.toml rather than top-level Cargo.toml

* use cmdapp/Cargo.toml for all Maturin CI actions, which causes Github to build all platforms python wheels and submit a new release to PyPI

* Bump to 0.6.4 for new PyPI release with all platforms' wheels included

* PyPI didn't accept a 'linux_aarch64' wheel for a release. For the moment, remove the platform until I can convince the action to build 'manylinux_aarch64' or the like

* Version bump while I work out CI & PyPI release wrinkles

* Maturin authors say `compatibility = "linux"` in pyproject.toml is causing PyPI failure. Replacing with "manylinux2014"

* bump to v0.7.0 in preparation for release from original vtracer repo

---------

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2023-09-17 06:24:13 +08:00
Chris Tsang
1b49880f85 Create rust.yml 2020-11-15 21:10:13 +08:00