Skip to content

Latest commit

 

History

History
76 lines (57 loc) · 2.13 KB

Developer.md

File metadata and controls

76 lines (57 loc) · 2.13 KB

Development notes

Following are the notes for working on the development of the barfi.

Quickstart for development

  • In terminal 1
make serve
  • In terminal 2
make run

Requirements

Python virtual environment

Create a new Python virtual environment:

$ python3 -m venv venv  # create venv
$ . venv/bin/activate   # activate venv
$ pip install streamlit # install streamlit

Run the components's Streamlit app:

$ . venv/bin/activate  # activate the venv you created earlier
$ streamlit run barfi/__init__.py  # run the root test

Node environment

Install and initialize the component's frontend:

$ cd barfi/frontend
$ npm install    # Install npm dependencies
$ npm run serve  # Start the dev server

Build and Deploy

pip install build twine
python -m build 
twine upload --verbose --skip-existing dist/*

Checklist before building new package

  • Run unittest by running make test
  • Change Node to Block here barfi/frontend/node_modules/@baklavajs/plugin-renderer-vue/dist/index.js @ this.contextMenu.items
  • Build the frontend: cd frontend/ and run npm run build
  • Set release = True in /barfi/init.py
  • Bump version number in setup.py
  • Build package: python -m build
  • Bump version number in docs/source/conf.py
  • Update docs if required.
  • Upload to twine using make upload
  • Change Set release = False in /barfi/init.py
  • Update CHANGELOG
  • Commit the repository with the version number v 0.4.2

Resources