[Cuis] Package format

H. Hirzel hannes.hirzel at gmail.com
Tue Feb 26 09:17:28 CST 2013


Hello Frank

On 2/26/13, Frank Shearar <frank.shearar at gmail.com> wrote:
> Hi,
>
> I've read http://www.jvuletich.org/Cuis/CodeManagementInCuis4.html but
> I'm unclear on something.
>
> Some Cuis packages - https://github.com/garduino/Cuis-JSON for
> instance - store an entire package in a .pck.st file. This looks like
> a standard chunk fileout.
>
> So far so good. But sometimes one wants to store code in more than one
> file. https://github.com/pmon/Cuis-PetitParser for instance uses four
> files, to keep the tests separate from the code under test, and so on.
>
> But how do you file in this set of files automatically?

You need a load script. See for example my fork of Cuis-PetitParser

https://github.com/hhzl/Cuis-PetitParser

Prompted by your mail I just have issued a pull request to pmon.


Does Cuis have
> some analysis tools to, say, topologically sort class references and
> so knows to file in PetitParser.pck before PetitTests.pck?

No.

Or do you
> rely on the user loading things in by hand, and guessing the correct
> order?

Yes, guessing is necessary unless people provide a load script.
Actually most of the Cuis repositories have such a load script in the
README.md file.

Maybe we should find a way to make this more formal. I.e. put this
under a special heading so that the information may be extracted from
the README.md files.

> (GNU Smalltalk makes you specify the load order, in a package.xml
> file. This file also allows you to express dependencies on other
> packages.)

Yes, this is also worth considering.

Kind regards
Hannes




More information about the Cuis mailing list