From 6341c701005e52671ed3ae48751e3c97f1c413dc Mon Sep 17 00:00:00 2001 From: Nicholas Car Date: Mon, 13 Sep 2021 22:19:58 +1000 Subject: [PATCH] fix README images; setup.py verison acquisition --- CHANGELOG.rst | 8 ++++++++ README.rst | 3 ++- owlrl/__init__.py | 2 +- pypi.txt | 2 ++ setup.py | 2 +- 5 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 pypi.txt diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 9d2c306..2e13ee2 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,14 @@ Changelog --------- +v5.2.3 +~~~~~~ + +Changes: + +* fix README image display +* fix version acquisition in setup.py + v5.2.2 ~~~~~~ diff --git a/README.rst b/README.rst index 91a4d6d..3e7964b 100644 --- a/README.rst +++ b/README.rst @@ -8,7 +8,8 @@ .. |PyPI badge| image:: https://badge.fury.io/py/owlrl.svg :target: https://badge.fury.io/py/owlrl -.. |OWL-RL Logo| image:: OWL-RL-250.png +.. |OWL-RL Logo| image:: https://raw.githubusercontent.com/RDFLib/OWL-RL/master/OWL-RL.png + :width: 250 :target: http://owl-rl.readthedocs.io/ diff --git a/owlrl/__init__.py b/owlrl/__init__.py index 7223b87..e00e893 100755 --- a/owlrl/__init__.py +++ b/owlrl/__init__.py @@ -158,7 +158,7 @@ """ # Examples: LangString is disjoint from String -__version__ = "5.2.2" +__version__ = "5.2.3" __author__ = "Ivan Herman" __contact__ = "Ivan Herman, ivan@w3.org" __license__ = "W3C® SOFTWARE NOTICE AND LICENSE, http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231" diff --git a/pypi.txt b/pypi.txt new file mode 100644 index 0000000..22298ca --- /dev/null +++ b/pypi.txt @@ -0,0 +1,2 @@ +rm -r .pytest_cache build dist owlrl.egg-info + diff --git a/setup.py b/setup.py index 553a579..621d1f5 100755 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ def open_local(paths, mode="r", encoding="utf8"): with open_local(["owlrl", "__init__.py"], encoding="utf-8") as fp: try: - version = re.findall(r"^__version__ = '([^']+)'\r?$", fp.read(), re.M)[0] + version = re.findall(r'^__version__ = "([^"]+)"\r?$', fp.read(), re.M)[0] except IndexError: raise RuntimeError("Unable to determine version.")