On 9 April 2013 03:03, Alexey Melnichuk <mi...@newmail.ru> wrote:
> Hisham <h <at> hisham.hm> writes:
>
>>
>> Your module was just uploaded. Thank you for contributing!
>>
>
> Thanks.
> I have one more question.
> In my module i have several optional dependencies.
> lua-iconv is used for transcoding text content, lua-crypto is used to
> support auth apop/cmd5 and so on.
> Also auth apop/cmd5 can use some other md5+bit modules.
> How i should describe this dependencies?
> For now i use tests and if some functionality is not available i fail test
> and output descriptive message.
> But luarocks do not run tests after installation.

Yes, we lack optional dependencies... it's not clear how to proceed
with those if we had that feature, since the luarocks command is not
interactive. Perhaps just suggesting the user about them at the end of
installation?

> I think about rockspecs for certain functionality only.
> This rockspecs can contain no modules, but just dependencies.
> For example
>> package = "pop3-auth-cmd5"
>> version = "0.1.2-1"
>> dependencies = {
>>   "pop3 >= 0.1.2";
>>   "lua-crypto >= 0.2";
>> }

Well, that is one possibility, with a build.type="none".

> Or just describe all this dependencies in README and forget?

That is always another possibility... if the user will have to figure
out they have to run 'luarocks install pop3-auth-cmd5' to get that
support, you could just tell them to run 'luarocks install lua-crypto'
instead.

-- Hisham

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to