
@pocmatos is there a feature request to the github folks for yaml anchors that we could link to from a comment on the yaml?

I’m mostly lurking here, but re #lang ci
: YAML is a superset of JSON, and I’ve been generating JSON from Racket for some uses of YAML, like Conda environment files. There is also https://pkgs.racket-lang.org/package/yaml, but something was broken when I tried it.


There’s a github representative on the thread so it’s legit.

@philip.mcgrath do you have any library to ease generation of yaml, besides the one you mentioned?

@pocmatos No library other than (require json)
, though I’ve thought about making one. But using json
also means no dependencies beyond minimal Racket. I don’t remember what I did with my code to generate CI recipes, but here’s an example of what I do, if it’s useful: • The declarations that would otherwise be in an environment.yml
file: https://bitbucket.org/digitalricoeur/pydrnlp/src/master/py/environment.rkt • The output code: https://bitbucket.org/digitalricoeur/pydrnlp/src/ccb195273ce1fe45726894a2200c92b163eeed40/support/conda.rkt#lines-124 • The hand-written environment.yml
file this replaced: https://bitbucket.org/digitalricoeur/pydrnlp/commits/c87ecc3a95a01024e8a14d8721c7c653d3ad1841#chg-py/environment.yml • The generated environment.yml
(from my local computer): # generated by raco setup from environment.rkt
{"dependencies":["python>=3.7","spacy=2.2.3","srsly>=0.2.0","regex>=2019.12.9","pip>=19.3.1",{"pip":["<https://github.com/explosion/spacy-models/releases/download/de_core_news_sm-2.2.5/de_core_news_sm-2.2.5.tar.gz#egg=de_core_news_sm-2.2.5>","<https://github.com/explosion/spacy-models/releases/download/en_core_web_md-2.2.5/en_core_web_md-2.2.5.tar.gz#egg=en_core_web_md-2.2.5>","<https://github.com/explosion/spacy-models/releases/download/fr_core_news_sm-2.2.5/fr_core_news_sm-2.2.5.tar.gz#egg=fr_core_news_sm-2.2.5>"]}],"channels":["defaults","conda-forge"],"name":"pydrnlp"}