From b7e71fc32f788cf2a6455d33334649350347f6e6 Mon Sep 17 00:00:00 2001 From: Mantas Date: Fri, 23 Jun 2017 11:50:53 +0300 Subject: [PATCH 1/2] 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 --- MANIFEST.in | 2 ++ setup.py | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..04f196a --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include README.md +include LICENSE diff --git a/setup.py b/setup.py index 6af0562..3c4d90a 100644 --- a/setup.py +++ b/setup.py @@ -3,8 +3,6 @@ import os import sys -import colout - try: from setuptools import setup except ImportError: @@ -20,14 +18,14 @@ requires = ['argparse', 'pygments', 'babel'] setup( name='colout', - version='0.1', + 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']}, + package_data={'': ['LICENSE', 'README.md']}, package_dir={'colout': 'colout'}, scripts=['bin/colout'], include_package_data=True, From 4a66a2976103f8c14fad36c20142ab6ae943d59d Mon Sep 17 00:00:00 2001 From: Mantas Date: Fri, 23 Jun 2017 12:57:05 +0300 Subject: [PATCH 2/2] Do not include whole licence text into licence field In setup.py, licence field should be short licence abbreviation, not a full licence text. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3c4d90a..bd67df0 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,6 @@ setup( scripts=['bin/colout'], include_package_data=True, install_requires=requires, - license=open('LICENSE').read(), + license='GPLv3', zip_safe=False, )