Re: [Catalyst] Dist::Zilla + Catalyst?

2010-04-28 Thread Matt S Trout
On Mon, Apr 26, 2010 at 06:03:15AM -0400, John SJ Anderson wrote:
 
 On Apr 25, 2010, at 12:10 , Ævar Arnfjörð Bjarmason wrote:
 
  On Sun, Apr 25, 2010 at 15:39, John SJ Anderson geneh...@genehack.org 
  wrote:
  Is anybody using Dist::Zilla in combination with Catalyst? If so, are you 
  just not using it to generate your Makefile.PL or are you working around 
  the issues that presents in some other way?
  
  I'm using it for a plugin I have (Catalyst::Plugin::Upload::Digest).
  What issues are you talking about?
 
 I'm sorry, I thought that the location of 'Home' was set based on the 
 Makefile.PL. Reviewing the documentation, I see a dist.ini file can also 
 serve for that purpose. 

However, one of the tenets of Dist::Zilla is that your base directory need
not look anything like the final distribution.

In the case of Catalyst applications, the standard assumption that a checkout
and a final dist look much the same (as is normal for CPAN) is used quite
substantially; so I'd say that in this case Dist::Zilla's philosophical
decision to violate that convention makes it a suboptimal choice.

OTOH, if it works for you, I'm all for you enjoying using it :)

-- 
Matt S Trout Catalyst and DBIx::Class consultancy with a clue
 Technical Director  and a commit bit: http://shadowcat.co.uk/catalyst/
 Shadowcat Systems Limited
  mst (@) shadowcat.co.ukhttp://shadowcat.co.uk/blog/matt-s-trout/

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Dist::Zilla + Catalyst?

2010-04-28 Thread Ævar Arnfjörð Bjarmason
On Wed, Apr 28, 2010 at 14:30, Matt S Trout m...@shadowcat.co.uk wrote:
 I'm sorry, I thought that the location of 'Home' was set based on the 
 Makefile.PL. Reviewing the documentation, I see a dist.ini file can also 
 serve for that purpose.

 However, one of the tenets of Dist::Zilla is that your base directory need
 not look anything like the final distribution.

 In the case of Catalyst applications, the standard assumption that a checkout
 and a final dist look much the same (as is normal for CPAN) is used quite
 substantially; so I'd say that in this case Dist::Zilla's philosophical
 decision to violate that convention makes it a suboptimal choice.

Thats more a tenet of how Ricardo Signes (the dzil author) likes to
work than a core assumption of Dist::Zilla.

The only modification Dist::Zilla does of my distributions is to add
$VERSION variables to my packages with the PkgVersion plugin. You can
skip even that and manually upgrade $VERSION like you do now.

There's no reason why Catalyst distros cant work with dzil.ini that I
can see. Are there hooks available for catalyst.pl so that it can
generate Dist::Zilla based distros instead of using Module::Install?

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Dist::Zilla + Catalyst?

2010-04-28 Thread Ævar Arnfjörð Bjarmason
On Wed, Apr 28, 2010 at 15:29, Matt S Trout m...@shadowcat.co.uk wrote:
 On Wed, Apr 28, 2010 at 03:20:05PM +, Ęvar Arnfjörš Bjarmason wrote:
 On Wed, Apr 28, 2010 at 14:30, Matt S Trout m...@shadowcat.co.uk wrote:
  In the case of Catalyst applications, the standard assumption that a 
  checkout
  and a final dist look much the same (as is normal for CPAN) is used quite
  substantially; so I'd say that in this case Dist::Zilla's philosophical
  decision to violate that convention makes it a suboptimal choice.

 Thats more a tenet of how Ricardo Signes (the dzil author) likes to
 work than a core assumption of Dist::Zilla.

 Fair point; though if you don't use it that way I'm not really convinced
 it does anything that Module::Install/etc. doesn't already do just fine.

It's (at least for me) mainly about removing the duplicate work that
goes into release. The *only* thing that I do when releasing now, aside
from editing the code, is manually updating the Changes file, and I
usually do that as I go. Then it's just `dzil release`.

Before that I had to maintain a MANIFEST, dependencies in Makefile.PL,
$VERSION in all my files, `git tag $VERSION`  `git push` after
release.

In addition I had boilerplate like README and LICENSE that either had
to be generated from something else in the distro, or copy/pasted into
every repository.

I'm willing to bet that you have to fiddle around more than I at
release time :)

 There's no reason why Catalyst distros cant work with dzil.ini that I
 can see. Are there hooks available for catalyst.pl so that it can
 generate Dist::Zilla based distros instead of using Module::Install?

 The whole thing's generated from templates so far as I'm aware - don't see
 why you couldn't (or if it isn't already exposed why it wouldn't given a
 trivial patch).

 But rather the point of catalyst.pl is that it's one sane way to do things.

 I stick to the standard layout for most things in apps I work on not because
 it's necessarily my favourite, but because it's a common standard that
 anybody working on Catalyst apps is going to be familiar with. As Stevan says:

catalyst.pl's behavior (and not being able to change it) is the aspect
of Catalyst that irks me the most.

When I create a project the first thing I have to do is clean the
boilerplate the install script added. When I create models / views /
controllers with it, I usually have to at least go edit the POD
afterwards to make it sane.

It would be nice if someone made it pluggable so that you could easily
set your preferred build system / starting template in a global config
somewhere, along with an easy way to use other people's configs or
upload your own from the CPAN.

I don't use Catalyst enough to justify doing the work needed for that
to myself, especially if people would rather have one true way to do
it.

But if someone did implement it I'd be a very happy (infrequent) user.

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Dist::Zilla + Catalyst?

2010-04-26 Thread John SJ Anderson

On Apr 25, 2010, at 12:10 , Ævar Arnfjörð Bjarmason wrote:

 On Sun, Apr 25, 2010 at 15:39, John SJ Anderson geneh...@genehack.org wrote:
 Is anybody using Dist::Zilla in combination with Catalyst? If so, are you 
 just not using it to generate your Makefile.PL or are you working around the 
 issues that presents in some other way?
 
 I'm using it for a plugin I have (Catalyst::Plugin::Upload::Digest).
 What issues are you talking about?

I'm sorry, I thought that the location of 'Home' was set based on the 
Makefile.PL. Reviewing the documentation, I see a dist.ini file can also serve 
for that purpose. 

thanks,
john.


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Dist::Zilla + Catalyst?

2010-04-25 Thread John SJ Anderson
Is anybody using Dist::Zilla in combination with Catalyst? If so, are you just 
not using it to generate your Makefile.PL or are you working around the issues 
that presents in some other way?

thx,
j.


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Dist::Zilla + Catalyst?

2010-04-25 Thread Ævar Arnfjörð Bjarmason
On Sun, Apr 25, 2010 at 15:39, John SJ Anderson geneh...@genehack.org wrote:
 Is anybody using Dist::Zilla in combination with Catalyst? If so, are you 
 just not using it to generate your Makefile.PL or are you working around the 
 issues that presents in some other way?

I'm using it for a plugin I have (Catalyst::Plugin::Upload::Digest).
What issues are you talking about?

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/