Sub-Name-0.18
[p5sagit/Sub-Name.git] / CONTRIBUTING
CommitLineData
67523925 1
2CONTRIBUTING
3
4Thank you for considering contributing to this distribution. This file
5contains instructions that will help you work with the source code.
6
6eb2af6c 7PLEASE NOTE that if you have any questions or difficulties, you can reach the
8maintainer(s) through the bug queue described later in this document
9(preferred), or by emailing the releaser directly. You are not required to
10follow any of the steps in this document to submit a patch or bug report;
11these are just recommendations, intended to help you (and help us help you
12faster).
67523925 13
71457ae8 14This distribution has a TODO file in the repository; you may want to check
15there to see if your issue or patch idea is mentioned.
16
67523925 17The distribution is managed with Dist::Zilla (https://metacpan.org/release/Dist-Zilla).
18However, you can still compile and test the code with a small Makefile.PL
19specifically for use in the repository. You can do:
20
21 perl Makefile.PL
22 make
23 make test
24
25As well as:
26
27 $ prove -bvr t
28or
29 $ perl -Mblib t/some_test_file.t
30
31You may need to satisfy some dependencies. The easiest way to satisfy
32dependencies is to install the last release -- this is available at
71457ae8 33https://metacpan.org/release/Sub-Name
67523925 34
35If you use cpanminus, you can do it without downloading the tarball first:
36
37 $ cpanm --reinstall --installdeps --with-recommends Sub::Name
38
39Dist::Zilla is a very powerful authoring tool, but requires a number of
40author-specific plugins. If you would like to use it for contributing,
41install it from CPAN, then run one of the following commands, depending on
42your CPAN client:
43
44 $ cpan `dzil authordeps --missing`
45or
46 $ dzil authordeps --missing | cpanm
47
48You should then also install any additional requirements not needed by the
49dzil build but may be needed by tests or other development:
50
51 $ cpan `dzil listdeps --author --missing`
52or
53 $ dzil listdeps --author --missing | cpanm
54
55Or, you can use the 'dzil stale' command to install all requirements at once:
56
57 $ cpan Dist::Zilla::App::Command::stale
58 $ cpan `dzil stale --all`
59or
60 $ cpanm Dist::Zilla::App::Command::stale
61 $ dzil stale --all | cpanm
62
63You can also do this via cpanm directly:
64
65 $ cpanm --reinstall --installdeps --with-develop --with-recommends Sub::Name
66
67Once installed, here are some dzil commands you might try:
68
69 $ dzil build
70 $ dzil test
71 $ dzil test --release
72 $ dzil xtest
73 $ dzil listdeps --json
74 $ dzil build --notgz
75
76You can learn more about Dist::Zilla at http://dzil.org/.
77
78The code for this distribution is hosted at GitHub. The repository is:
71457ae8 79https://github.com/p5sagit/Sub-Name
67523925 80You can submit code changes by forking the repository, pushing your code
81changes to your clone, and then submitting a pull request. Detailed
82instructions for doing that is available here:
83
67523925 84https://help.github.com/articles/creating-a-pull-request
85
86If you have found a bug, but do not have an accompanying patch to fix it, you
87can submit an issue report here:
88https://rt.cpan.org/Public/Dist/Display.html?Name=Sub-Name
71457ae8 89or via email: bug-Sub-Name@rt.cpan.org
90
91There is also an irc channel available for users of this distribution, at
92irc://irc.perl.org/#toolchain
67523925 93
94If you send me a patch or pull request, your name and email address will be
6eb2af6c 95included in the documentation as a contributor (using the attribution on the
96commit or patch), unless you specifically request for it not to be. If you
97wish to be listed under a different name or address, you should submit a pull
67523925 98request to the .mailmap file to contain the correct mapping.
99
100
9d60c912 101This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.012 from a
30b320da 102template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.118.