Skip to content

Commit

Permalink
Have version in setup file pull from library
Browse files Browse the repository at this point in the history
  • Loading branch information
jwlodek committed Oct 29, 2020
1 parent 9cac7ea commit f8d6e31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py_cui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@


# Version number
__version__ = '0.1.2'
__version__ = '0.1.3'


def fit_text(width, text, center=False):
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import setuptools
from sys import platform
import py_cui

py_cui_version = py_cui.__version__

# Use README for long description
with open('README.md', 'r') as readme_fp:
Expand All @@ -16,7 +18,7 @@
description='A widget and grid based framework for building command line user interfaces in python.',
long_description=long_description,
long_description_content_type='text/markdown',
version='0.1.2',
version=py_cui_version,
author='Jakub Wlodek',
author_email='[email protected]',
license='BSD (3-clause)',
Expand Down

0 comments on commit f8d6e31

Please sign in to comment.