So you want to help out with the development, and your next question is, "How do I get started?"
- 1 Mandatory Requirements
- 2 Why Bazaar/Why Launchpad
- 3 Sign up to Launchpad (mandatory)
- 4 Sign up to the Developer Mailing List (mandatory)
- 5 Read the Coding Standards (mandatory)
- 6 Hang out in the IRC channel with us (highly recommended)
- 7 Get your development environment up and running
- 8 Check out the latest code
- 9 Notes:
If you are interested in contributing to OpenLP at all, including just bug fixes, these are all mandatory requirements. If you just want to look at the code, it is highly recommended that you join the developers in IRC.
Why Bazaar/Why Launchpad
Folks often come into our IRC channel and ask why we chose Bazaar and Launchpad for development. The reality is that Launchpad was launched in January 2004, while Github was only launched in April 2008. At the time that OpenLP moved from SourceForge.net (where it had been since 2004), Launchpad was the only other widely known online source code repository. Since Bazaar's workflow closely resembles that of Subversion, the version control system OpenLP was coming from, it seemed a natural progression. At the time, git was also extremely small and unsupported by most online source code repositories. After two repository moves and three version control moves, OpenLP is going to stay where it is.
Sign up to Launchpad (mandatory)
If you don't yet have a Launchpad username, you'll need to sign up for one. In order to commit code back into the main branch, you'll need to have a Launchpad username, and will need to apply to be added to the OpenLP Development team on Launchpad. Once you're on Launchpad, you can propose a merge.
Sign up to the Developer Mailing List (mandatory)
The OpenLP development team uses a mailing list for all important communication. To sign up for the mailing list, go to https://lists.openlp.io/mailman/listinfo/openlp-dev
Read the Coding Standards (mandatory)
Hang out in the IRC channel with us (highly recommended)
Almost all of the developers are active in the OpenLP IRC channel. We discuss a lot of things in IRC that don't necessarily make it on to the mailing list or the wiki, so it is advantageous to hang out in IRC.
A few notes, with regards to IRC:
- Most of the developers live in timezones close to UTC (GMT), and as such will not be around in the evening hours of the USA.
- Don't private message people, this is regarded as rude
- Don't use CAPITAL LETTERS, this is also regarded as rude
- Multiple exclamations!!! or question marks??? are unnecessary
- IRC is not private, don't post any information you don't want the general public reading
- Use LodgeIt! for code, or anything else you want to paste which is longer than 3 lines
- Relax, we're a friendly bunch and like to joke around. Don't take us too seriously.
The active core developers are superfly, TRB143 and tgc. Some of the other active developers are joq, samuel_m and springermac. Unit193 is often around at times when others aren't, and can usually point you in the right direction.
Most of the developers are in timezones from UTC to UTC+2.
Get your development environment up and running
OpenLP is written in Python 3 and Qt5, so you'll need to install Python 3 (3.3+), Qt5, and the PyQt5 Python bindings for Qt5. PyCharm is a great Python IDE with support for PyQt5 which most of the developers use. There is a community edition available for free. Developers who have proven their commitment are entitled to a license for the professional edition (decided by the core developers). You'll also need a Bazaar client in order to check out the latest code. Read more detailed instructions on the following pages:
Check out the latest code
OpenLP uses the Bazaar DVCS (read more about Bazaar) and the main branch is hosted at Launchpad.net. Do the following to set up your local branch:
- Identify yourself to Bazaar:
$ bzr whoami "Raoul Snyman <email@example.com>"
- Log in to Launchpad:
$ bzr launchpad-login raoul-snyman
- Create a shared repository:
$ bzr init-repo ~/openlp
- Checkout the latest code:
$ bzr checkout lp:openlp ~/openlp/trunk
If you are behind a firewall with the bazaar port blocked, and you only want to download the code rather than push it, then you can check out the code using http. (However when you wish to submit changes you will need full access to bzr.)
bzr checkout http://bazaar.launchpad.net/~openlp-core/openlp/trunk ~/openlp/trunk
- If you get an invalid public key error when using bzr on Windows then make sure you have the BZR_SSH environment variable set:
- If you get permission denied errors because bzr is trying to create a .ssh directory under the administrator's account when you are a normal user then check the %HOME% environment variable for correctness and remove if incorrect - it's not a standard environment variable so applications trying to depend on it are clearly insane.