home / docs / sections

sections: contributing:devenvironment

This data as json

id page ref title content breadcrumbs references
contributing:devenvironment contributing devenvironment Setting up a development environment If you have Python 3.10 or higher installed on your computer (on OS X the quickest way to do this is using homebrew ) you can install an editable copy of Datasette using the following steps. If you want to use GitHub to publish your changes, first create a fork of datasette under your own GitHub account. Now clone that repository somewhere on your computer: git clone git@github.com:YOURNAME/datasette If you want to get started without creating your own fork, you can do this instead: git clone git@github.com:simonw/datasette The quickest way to set up a development environment is to use uv . From the repository root you can run the tests directly: cd datasette uv run pytest This will create a local .venv/ and install Datasette plus its development dependencies. If you prefer to manage your own virtual environment with pip, create and activate one and then install the development dependency group: python3 -m venv ./venv source venv/bin/activate python3 -m pip install -e . --group dev ["Contributing"] [{"href": "https://docs.python-guide.org/starting/install3/osx/", "label": "is using homebrew"}, {"href": "https://github.com/simonw/datasette/fork", "label": "create a fork of datasette"}, {"href": "https://github.com/astral-sh/uv", "label": "uv"}]
Powered by Datasette · Queries took 2.84ms