From 15889a7184601ebf7a8f1bdaaa854a47a5391616 Mon Sep 17 00:00:00 2001 From: bel_shazzar Date: Thu, 19 May 2022 22:03:58 +0200 Subject: [PATCH 1/4] Fix deprecation warning and encooding problem --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 75afc02..9a6887c 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() +README = open(os.path.join(here, "README.rst"), encoding="utf-8").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__ +VERSION = importlib.import_module(name="src.%s.version" % PACKAGE_NAME).__version__ from setuptools import setup, find_packages setup( From 3049b701528d40af00d32bef49ea5beeb877b946 Mon Sep 17 00:00:00 2001 From: bel_shazzar Date: Thu, 19 May 2022 22:05:36 +0200 Subject: [PATCH 2/4] Update version --- src/romkan/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 9a10753f57f0570b238732f6dca03b31ab2afe11 Mon Sep 17 00:00:00 2001 From: bel_shazzar Date: Thu, 19 May 2022 22:12:16 +0200 Subject: [PATCH 3/4] Encode changelog correctly --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9a6887c..45eba65 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ 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"), encoding="utf-8").read() -CHANGELOG = open(os.path.join(here, 'CHANGELOG.rst')).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 From 411ad7aadc3d39a46ee271ffbee7697f0a25e1e7 Mon Sep 17 00:00:00 2001 From: bel_shazzar Date: Thu, 19 May 2022 22:13:55 +0200 Subject: [PATCH 4/4] Update changelog --- CHANGELOG.rst | 7 +++++++ 1 file changed, 7 insertions(+) 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 -----