Blame CONTRIBUTING

Packit 6539e1
Packit 6539e1
CONTRIBUTING
Packit 6539e1
Packit 6539e1
Thank you for considering contributing to this distribution.  This file
Packit 6539e1
contains instructions that will help you work with the source code.
Packit 6539e1
Packit 6539e1
PLEASE NOTE that if you have any questions or difficulties, you can reach the
Packit 6539e1
maintainer(s) through the bug queue described later in this document
Packit 6539e1
(preferred), or by emailing the releaser directly. You are not required to
Packit 6539e1
follow any of the steps in this document to submit a patch or bug report;
Packit 6539e1
these are just recommendations, intended to help you (and help us help you
Packit 6539e1
faster).
Packit 6539e1
Packit 6539e1
The distribution is managed with Dist::Zilla (https://metacpan.org/release/Dist-Zilla).
Packit 6539e1
This means than many of the usual files you might expect are not in the
Packit 6539e1
repository, but are generated at release time (e.g. Makefile.PL).
Packit 6539e1
Packit 6539e1
However, you can run tests directly using the 'prove' tool:
Packit 6539e1
Packit 6539e1
  $ prove -l
Packit 6539e1
  $ prove -lv t/some_test_file.t
Packit 6539e1
  $ prove -lvr t/
Packit 6539e1
Packit 6539e1
In most cases, 'prove' is entirely sufficent for you to test any
Packit 6539e1
patches you have.
Packit 6539e1
Packit 6539e1
You may need to satisfy some dependencies.  The easiest way to satisfy
Packit 6539e1
dependencies is to install the last release -- this is available at
Packit 6539e1
https://metacpan.org/release/Module-Metadata
Packit 6539e1
Packit 6539e1
If you use cpanminus, you can do it without downloading the tarball first:
Packit 6539e1
Packit 6539e1
  $ cpanm --reinstall --installdeps --with-recommends Module::Metadata
Packit 6539e1
Packit 6539e1
Dist::Zilla is a very powerful authoring tool, but requires a number of
Packit 6539e1
author-specific plugins.  If you would like to use it for contributing,
Packit 6539e1
install it from CPAN, then run one of the following commands, depending on
Packit 6539e1
your CPAN client:
Packit 6539e1
Packit 6539e1
  $ cpan `dzil authordeps --missing`
Packit 6539e1
or
Packit 6539e1
  $ dzil authordeps --missing | cpanm
Packit 6539e1
Packit 6539e1
You should then also install any additional requirements not needed by the
Packit 6539e1
dzil build but may be needed by tests or other development:
Packit 6539e1
Packit 6539e1
  $ cpan `dzil listdeps --author --missing`
Packit 6539e1
or
Packit 6539e1
  $ dzil listdeps --author --missing | cpanm
Packit 6539e1
Packit 6539e1
Or, you can use the 'dzil stale' command to install all requirements at once:
Packit 6539e1
Packit 6539e1
  $ cpan Dist::Zilla::App::Command::stale
Packit 6539e1
  $ cpan `dzil stale --all`
Packit 6539e1
or
Packit 6539e1
  $ cpanm Dist::Zilla::App::Command::stale
Packit 6539e1
  $ dzil stale --all | cpanm
Packit 6539e1
Packit 6539e1
You can also do this via cpanm directly:
Packit 6539e1
Packit 6539e1
  $ cpanm --reinstall --installdeps --with-develop --with-recommends Module::Metadata
Packit 6539e1
Packit 6539e1
Once installed, here are some dzil commands you might try:
Packit 6539e1
Packit 6539e1
  $ dzil build
Packit 6539e1
  $ dzil test
Packit 6539e1
  $ dzil test --release
Packit 6539e1
  $ dzil xtest
Packit 6539e1
  $ dzil listdeps --json
Packit 6539e1
  $ dzil build --notgz
Packit 6539e1
Packit 6539e1
You can learn more about Dist::Zilla at http://dzil.org/.
Packit 6539e1
Packit 6539e1
The code for this distribution is hosted at GitHub. The repository is:
Packit 6539e1
https://github.com/Perl-Toolchain-Gang/Module-Metadata
Packit 6539e1
You can submit code changes by forking the repository, pushing your code
Packit 6539e1
changes to your clone, and then submitting a pull request. Detailed
Packit 6539e1
instructions for doing that is available here:
Packit 6539e1
Packit 6539e1
https://help.github.com/articles/creating-a-pull-request
Packit 6539e1
Packit 6539e1
If you have found a bug, but do not have an accompanying patch to fix it, you
Packit 6539e1
can submit an issue report here:
Packit 6539e1
https://rt.cpan.org/Public/Dist/Display.html?Name=Module-Metadata
Packit 6539e1
or via email: bug-Module-Metadata@rt.cpan.org
Packit 6539e1
Packit 6539e1
There is also a mailing list available for users of this distribution, at
Packit 6539e1
http://lists.perl.org/list/cpan-workers.html
Packit 6539e1
There is also an irc channel available for users of this distribution, at
Packit 6539e1
irc://irc.perl.org/#toolchain
Packit 6539e1
Packit 6539e1
If you send me a patch or pull request, your name and email address will be
Packit 6539e1
included in the documentation as a contributor (using the attribution on the
Packit 6539e1
commit or patch), unless you specifically request for it not to be.  If you
Packit 6539e1
wish to be listed under a different name or address, you should submit a pull
Packit 6539e1
request to the .mailmap file to contain the correct mapping.
Packit 6539e1
Packit 6539e1
Packit 6539e1
This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.012 from a
Packit 6539e1
template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.117.