-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
prasad-kumkar edited this page May 5, 2025
·
1 revision
This guide will help you set up your development environment for working with Tessera.
- Python 3.11 or higher
- Poetry (Python dependency management tool)
- Git
Before installing Tessera, ensure you have the following system dependencies:
-
Python 3.11+:
# On macOS using brew brew install [email protected] # On Ubuntu/Debian sudo apt install python3.11 python3.11-dev
-
Poetry:
curl -sSL https://install.python-poetry.org | python3 -
-
Clone the Repository:
git clone https://github.com/chainscore/tessera.git cd tessera -
Install Dependencies:
poetry install
This will install all required packages including:
-
Core Dependencies:
- aiohappyeyeballs==2.4.4
- aiohttp==3.11.11
- aiosignal==1.3.2
- annotated-types==0.7.0
- astroid==2.15.8
-
Development Dependencies:
- pytest==7.3.1
- pytest-cov==6.0.0
- flake8==4.0.1
- black==23.12.1
- isort==5.13.2
- pre-commit==4.0.1
- sphinx==8.1.3
-
-
Set Up Pre-commit Hooks:
poetry run pre-commit install
-
Activate Poetry Shell:
poetry shell
-
Run Tests:
pytest
-
Format Code:
black . isort .
-
Lint Code:
flake8
For the best development experience, we recommend:
-
VS Code with these extensions:
- Python
- Pylance
- Black Formatter
- isort
-
PyCharm with:
- Poetry plugin
- Black plugin
- isort plugin
Common Issues:
-
Poetry Installation:
# If poetry install fails, try: poetry update poetry install --no-cache -
Python Version:
# Verify Python version: python --version # If wrong version: poetry env use python3.11
-
Dependencies:
# Clear poetry cache: poetry cache clear . --all