colout/setup.py
Mantas b7e71fc32f Fixes #88: failed to install with pip
Also this fix includes package version issue, fixed in #87.

In order to generate python package with all the files in it, use this command:

    python setup.py sdist
2017-06-23 11:50:53 +03:00

35 lines
811 B
Python

#!/usr/bin/env python3
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python3 setup.py sdist upload')
sys.exit()
packages = ['colout']
requires = ['argparse', 'pygments', 'babel']
setup(
name='colout',
version='0.5',
description='Color Up Arbitrary Command Output.',
long_description=open('README.md').read(),
author='nojhan',
author_email='nojhan@nojhan.net',
url='http://nojhan.github.com/colout/',
packages=packages,
package_data={'': ['LICENSE', 'README.md']},
package_dir={'colout': 'colout'},
scripts=['bin/colout'],
include_package_data=True,
install_requires=requires,
license=open('LICENSE').read(),
zip_safe=False,
)