diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ceca4e0..0234458 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,13 @@ Changelog ========= +0.2.2 +----- + +*Date: 2022-05-19* + +* Fix issues with setup + 0.2.1 ----- diff --git a/setup.py b/setup.py index 75afc02..45eba65 100755 --- a/setup.py +++ b/setup.py @@ -5,13 +5,13 @@ PROJ_METADATA = '%s.json' % PROJ_NAME -import os, json, imp +import os, json, importlib here = os.path.abspath(os.path.dirname(__file__)) proj_info = json.loads(open(os.path.join(here, PROJ_METADATA)).read()) -README = open(os.path.join(here, 'README.rst')).read() -CHANGELOG = open(os.path.join(here, 'CHANGELOG.rst')).read() -VERSION = imp.load_source('version', os.path.join(here, 'src/%s/version.py' % PACKAGE_NAME)).__version__ +README = open(os.path.join(here, "README.rst"), encoding="utf-8").read() +CHANGELOG = open(os.path.join(here, "CHANGELOG.rst"), encoding="utf-8").read() +VERSION = importlib.import_module(name="src.%s.version" % PACKAGE_NAME).__version__ from setuptools import setup, find_packages setup( diff --git a/src/romkan/version.py b/src/romkan/version.py index 2bebf5d..e378ea5 100644 --- a/src/romkan/version.py +++ b/src/romkan/version.py @@ -1,3 +1,3 @@ #!/usr/bin/env python -__version__ = '0.2.1' +__version__ = "0.2.2"