Building Packages
Introduction
A package is just a collection of files. It serves to group files together and to distribute those files. Of course, a package can depend on other packages. Each package has a responsible maintainer that builds the package. The process of building a package is, in fact, the process of releasing software. This HOW-TO describes how to build a package.
Checklist for Releasing a Package
This checklist ensures a certain quality and makes sure that nothing is forgotten. Each time a package is released, this list must be checked. Version numbers always have the format A.C.B.D, whith the meaning of A as the major version number, B as the minor version number, C as the patch (fix) number and D as the build number.
- Each time the software is changed, check the files
- ROOTPATH\Packages\Packages.xls, and
- ROOTPATH\LVXXX\GPL\Projects\cs-framework\Classes.xls.
- Check the release notes of the package.
- For the maintainer of package CSMain only:
- Update the diagram of the VI "CoreLib/CoreLib.version info".
- In case of a major release, change the version number.
- In case of a patch, add ".NN" to the version number and change the date of the release.
- Remove everything from the CS_Contents_User.vi.
- Remove everything below "my_stuff" from the cs-framework.lvproj, except CS_Contents_User.vi and the folders otherStuff, instr.lib, applicationBaseClasses, deviceClasses, GUIClasses and VI templates.
- Copy a recent version of the database file to the package CSMain.
- Use the electronic lookbook.
- Check the file CS_readme.txt.
- Not only for classes, update the documentation at least in the library description of the class. Take care to include the license agreement in the properties of the corresponding library (lvlib). Include name of author and maintainer.
- If the package is contained in a lvlib, think about the version of the package and set the version of the lvlib to the version of the package. In case of a pre-release (like "alpha"), set the build number to "9999" (beta: 9998, ...)
- What about the "INFO2SF" keyword?
- It may also be a good idea to copy the following files to the main folder, where the library is located.
- license agreement (if required)
- CLASSNAME_db.ini (if required)
- CLASSNAME_mapping.ini (if required)
- CLASSNAME_SVTemplate.csv (if required)
- CLASSNAME.gog (if required)
- Take care to fulfill the coding conventions.
- For LabVIEW software, open the "contents.vi" of the package and check that it is executable. Make sure, that all classes have been entered into the "contents.vis". Save the "contents.vi" and all other VIs and acknowledge to save changed sub-VIs.
- Try, that the software is still working. Load an object of each class in the framework and test it. As an example, send a "Ping" and/or "GetVersionOfLibrary" event to check, that the CLASSNAME.ProcCase method is executable. Take care to try the software on all supported platforms.
- If required, build an executable of the package on Windows and Linux.
- Don't forget to change the version number in the build specifications.
- Don't forget to check the list of souce files to be included.
- Maintainer of package CSMain only: Don't forget building executables of the CSAccessServer.
- Try, that the executable is working. As an example, load an object of each class and test it by sending a "Ping" to each object.
- Eventually, you would like to delete "dimWrapper.log" files, that have been created accidentally.
- Synchronize the local files and the files on the source code control system. Close LabVIEW and save all unsaved things prior to synchronizing.
- Don't forget the binaries.
- Add the SCC revision number to the elog.
- For the maintainer of package CSMain only:
- Create a tag in the source code control system for the release.
- Update the documentation on the source code control system in this web.
- Add the SCC revision number to the CS_release_notes.txt
- Build the package using the Packager of the package CSPackaging.
- In case the package does not have hand-made release notes, the Packager can create them for you.
- Important: The change-log must be added to the release notes. Put the change-log into a seperate file (eventually together with hand-made release notes and add it when building the package). Unfortunately SourceForge no longer supports the feature of changelog explicitely.
- Please make sure not to include material (code, binaries, documentation) with copyright (like third-party instrument drivers) in the package except you have an explicit permission to do so. Of course, material with copyleft under the GNU Public License may and should be included.
- Submit the zipped package files to the SourceForge download site.
- add the zip file
- add the release notes contained in the zip file and rename them to "readme.txt"
- check, that the download site is working properly by inspecting it and at least comparing the size of the file to download with the original one on the local disk.
- in rare cases, you may add a installer...
- eventually "close" patches, feature requests, ..., to prior versions of the package
- eventually update the list of our internal CSDownloadLinks as well as the version specific download pages
- Update the documentation
- on this Wiki web and
- eventually the class documentation on the "Frontpage-web".
- list of classes on the version specific class list ("INFO2SF")
- Don't forget the changed "Packages.xls" file.
- Inform the people that you think are interested.
- update the "News" on the SourceForge site
- keep the logbook up to date
- update the "News" on the Wiki web
- in case of bug fix, inform the person who had reported the bug
- for very important things send a mail to the mailing list
- Eventually, and in case of an instrument driver, update the instrument driver download page at your institute.
--
DietrichBeck - 27 Oct 2008