-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
44 lines (38 loc) · 1.09 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- 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/', '--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.2.0",
description="A module to fairly distribute objects among targets considering weights.",
license="MIT",
author="Hackathonners",
author_email="contact@hackathonners.org",
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
},
)