recommonmark/setup.py
Anthony Johnson fe8e00ab41
Update to support CommonMark >= 0.7.3 and clean up code
This was already dealing with a rewrite due to the spec change on CommonMark, so
I took the opportunity to modernize the code and clean things up as well.

* Updates to support CommonMark==0.7.3
* Reworks pattern for handling CommonMark nodes, mimic docutils visit/depart
  pattern
* Drops SectionHandler class, as it was only used in one place. Merge into the
  parser class, where it is used
* Drops requirements file for setup.py config, as this is a package requirements
  is superfluous
* Adds a number of more detailed test cases
* Adds test runner for 3.5, 3.6
* Updates strictness on prospector, cleans up linting errors and docstring
  problems
2017-03-02 20:04:30 -08:00

31 lines
746 B
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
File: setup.py
Author: Steve Genoud and Luca Barbato
Date: 2014-10-17
"""
from setuptools import setup
import recommonmark
setup(
name='recommonmark',
version=recommonmark.__version__,
install_requires=[
'commonmark>=0.7.3',
'docutils>=0.11',
'sphinx>=1.3.1',
],
entry_points={'console_scripts': [
'cm2html = recommonmark.scripts:cm2html',
'cm2latex = recommonmark.scripts:cm2latex',
'cm2man = recommonmark.scripts:cm2man',
'cm2pseudoxml = recommonmark.scripts:cm2pseudoxml',
'cm2xetex = recommonmark.scripts:cm2xetex',
'cm2xml = recommonmark.scripts:cm2xml',
]},
packages=['recommonmark']
)