Following are the notes for working on the development of the barfi.
- In terminal 1
make serve
- In terminal 2
make run
- Ensure you have Python 3.6+, Node.js, and npm installed.
- Clone this repo to a local folder.
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
Install and initialize the component's frontend:
$ cd barfi/frontend
$ npm install # Install npm dependencies
$ npm run serve # Start the dev server
pip install build twine
python -m build
twine upload --verbose --skip-existing dist/*
- Run unittest by running
make test
- Change
Node
toBlock
herebarfi/frontend/node_modules/@baklavajs/plugin-renderer-vue/dist/index.js
@this.contextMenu.items
- Build the frontend:
cd frontend/
and runnpm 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
- https://stackoverflow.com/questions/1301346/what-is-the-meaning-of-single-and-double-underscore-before-an-object-name
- https://stackoverflow.com/questions/972/adding-a-method-to-an-existing-object-instance
- https://stackoverflow.com/questions/52799985/python-change-bound-method-to-another-method
- https://docs.python.org/3/tutorial/classes.html