Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Sayth Renshaw Newsgroups: comp.lang.python Subject: Re: Advice on Python build tools Date: Thu, 14 Apr 2016 09:44:09 +0000 Lines: 78 Message-ID: References: <5d1ee478-ab0b-42c5-bb86-29e7a539f88d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de GwA0ngs2zqjhbn5n4XTKiwyZepBn75BVSx/XxdvfOKbA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'wiki': 0.03; 'static': 0.03; 'subject:Python': 0.05; 'preference': 0.05; 'dev': 0.07; 'subject:build': 0.07; 'cc:addr:python-list': 0.09; 'alternatives': 0.09; 'brackets': 0.09; 'learn,': 0.09; 'spawn': 0.09; 'subject:tools': 0.09; 'subtle': 0.09; '\xe2\x80\x94': 0.09; 'python': 0.10; 'anyway': 0.11; 'template': 0.11; 'thu,': 0.15; '2016': 0.16; 'generator.': 0.16; 'i\xe2\x80\x99m': 0.16; 'pythonic': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subprocess,': 0.16; 'thoughts?': 0.16; 'wrote:': 0.16; '>': 0.18; 'email addr:gmail.com>': 0.18; 'hack': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'minor': 0.22; 'mixed': 0.22; 'cc:no real name:2**0': 0.22; 'needed.': 0.23; 'second': 0.24; 'cheers': 0.24; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'bugs': 0.27; 'message-id:@mail.gmail.com': 0.27; 'said,': 0.27; 'url:moin': 0.27; 'whitespace': 0.29; 'system,': 0.30; 'url:wiki': 0.30; 'url:mailman': 0.30; 'checked': 0.31; 'anyone': 0.32; 'another': 0.32; 'core': 0.32; 'point': 0.33; 'url:python': 0.33; 'builds': 0.33; 'instead,': 0.33; 'similar': 0.33; 'url:listinfo': 0.34; 'list': 0.34; 'received:google.com': 0.35; 'templates': 0.35; 'something': 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'thanks': 0.37; 'list.': 0.37; 'starting': 0.37; 'things': 0.38; 'received:209': 0.38; 'does': 0.39; 'url:mail': 0.40; 'build': 0.40; 'still': 0.40; 'some': 0.40; 'your': 0.60; 'yes': 0.62; 'engines': 0.63; 'more': 0.63; 'great': 0.63; 'limit': 0.65; 'choose': 0.68; 'yourself,': 0.72; '(also,': 0.84; 'lean': 0.84; 'liking': 0.84; 'plugins': 0.84; 'templates.': 0.84; 'try.': 0.91; 'improvement': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PUvrxtJ+Ziv3lFm51r16hzIVG6QVH4c6kO6iTI4JbX4=; b=0s1cRPlbMv740+gpgCqG2LbUI7lNy4u1KnAaNcowb98iwfd4t0QMvVQ/rSgFhh95RV k1Qf/Gk1yLDZZJESaX82J0qtvtQttsuzrDBx2z1jCkFeWNpWVLLGu9/4LYRPlEqU05G9 lHGBHO2+yP5up9AtVtdwVNjfQI4nnF/UvClE1aaAl1NcM8eUI9yhWPEwv73sy3F3TF3d Lv9HxKqAQK0AOs88kRgoEwmDOpdZk0lwkb4lNl4FzvTU/Jio92VcFoC8IxufFK6vVF8L 2frqg9gmKJ7dHPUeH+YHCvFq4jeR7v3XM+gw2HNOsShp/GxW69ZQVkCaBnZH+xLak2N2 /mKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PUvrxtJ+Ziv3lFm51r16hzIVG6QVH4c6kO6iTI4JbX4=; b=MeHZyRGIDvT/EZ+a5xGDxjgDeM5u4GLz1/UICDw4fxVIoCd7FVQBFVJ3S9eSSfPmVD Bt6NTq3z10WDNAUTmRBvlpDu9OIIp+dtDuHOpvh0O0FHwX3XhRHr5iZsxXxLf2Yvu0mY DTFPAghL3fNJ/rBMp+df2dfyCtVE6Er99BAmbcM/axDEoaCCIsjR6UfmRz4Lq3TVX57Q fVoYJNsMm53eG0Ra1z0oAq1PLHVPKQjszB6BKXM1+ve/1r7qVhOGX9lyhFIV3tmYgiVk 41k0mePuXNFTSAn8AqC1lIYzPFI6ocrmJxBp/tri7FYxR1OPOIa+U1LU2KKyP/ZCJBzV cgJA== X-Gm-Message-State: AOPr4FUE9jcFt/frfnrGJZQjDYn/X2rdNdtcHm54tRtoj2B2hcqksah9MW6HYcapUSR0AeGjTnlRzKLC2S+1sA== X-Received: by 10.140.89.178 with SMTP id v47mr16539297qgd.11.1460627059647; Thu, 14 Apr 2016 02:44:19 -0700 (PDT) In-Reply-To: X-Mailman-Approved-At: Thu, 14 Apr 2016 05:46:10 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <5d1ee478-ab0b-42c5-bb86-29e7a539f88d@googlegroups.com> Xref: csiph.com comp.lang.python:106990 Thanks for the tips. Doit does look interesting. Regarding template plugins with Nikola the plugins would be only for python template alternatives such as mako. Mainly i find the whitespace and readability of Jade/pug far more pythonic than all tge brackets {% .... %} yes its a minor thing but so much clearer. Anyway checked out mako which has some improvement might see if there is another with support and create a nikola plugin and then give it a try. Cheers Sayth On Thu, 14 Apr 2016 1:19 am Chris Warrick wrote: > On 12 April 2016 at 11:48, Sayth Renshaw wrote: > > Hi > > > > Looking at the wiki list of build tools > > https://wiki.python.org/moin/ConfigurationAndBuildTools > > > > Has anyone much experience in build tools as i have no preference or > experience to lean on. > > > > Off descriptions only i would choose invoke. > > > > My requirements, simply i want to learn and build a simple static > website generator. Many i am not liking design of or are overkill so its = a > good opportunity to learn, logya is a good starting point for what i thin= k > a good python static generator should be. > > > > Second i want to use Jade templates (js) as i think they are more > pythonic than jinja and mako so being able to have mixed js and python > support would be needed. > > > > Thoughts? > > > > Sayth > > -- > > https://mail.python.org/mailman/listinfo/python-list > > Here=E2=80=99s a great static site generator (disclaimer, I=E2=80=99m a c= ore dev over > there): > > https://getnikola.com/ > > We use doit, which is on that list. With doit, we get an existing > build system, and incremental rebuilds =E2=80=94 for free. I recommend yo= u try > Nikola, and if you don=E2=80=99t like it and still want to build somethin= g > yourself, doit is going to be a great way to do it. That said, > incremental builds often involve trial-and-error and subtle bugs when > you start working on it. And if you don=E2=80=99t like doit, you can alwa= ys > write your own build micro-system. Because if you want to write > something simple and minimal, an existing large build system will just > make things harder. > > As for Jade templates, you can=E2=80=99t do that reasonably. You would ne= ed to > produce some hack to spawn a JavaScript subprocess, and it would limit > what you can use in templates. Instead, look for a template system > that is written in Python and that has similar syntax. > > (also, I wouldn=E2=80=99t consider such weird-thing-into-real-HTML templa= te > engines pythonic) > > -- > Chris Warrick > PGP: 5EAAEA16 >