2021-03-25 15:44:39 +00:00
BeeRef — Notes For Developers
=============================
BeeRef is written in Python and PyQt6.
2021-08-09 16:45:50 +00:00
2021-10-03 20:25:10 +00:00
Developing
2021-08-09 16:45:50 +00:00
----------
2024-04-25 17:12:41 +00:00
Optional step: Use pyenv to create a virtual environment::
2023-11-23 20:29:36 +00:00
pyenv install -v 3.11
pyenv virtualenv 3.11 beeref
2024-04-25 17:12:41 +00:00
Once the vitrual environment is set up, you can enter it with::
2023-11-23 20:29:36 +00:00
pyenv activate beeref
2021-03-25 15:44:39 +00:00
Clone the repository and install beeref and its dependencies::
git clone https://github.com/rbreu/beeref.git
2021-03-28 12:28:48 +00:00
cd beeref
pip install -e .
2021-03-25 15:44:39 +00:00
Install additional development requirements::
pip install -r requirements/dev.txt
Run unittests with::
2023-11-24 22:04:33 +00:00
pytest --cov .
This will also generate a coverage report: `` htmlcov/index.html `` .
2021-03-25 15:44:39 +00:00
Run codechecks with::
flake8 .
2021-03-27 14:37:03 +00:00
Beeref files are sqlite databases, so they can be inspected with any sqlite browser.
2021-04-01 20:02:16 +00:00
For debugging options, run::
beeref --help
2021-04-03 18:20:22 +00:00
2021-08-09 16:45:50 +00:00
Building the app
----------------
To build the app, run::
2023-11-23 14:19:18 +00:00
pyinstaller BeeRef.spec
2021-08-09 16:45:50 +00:00
You will find the generated executable in the folder `` dist `` .
Website etc.
------------
2021-04-03 18:20:22 +00:00
The Python version badge in the README is generated with pybadges::
2023-12-14 20:27:27 +00:00
python -m pybadges --left-text=Python --right-text="3.9 | 3.10 | 3.11" > images/python_version_badge.svg
2021-07-12 17:59:44 +00:00
The `website <https://rbreu.github.io/beeref/> `_ is hosted via Github pages from the gh-pages branch. You can run it locally if you have Ruby and bundler installed::
bundle install
bundle exec jekyll serve --baseurl ""