Explicit unpacking of metadata in setup.py for 2.7/3.4 support

This commit is contained in:
Niru Maheswaranathan
2017-05-25 12:04:47 -07:00
parent 2ef7ba6b49
commit d7732f2f0e
3 changed files with 12 additions and 3 deletions

View File

@@ -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

View File

@@ -1,6 +1,6 @@
# Version info
__name__ = 'tableprint'
__version__ = '0.6.5'
__version__ = '0.6.6'
__license__ = 'MIT'
# Project description(s)

View File

@@ -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,
)