* Re: Package request: python3-typst
2023-11-03 11:37 [ISSUE] Package request: python3-typst Eloitor
@ 2023-12-07 0:19 ` tornaria
2023-12-07 0:41 ` classabbyamp
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: tornaria @ 2023-12-07 0:19 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 343 bytes --]
New comment by tornaria on void-packages repository
https://github.com/void-linux/void-packages/issues/47044#issuecomment-1843927134
Comment:
What is this good for?
How is
```python
import typst
typst.compile(in, output=out)
```
any different than
```python
import subprocess
subprocess.run(["typst", "compile", in, out])
```
?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Package request: python3-typst
2023-11-03 11:37 [ISSUE] Package request: python3-typst Eloitor
2023-12-07 0:19 ` tornaria
@ 2023-12-07 0:41 ` classabbyamp
2023-12-07 0:41 ` classabbyamp
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: classabbyamp @ 2023-12-07 0:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 272 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/issues/47044#issuecomment-1843946463
Comment:
i would assume typst-as-a-library has a big more flexible of an api than shelling out, not to mention probably being faster
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Package request: python3-typst
2023-11-03 11:37 [ISSUE] Package request: python3-typst Eloitor
2023-12-07 0:19 ` tornaria
2023-12-07 0:41 ` classabbyamp
@ 2023-12-07 0:41 ` classabbyamp
2023-12-07 0:43 ` classabbyamp
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: classabbyamp @ 2023-12-07 0:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/issues/47044#issuecomment-1843946463
Comment:
i would assume typst-as-a-library has a more flexible of an api than shelling out, not to mention probably being faster
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Package request: python3-typst
2023-11-03 11:37 [ISSUE] Package request: python3-typst Eloitor
` (2 preceding siblings ...)
2023-12-07 0:41 ` classabbyamp
@ 2023-12-07 0:43 ` classabbyamp
2023-12-07 1:28 ` tornaria
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: classabbyamp @ 2023-12-07 0:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 355 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/issues/47044#issuecomment-1843946463
Comment:
i would assume typst-as-a-library has a more flexible of an api than shelling out, not to mention probably being faster
the package in question is pyo3 bindings not just a library that runs shell commands
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Package request: python3-typst
2023-11-03 11:37 [ISSUE] Package request: python3-typst Eloitor
` (3 preceding siblings ...)
2023-12-07 0:43 ` classabbyamp
@ 2023-12-07 1:28 ` tornaria
2023-12-07 8:24 ` sgn
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: tornaria @ 2023-12-07 1:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1308 bytes --]
New comment by tornaria on void-packages repository
https://github.com/void-linux/void-packages/issues/47044#issuecomment-1843986722
Comment:
> i would assume typst-as-a-library has a more flexible of an api than shelling out, not to mention probably being faster
>
> the package in question is pyo3 bindings not just a library that runs shell commands
All it seems to have is a `compile()` function, and it only takes a filename as input. It doesn't even support query metadata afaict.
Template is easy if you want to try it:
```
# Template file for 'python3-typst'
pkgname=python3-typst
version=0.10.0
revision=1
build_style=python3-pep517
build_helper=rust
hostmakedepends="cargo maturin"
depends="python3"
short_desc="Python binding to typst"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="Apache-2.0"
homepage="https://github.com/messense/typst-py"
distfiles="${PYPI_SITE}/t/typst/typst-${version}.tar.gz"
checksum=37853d0938db054cfa9d00aa574d4eac2985af6e7396a59c521a76e9e6bdf020
make_check=no # there are no tests
```
I'm honestly not sure its worth shipping, but I don't mind making a PR if you think it's worthwhile.
Note that the whole of typst (and dependencies) seem to be vendored in, so the pkg will be roughly the same size as `typst` itself.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Package request: python3-typst
2023-11-03 11:37 [ISSUE] Package request: python3-typst Eloitor
` (4 preceding siblings ...)
2023-12-07 1:28 ` tornaria
@ 2023-12-07 8:24 ` sgn
2023-12-07 8:53 ` classabbyamp
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: sgn @ 2023-12-07 8:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 392 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/47044#issuecomment-1844876796
Comment:
> i would assume typst-as-a-library has a more flexible of an api than shelling out
It's worst in every way. It only exposes a single `compile` functions, without those options that exposed by the shell commands. My opinion, ignore this package.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Package request: python3-typst
2023-11-03 11:37 [ISSUE] Package request: python3-typst Eloitor
` (5 preceding siblings ...)
2023-12-07 8:24 ` sgn
@ 2023-12-07 8:53 ` classabbyamp
2023-12-07 11:37 ` Eloitor
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: classabbyamp @ 2023-12-07 8:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/issues/47044#issuecomment-1844933240
Comment:
I was more referring to the native rust library for typst, which is a lot more flexible than these bindings, it seems.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Package request: python3-typst
2023-11-03 11:37 [ISSUE] Package request: python3-typst Eloitor
` (6 preceding siblings ...)
2023-12-07 8:53 ` classabbyamp
@ 2023-12-07 11:37 ` Eloitor
2023-12-07 14:39 ` sgn
2024-01-30 22:46 ` [ISSUE] [CLOSED] " Eloitor
9 siblings, 0 replies; 11+ messages in thread
From: Eloitor @ 2023-12-07 11:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 473 bytes --]
New comment by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/47044#issuecomment-1845187397
Comment:
> Note that the whole of typst (and dependencies) seem to be vendored in, so the pkg will be roughly the same size as `typst` itself.
This is what I noticed while trying (without success) to write the template myself. I asked for this package thinking that maybe there is a way to make `python3-typst` depend on `typst`...
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Package request: python3-typst
2023-11-03 11:37 [ISSUE] Package request: python3-typst Eloitor
` (7 preceding siblings ...)
2023-12-07 11:37 ` Eloitor
@ 2023-12-07 14:39 ` sgn
2024-01-30 22:46 ` [ISSUE] [CLOSED] " Eloitor
9 siblings, 0 replies; 11+ messages in thread
From: sgn @ 2023-12-07 14:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 604 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/47044#issuecomment-1845460982
Comment:
> I was more referring to the native rust library for typst, which is a lot more flexible than these bindings, it seems.
Flexible or not, if it's not exposed, it's useless. Worse, the current state of Rust ecosystem, everything is static-linked, which brings more burden in maintaining.
> I asked for this package thinking that maybe there is a way to make `python3-typst` depend on `typst`...
Wait until Rust can have stable ABI, which means never. :-p
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ISSUE] [CLOSED] Package request: python3-typst
2023-11-03 11:37 [ISSUE] Package request: python3-typst Eloitor
` (8 preceding siblings ...)
2023-12-07 14:39 ` sgn
@ 2024-01-30 22:46 ` Eloitor
9 siblings, 0 replies; 11+ messages in thread
From: Eloitor @ 2024-01-30 22:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 385 bytes --]
Closed issue by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/47044
Description:
### Package name
python3-typst
### Package homepage
https://github.com/messense/typst-py
### Description
Python binding to typst.
### Does the requested package meet the package requirements?
System, Compiled
### Is the requested package released?
Yes
^ permalink raw reply [flat|nested] 11+ messages in thread