Clone the repository and install the project using poetry.
If you don't have poetry installed, you can install it using pipx install poetry or pip install poetry.
git clone https://github.com/acoustid/mbslave.git cd mbslave/ poetry install
Poetry will automatically create a virtual environment for you. You can then run commands
within this environment using poetry run mbslave <command> or by activating the shell with poetry shell.
For example, to see available commands:
poetry run mbslave --help
For development and testing, you can use the provided Dockerfile.postgres to start a pre-initialized PostgreSQL database with the MusicBrainz schema.
Using Docker Compose:
docker compose -f docker-compose.dev.yml up -d
This will start a PostgreSQL container on port 5432 with:
* Database: musicbrainz
* User: musicbrainz
* Password: musicbrainz
The database will be automatically initialized with the schema when the container starts.
You can run the tests using pytest. Some tests require a running development database (see above).
poetry run pytest
Run these scripts to update SQL files:
./scripts/update_sql.sh
Change the version number in
mbslave/__init__.py.Add notes to
CHANGELOG.rstTag the repository:
git tag -s vX.Y.Z
Upload the package to PyPI:
rm -rf dist/ python setup.py sdist twine upload dist/mbslave-*.tar.gz