From 76189decde9684308325f326061fb830d6996074 Mon Sep 17 00:00:00 2001 From: perillaroc Date: Sat, 29 Feb 2020 10:53:43 +0800 Subject: [PATCH] :bookmark: bump to version 0.2.0 --- nwpc_graphics/__init__.py | 2 ++ setup.py | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/nwpc_graphics/__init__.py b/nwpc_graphics/__init__.py index 5f1c03e..2d64620 100644 --- a/nwpc_graphics/__init__.py +++ b/nwpc_graphics/__init__.py @@ -2,6 +2,8 @@ from nwpc_graphics._config import Config, load_config_from_env from nwpc_graphics._logging import get_logger +__version__ = "0.2.0" + nwpc_graphics_config = load_config_from_env() logger = get_logger() diff --git a/setup.py b/setup.py index ce7e47b..ef64977 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,14 @@ -# coding=utf-8 from setuptools import setup, find_packages +import io +import re + +with io.open("nwpc_graphics/__init__.py", "rt", encoding="utf8") as f: + version = re.search(r'__version__ = "(.*?)"', f.read()).group(1) setup( name='nwpc-graphics', - version='0.1.0', + version=version, description='NWPC Graphics project.', long_description=__doc__,