947
edits
Changes
→Development Practices: section for helper scripts
* if we're extending the standard library, we should extend via inheritance
** we are free to extend and add new methods, but we should support the existing methods when possible
=== Scripts ===
In addition to Mozbase's python packages, there are several scripts written to aid Mozbase developers in pushing the workflow along:
* [https://github.com/mozilla/mozbase/blob/master/setup_development.py setup_development.py] : sets up mozbase packages for in development mode; see [[#Installing_Mozbase]]
* [https://github.com/mozilla/mozbase/blob/master/versionbump.py versionbump.py] : bump mozbase versions and release to [http://pypi.python.org/ pypi]; see [[#Using_versionbump.py]]
* [https://github.com/mozilla/mozbase/blob/master/test.py test.py] : test runner for Mozbase [http://docs.python.org/2/library/unittest.html unittests]; see [[#Tests]]
* [http://mxr.mozilla.org/mozilla-central/source/testing/mozbase/generate_diff.py generate_diff.py] : generate a diff of released mozbase packages vs [http://hg.mozilla.org/mozilla-central mozilla-central]; see [[#Mirroring]]
More about these scripts can be found from running `$SCRIPT --help` or by consulting the linked to documentation and source.
=== Adding a New Mozbase Package ===