mirror of
https://github.com/KevinMidboe/tableprint.git
synced 2025-10-29 01:40:17 +00:00
Better reading of path to metadata.py file in setup.py
This commit is contained in:
@@ -49,7 +49,7 @@ Hosted at Read The Docs: [tableprint.readthedocs.org](http://tableprint.readthed
|
||||
- `six`
|
||||
|
||||
## Version
|
||||
- 0.6.6 (May 25 2017) Fixes some bugs with ANSI escape sequences
|
||||
- 0.6.7 (May 25 2017) Fixes some bugs with ANSI escape sequences
|
||||
- 0.5.0 (Sept 29 2016) Better handling of ANSI escape sequences in table rows
|
||||
- 0.4.0 (May 3 2016) Adds a 'block' style
|
||||
- 0.3.2 (May 3 2016) Adds a test suite
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Version info
|
||||
__name__ = 'tableprint'
|
||||
__version__ = '0.6.6'
|
||||
__version__ = '0.6.7'
|
||||
__license__ = 'MIT'
|
||||
|
||||
# Project description(s)
|
||||
|
||||
4
setup.py
4
setup.py
@@ -1,8 +1,10 @@
|
||||
import re
|
||||
import os
|
||||
from setuptools import setup
|
||||
|
||||
|
||||
with open('metadata.py', 'r') as f:
|
||||
__location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
|
||||
with open(os.path.join(__location__, 'metadata.py'), 'r') as f:
|
||||
metadata = dict(re.findall("__([a-z_]+)__\s*=\s*'([^']+)'", f.read()))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user