from setuptools import setup, find_packages
import json

def read_from_package():
    with open('package.json', 'r') as f:
        pkg = json.load(f)
        return dict(version=pkg['version'],
                    description=pkg['description'])

setup(
    name='clibdoc',
    packages=find_packages(),
    install_requires=['jinja2'],
    data_files=[('clibdoc/data', ['data/Doxyfile.in',
                                  'data/index.html',
                                  'data/main.html',
                                  'data/clibdoc.css'])],
    scripts=['bin/clib-doc'],
    **read_from_package()
)

from setuptools import setup, find_packages
import json

f = open('package.json', 'r')
pkg = json.load(f)

setup(
    name='clibdoc',
    version=pkg['version'],
    description=pkg['description'],
    packages=find_packages(),
    install_requires=['jinja2'],
    data_files=[('clibdoc/data', ['data/Doxyfile.in',
                                  'data/index.html',
                                  'data/main.html',
                                  'data/clibdoc.css'])],
    scripts=['bin/clib-doc'],
)

Simplify installation with package.json info
Simplify installation with package.json info
