mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-03-14 06:19:05 +00:00
1 line
5.5 KiB
JSON
1 line
5.5 KiB
JSON
{"pageProps":{"metadata":{"date":"2021-07-17 21:59:04 +08:00","date_modified":"2021-07-17 21:59:04 +08:00","language":"en","source":""},"title":"Python packages","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[]}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"the most common distribution tool as of 2021-07-17 is "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"setuptools"}]},{"type":"text","value":" which uses "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"setup.py"}]},{"type":"text","value":" which is a script telling how to build the Python module;\n it is "},{"type":"element","tagName":"a","properties":{"href":"https://docs.python.org/3/distributing/index.html"},"children":[{"type":"text","value":"documented from the official documentation"}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"some projects replaces the "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"setup.py"}]},{"type":"text","value":" with "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"pyproject.toml"}]},{"type":"text","value":" which solves the dependency problem;\n it is specified from "},{"type":"element","tagName":"a","properties":{"href":"https://www.python.org/dev/peps/pep-0518/"},"children":[{"type":"text","value":"PEP-0518"}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"some projects replaced the official Python package manager ("},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"pip"}]},{"type":"text","value":") with "},{"type":"element","tagName":"a","properties":{"href":"https://python-poetry.org/"},"children":[{"type":"text","value":"poetry"}]},{"type":"text","value":" which requires a new setup;\n it can use "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"pyproject.toml"}]},{"type":"text","value":" which makes it easy to install with either the official setup or Poetry;\n projects may have a "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"poetry.toml"}]},{"type":"text","value":" to configure the module similarly to "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"package.json"}]},{"type":"text","value":" in NodeJS packages;\n Poetry packages may also has a lockfile at "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"poetry.lock"}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"examples:\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"the "},{"type":"element","tagName":"a","properties":{"href":"https://github.com/python-poetry/poetry"},"children":[{"type":"text","value":"source of Poetry itself"}]},{"type":"text","value":" uses the Poetry package manager\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"/tools.cookiecutter"},"children":[{"type":"text","value":"Cookiecutter"}]},{"type":"text","value":" (at commit "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"d6037b7dee5756e35a6ecd5b522899a9061c2c79"}]},{"type":"text","value":") uses "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"pyproject.toml"}]},{"type":"text","value":" with a shim for the "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"setuptools"}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://github.com/cruft/cruft"},"children":[{"type":"text","value":"Cruft"}]},{"type":"text","value":" uses Poetry (which in turn can use the official distribution setup)\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://github.com/rschroll/rmfuse"},"children":[{"type":"text","value":"rmfuse"}]},{"type":"text","value":" uses "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"pyproject.toml"}]},{"type":"text","value":" that can be installed either with Pip or Poetry\n"}]}]}]}]}]}]},"backlinks":[]},"__N_SSG":true} |