<commit_before>## Development

```
mkvirtualenv pylibdmtx
pip install -U pip
pip install -r requirements.pip

nosetests
python -m pylibdmtx.scripts.read_datamatrix pylibdmtx/tests/datamatrix.png
```

### Testing python versions

Make a virtual env and install `tox`

```
mkvirtualenv tox
pip install tox
```

If you use non-standard locations for your Python builds, make the interpreters available on the `PATH` before running `tox`.

```
PATH=/Users/lawh/local/python-2.7.12/bin:/Users/lawh/local/python-3.4.5/bin:/Users/lawh/local/python-3.5.2/bin:$PATH
tox
```

### Windows

Save the 32-bit and 64-bit `libdmtx.dll` files to `libdmtx-32.dll` and
`libdmtx-64.dll` respectively, in the root of this repo.
The `load_libdmtx` function in `wrapper.py` looks for the appropriate `DLL`
on `sys.path`. The appropriate `DLL` is packaged up into the wheel build,
then installed to the root of the virtual env. This strategy allows
the same method to be used when `pylibdmtx` is run from source, as an installed package and when included in a frozen binary.

## Releasing

Generate the `reStructuredText README`

```
pip install wheel
brew install pandoc
```

```
pandoc --from=markdown --to=rst README.md -o README.rst
rm -rf build dist
./setup.py sdist
./setup.py bdist_wheel
./setup.py bdist_wheel --plat-name=win32
./setup.py bdist_wheel --plat-name=win_amd64
```<commit_msg>Better release instructions<commit_after>## Development

```
mkvirtualenv pylibdmtx
pip install -U pip
pip install -r requirements.pip

nosetests
python -m pylibdmtx.scripts.read_datamatrix pylibdmtx/tests/datamatrix.png
```

### Testing python versions

Make a virtual env and install `tox`

```
mkvirtualenv tox
pip install tox
```

If you use non-standard locations for your Python builds, make the interpreters available on the `PATH` before running `tox`.

```
PATH=/Users/lawh/local/python-2.7.12/bin:/Users/lawh/local/python-3.4.5/bin:/Users/lawh/local/python-3.5.2/bin:$PATH
tox
```

### Windows

Save the 32-bit and 64-bit `libdmtx.dll` files to `libdmtx-32.dll` and
`libdmtx-64.dll` respectively, in the root of this repo.
The `load_libdmtx` function in `wrapper.py` looks for the appropriate `DLL`
on `sys.path`. The appropriate `DLL` is packaged up into the wheel build,
then installed to the root of the virtual env. This strategy allows
the same method to be used when `pylibdmtx` is run from source, as an installed package and when included in a frozen binary.

## Releasing

Install tools.

```
pip install wheel
brew install pandoc
```

Generate the `reStructuredText README.rst` from `README.md` and create
source and wheel builds. The `win32` and `win_amd64` will contain the
appropriate `libdmtx.dll`.

```
pandoc --from=markdown --to=rst README.md -o README.rst
rm -rf build dist
./setup.py sdist
./setup.py bdist_wheel
./setup.py bdist_wheel --plat-name=win32
./setup.py bdist_wheel --plat-name=win_amd64
```
{'fraction_non_alphanumeric': 0.1122976231484671, 'fraction_numerical': 0.0165346193592835, 'mean_word_length': 4.308957952468007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1719823', 'n_tokens_mistral': 1070, 'n_tokens_neox': 965, 'n_words': 341}