This page is for if you want to run the package and reusable components in development, and get involved by making a code contribution.
Clone the repository:
git clone https://github.com/sib-swiss/sparql-llm
cd sparql-llm
This repository uses
hatch
to easily handle scripts and virtual environments. Checkout thepyproject.toml
file for more details on the scripts available. You can also just install dependencies withpip install ".[chat,test]"
and run the python scripts insrc
Install Hatch, this will automatically handle virtual environments and make sure all dependencies are installed when you run a script in the project:
pipx install hatch
Make sure the existing tests still work by running the test suite and linting checks. Note that any pull requests to the fairworkflows repository on github will automatically trigger running of the test suite;
hatch run test
To display all logs when debugging:
hatch run test -s
hatch run fmt
In case you are facing issues with dependencies not updating properly you can easily reset the virtual environment with:
hatch env prune
Manually trigger installing the dependencies in a local virtual environment:
hatch -v env create
Get a PyPI API token at pypi.org/manage/account.
-
Increment the
version
number in thepyproject.toml
file in the root folder of the repository.hatch version fix
-
Build and publish:
hatch build hatch publish