proj:prepackaging
Home
Project
Before Packaging
Unset Test Settings
debug = False on all scripts (search for debug = True - it will fix next issue in same process). Include dev_debug = False.
test_lang = False in home.py
EXPORT_IMAGES_DIAGNOSTIC = False in my_globals.py
New locales/modules/images/themes/data in sofa.db etc
debian - update rules and for locales dirs
windows - update nsi file
mac - change contents of /home/g/projects/SOFA/SOFA Statistics template.app
any code changes where there is translation - add to app.fil
new images associated with new css - setup.populate_extras_path() where it populates everything if not there already.
git add name_of_new_file_to_track
If new css file manually add to list of styles in setup.populate_css_path()
Update Readme/Change Files
Create changes file (e.g. /home/g/projects/SOFA/notes/changes_0.9.5.txt). Include bug fixes after an empty line. NB new version numbers in download links from SourceForge.
Also make release notes file (e.g. /home/g/projects/SOFA/notes/release_notes_0.9.5.txt).
Testing
cd ~/projects/sofastats_proj/sofastatistics/sofastats/tests/
nosetests test_stats.py (and then test_misc.py)
can run a specific test thus: nosetests test_misc.py:test_get_pat
-
(Obsolete) Default Database
Skip this section if using scripts for Windows/Deb pre-packaging. They automatically overwrite stale default db with stored clean copy.
Use SQLite Database browser to delete all tables from SOFA_Default_db except the default one (SOFA_Default_tbl). In /home/g/sofa/_internal/.
Run /home/g/projects/SOFA/storage/vacuum_sqlite_default.py to shrink the default database e.g. 169Kb from 6Mb
Windows Installer Notes
proj/prepackaging.txt · Last modified: 2019/05/11 00:29 by admin