# -*- coding: utf-8 -*-
from setuptools import setup, find_packages

try:
    long_description = open("README.md").read()
except IOError:
    long_description = ""

setup(
    name="vania",
    version="0.1.0",
    description="A module to fairly distribute objects among targets considering weights.",
    license="MIT",
    author="Hackathonners",
    packages=find_packages(),
    install_requires=[
        'pulp',
    ],
    package_dir={'': '.'},
    long_description=long_description,
    classifiers=[
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
    ],
    test_suite='nose.collector',
    tests_require=['nose'],
)

# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import setuptools.command.build_py
import subprocess


class GenDocsCommand(setuptools.command.build_py.build_py):

    """Command to generate docs."""

    def run(self):
        subprocess.Popen(
            ['pdoc', '--html', 'vania/fair_distributor.py', '--html-dir=docs/', '--overwrite'])
        setuptools.command.build_py.build_py.run(self)

try:
    long_description = open("README.md").read()
except IOError:
    long_description = ""

setup(
    name="vania",
    version="0.1.0",
    description="A module to fairly distribute objects among targets considering weights.",
    license="MIT",
    author="Hackathonners",
    packages=find_packages(),
    install_requires=[
        'pulp',
        'pdoc'
    ],
    package_dir={'': '.'},
    long_description=long_description,
    classifiers=[
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
    ],
    test_suite='nose.collector',
    tests_require=['nose'],
    cmdclass={
        'gendocs': GenDocsCommand
    },
)

Add command to generate docs
Add command to generate docs
