mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-30 22:57:59 +00:00
b088086b06
Now, it's all under the notebook umbrella. Seems to be appropriate as it is just my notes after all. I also updated some notes from there. I didn't keep track of what it is this time. Something about more learning notes extracted from my "Learning how to learn" course notes and then some. Lack of time and hurriness just makes it difficult to track but it should be under version control already.
1.5 KiB
1.5 KiB
Python packages
- the most common distribution tool as of 2021-07-17 is
setuptools
which usessetup.py
which is a script telling how to build the Python module; it is documented from the official documentation - some projects replaces the
setup.py
withpyproject.toml
which solves the dependency problem; it is specified from PEP-0518 - some projects replaced the official Python package manager (
pip
) with poetry which requires a new setup; it can usepyproject.toml
which makes it easy to install with either the official setup or Poetry; projects may have apoetry.toml
to configure the module similarly topackage.json
in NodeJS packages; Poetry packages may also has a lockfile atpoetry.lock
-
examples:
- the source of Poetry itself uses the Poetry package manager
- Cookiecutter (at commit
d6037b7dee5756e35a6ecd5b522899a9061c2c79
) usespyproject.toml
with a shim for thesetuptools
- Cruft uses Poetry (which in turn can use the official distribution setup)
- rmfuse uses
pyproject.toml
that can be installed either with Pip or Poetry