2018-12-26 15:00:47 +00:00
.. _tutor:
Tutor development
=================
2019-01-22 20:25:04 +00:00
Start by cloning the Tutor repository::
2018-12-26 15:00:47 +00:00
2019-06-23 17:56:15 +00:00
git clone https://github.com/overhangio/tutor.git
2019-01-22 20:25:04 +00:00
cd tutor/
2018-12-26 15:00:47 +00:00
2019-01-22 20:25:04 +00:00
Install requirements
--------------------
::
pip install -r requirements/dev.txt
2019-03-23 23:16:03 +00:00
Run tests
---------
::
make test
2019-05-05 09:40:49 +00:00
Yes, there are very few unit tests for now, but this is probably going to change.
Code formatting
---------------
Tutor code formatting is enforced by `black <https://black.readthedocs.io/en/stable/> `_ . To check whether your code changes conform to formatting standards, run::
make test-format
And to automatically fix formatting errors, run::
make format
Static error detection is performed by `pylint <https://pylint.readthedocs.io/en/latest/> `_ . To detect errors, run::
make test-lint
2019-03-23 23:16:03 +00:00
2019-01-22 20:25:04 +00:00
Bundle `` tutor `` executable
---------------------------
::
make bundle
2019-05-13 14:33:26 +00:00
Generating the documentation
----------------------------
2019-01-22 20:25:04 +00:00
::
2019-05-13 14:33:26 +00:00
pip install -r requirements/docs.txt
2019-01-22 20:25:04 +00:00
cd docs/
make html
You can then browse the documentation with::
make browse
2019-02-13 22:44:42 +00:00
Releasing a new version
-----------------------
2019-02-18 08:22:41 +00:00
- Bump the `` __version__ `` value in `` tutor/__about__.py `` .
2020-03-16 11:07:58 +00:00
- Replace "Latest" by the version name and date in CHANGELOG.md.
2019-02-13 22:44:42 +00:00
- Create a commit with the version changelog.
2019-06-24 10:41:19 +00:00
- `` make release `` (this assumes that there are two remotes named "origin" and "overhangio")
2019-03-21 21:51:35 +00:00
After a regular push to `` master `` , run `` make nightly `` to update the "nightly" tag.