Skip to content

Instantly share code, notes, and snippets.

@dstufft
Created April 8, 2014 05:01
Show Gist options
  • Select an option

  • Save dstufft/10092773 to your computer and use it in GitHub Desktop.

Select an option

Save dstufft/10092773 to your computer and use it in GitHub Desktop.
Version: Manage version number based on git revisions and tags
This is "ok", although I don't like that it uses the installed setuptools
metadata instead of writing a file to the sdist. However generating
arbitrary versions from git is basically an unsolvable problem and I'm not
convinced that attempting to do is actually useful (thinking of the dev
mode versions).
AUTHORS: Generate AUTHORS file from git log
This is nice.
ChangeLog: Generate ChangeLog from git log
I don't like this. Change logs should be easy to read and this more or less
mandates that you use squashed commits. Further more it makes it impossible
to edit the changelog after the fact. Additionally it's not really useful
if your changelog includes adding a feature and then removing a feature
because it wasn't fully baked.
Sphinx Autodoc: Generate autodoc stub files for your whole module
Whatever, I don't really care but I dont' like autodoc.
Requirements: Store your dependencies in a pip requirements file
No, No, No. requirements.txt != install_requires
long_description: Use your README file as a long_description
This is nice, but also trivial to do in a normal setup.py
Smart find_packages: Smartly find packages under your root package
This is nice, but also trivial to do in a normal setup.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment