Why is my CPAN list not indexed by PAUSE?

I uploaded my stasis distribution to PAUSE, but it is not in index .

I thought this was because there was no package in it, so I added the package declaration to the stasis script in version 4.0 as follows:

#!/usr/bin/env perl package stasis; package main; ... 

but it still has not been indexed.

In any case, to index this distribution, which does not include the creation of a template module file? (e.g. adding lib/stasis.pm to the distribution).

+6
source share
2 answers

I believe CPAN does not index scripts.

IMO, your best option is to create a module that allows you to programmatically do what your script does (and use a script).

You can put a fake module or make it think that your script is a module (I think listing it in provides works), but I would if I were you.

+7
source

Since your package statement was not in the *.pm file.

Open Source PAUSE Indexer. This is a little tricky to unzip, but the regex for extracting the package name in the distribution is in PAUSE::pmfile::packages_per_pmfile , which is a method and a package designed only to process *.pm files.

The PAUSE::dist::_index_by_meta method provides an alternative method for declaring a package using the provides keyword in the metafile.

+2
source

All Articles