Installation

Installation#

You can install collective.html2blocks in your project using several supported methods, depending on your project's setup and preferred workflow.

  1. pyproject.toml

    This method is recommended for modern Python projects.

    Add collective.html2blocks to the dependencies section of your pyproject.toml file. This approach works with build tools like uv, Poetry or other PEP 621-compliant projects.

    [project]
    dependencies = [
        "collective.html2blocks",
    ]
    
  2. setup.py

    This method is for traditional setuptools projects.

    Add collective.html2blocks to the install_requires list in your setup.py file. This is common for legacy or projects based on setuptools.

    install_requires=[
        "collective.html2blocks"
    ],
    
  3. requirements.txt

    This method uses direct requirements management.

    Add collective.html2blocks to your requirements.txt file. This is the simplest method for projects that use pip for dependency management.

    collective.html2blocks
    

Reinstall with updated dependencies#

After updating your dependency file, re-run your project's installation command (for example, pip install -r requirements.txt, uv sync, or your build tool's equivalent). The package will be installed and available for use in your environment.

Refer to the official Dependency specifiers documentation for details on specifying versions and advanced dependency options.