From d7732f2f0eab578b8f99f791f0c09f1554aa113a Mon Sep 17 00:00:00 2001 From: Niru Maheswaranathan Date: Thu, 25 May 2017 12:04:47 -0700 Subject: [PATCH] Explicit unpacking of metadata in setup.py for 2.7/3.4 support --- .travis.yml | 1 + metadata.py | 2 +- setup.py | 12 ++++++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ccb0641..a5cd9b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ python: - "2.7" - "3.4" - "3.5" + - "3.6" install: - sudo apt-get update - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then diff --git a/metadata.py b/metadata.py index d0d0ed3..3ac26a5 100644 --- a/metadata.py +++ b/metadata.py @@ -1,6 +1,6 @@ # Version info __name__ = 'tableprint' -__version__ = '0.6.5' +__version__ = '0.6.6' __license__ = 'MIT' # Project description(s) diff --git a/setup.py b/setup.py index b1880ee..00d1be5 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,16 @@ with open('metadata.py', 'r') as f: setup( + name=metadata['name'], + url=metadata['url'], + version=metadata['version'], + + author=metadata['author'], + author_email=metadata['author_email'], + + license=metadata['license'], + + description=metadata['description'], long_description='''Formatted console printing of tabular data. tableprint lets you easily print formatted tables of data. Unlike other modules, you can print single rows of data at a time @@ -56,6 +66,4 @@ setup( 'dev': [], 'test': ['pytest', 'coverage'], }, - - **metadata, )