serhii.net

In the middle of the desert you can say anything you want

01 Dec 2023

Pip can easily install packages from github

Created pchr8/pymorphy-spacy-disambiguation: A package that picks the correct pymorphy2 morphology analysis based on morphology data from spacy to easily include it in my current master thesis code.

Later on releases pypi etc., but for now I just wanted to install it from github, and wanted to know what’s the minimum I can do to make it installable from github through pip.

To my surprise, pip install git+https://github.com/pchr8/pymorphy-spacy-disambiguation worked as-is! Apparently pip is smart enough to parse the poetry project and run the correct commands.

poetry add git+https://github.com/pchr8/pymorphy-spacy-disambiguation works just as well.


Otherwise, locally:

poetry build

creates a ./dist directory with the package as installable/shareable files.

Also, TIL:

poetry show
poetry show  --tree --why colorama

show a neat colorful tree of package dependencies in the project.

Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus