I wrote a book on idiomatic Python. Here's its insane build/test system
I wrote a book on idiomatic Python. Here's its insane build/test system
Background: I've been working on a book to help developers learn and write idiomatic Python. It's taken far longer than I imagined, but today I made it available for purchase (http://www.jeffknupp.com/writing-idiomatic-python-ebook). The automated build and test system I'm using is ridiculous. It uses: virtualenv, tox, pytest, coverage, doctest, pandoc, make, xelatex, makeindex, and a ~200 line Python script to collect and format the output. The details of the build/test system I created are described in detail here: http://www.jeffknupp.com/blog/2013/01/24/the-writing-idiomatic-python-ebook-is-finally-available/ The result is two PDF files... Does anyone who's done something similar have/know of an easier way to write a technical book (where code samples must be tested) that will eventually need to be translated into multiple formats? I know I'm not the first person to write a technical book, but I'm not aware of any existing tools (commercial or otherwise) to make the process easier. Does everyone who writes a technical book cobble together their own system? I ask because I plan to eventually write a book where C++ is the language being discussed. The thought of going through this all again makes me shudder. After finishing this book, I'm convinced there must be a better way.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Build and Test Acceleration Service
I wrote a book on Python regular expressions
I wrote a book about Python
Strider – test deployments and bake AMIs from Python
Python Polars nightly build for everyone
Py-FSRS – Build your own spaced repetition system in Python
Pants – Build System for Java, Scala and Python
My self-pub book on Evolutionary Algorithms with Python (inc. sample)
Tdubs – better test doubles for python
We made a tool to build, test and send emails with React