<commit_before>setuptricks
-----------

Convenience functions for your setup.py.

[![Current PyPi Version](http://img.shields.io/pypi/v/setuptricks.svg)](https://pypi.python.org/pypi/setuptricks)
[![MIT licensed](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://choosealicense.com/licenses/mit/)
[![Travis CI Status](http://img.shields.io/travis/hayd/setuptricks.svg)](https://travis-ci.org/hayd/setuptricks/builds)
[![Coverage Status](http://img.shields.io/coveralls/hayd/pep8radius.svg)](https://coveralls.io/r/hayd/setuptricks)
[![PyPi Monthly Downloads](http://img.shields.io/pypi/dm/pep8radius.svg)](https://pypi.python.org/pypi/setuptricks)


Installation
------------
From pip:

```sh
$ pip install setuptricks
```

Usage
-----
Before calling setupetools' setup:
```py
import setuptricks

setuptricks.before_setup()
```
<commit_msg>DOC add some more info and correct badge images<commit_after>setuptricks
-----------

Convenience functions for your setup.py.

[![Current PyPi Version](http://img.shields.io/pypi/v/setuptricks.svg)](https://pypi.python.org/pypi/setuptricks)
[![MIT licensed](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://choosealicense.com/licenses/mit/)
[![Travis CI Status](http://img.shields.io/travis/hayd/setuptricks.svg)](https://travis-ci.org/hayd/setuptricks/builds)
[![Coverage Status](http://img.shields.io/coveralls/hayd/setuptricks.svg)](https://coveralls.io/r/hayd/setuptricks)
[![PyPi Monthly Downloads](http://img.shields.io/pypi/dm/setuptricks.svg)](https://pypi.python.org/pypi/setuptricks)


Installation
------------
From pip:

```sh
$ pip install setuptricks
```

Usage
-----
Before calling setuptools' setup:
```py
from setuptools import setup
import setuptricks

s = setuptricks.Package("name_of_package")

s.before_setup()
setup(name=s.package,
      version=s.version,
      description=s.description,
      ...
)
```

*See for example this packages setup.py.*

The `before_setup()` allows you to run:

```sh
$ python setup.py publish
$ python setup.py tag
```

As discussed in [pydanny's blog](http://www.pydanny.com/python-dot-py-tricks.html)
and as used in [django-rest-framework](https://github.com/tomchristie/django-rest-framework/blob/971578ca345c3d3bae7fd93b87c41d43483b6f05/setup.py#L61-L67).

{'fraction_non_alphanumeric': 0.18957968476357268, 'fraction_numerical': 0.014010507880910683, 'mean_word_length': 4.532687651331719, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5719409', 'n_tokens_mistral': 895, 'n_tokens_neox': 819, 'n_words': 116}