coveralls: 
[![Coverage Status](https://coveralls.io/builds/22497490/badge)](https://coveralls.io/builds/22497490)

Coverage remained the same at 100.0% when pulling **4d8ecc412eaf39b83911e68c66db16e2f1e85e67 on added_version_info** into **098cecbe1c1ed8cca92029dbd90f77cc6c0d7673 on master**.

diff --git a/dkey/__init__.py b/dkey/__init__.py
index 266df21..f71a87d 100644
--- a/dkey/__init__.py
+++ b/dkey/__init__.py
@@ -10,6 +10,20 @@ dkey
 ====
 Function to generate deprecated keys.
 
+__version__
+===========
+A string indicating which version of dkey is currently used.
+
+version_info
+============
+A tuple containing the currently used version.
+
 """
 from ._dkey import deprecate_keys as deprecate_keys
 from ._dkey import dkey as dkey
+
+from pbr.version import VersionInfo
+
+_v = VersionInfo('mgen').semantic_version()
+__version__ = _v.release_string()
+version_info = _v.version_tuple()

Dkey should provide version info
It is common practice to provide the version of an installed package via `__version__` etc. This should be added.
diff --git a/tests/test_dkey.py b/tests/test_dkey.py
index fa6ae8d..3105fd0 100644
--- a/tests/test_dkey.py
+++ b/tests/test_dkey.py
@@ -6,6 +6,12 @@ from contextlib import contextmanager
 
 from dkey import deprecate_keys, dkey
 
+class version_test_case(unittest.TestCase):
+    def test_version_string_available(self):
+        import dkey as dk
+        self.assertTrue(hasattr(dk, '__version__'))
+        self.assertTrue(hasattr(dk, 'version_info'))
+
 class dkey_test_case(unittest.TestCase):
     def test_number_of_keys_incorrect(self):
         with self.assertRaises(ValueError):

pip install -e .
parse_log_pytest
requirements.txt
pytest
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
-e git+https://github.com/NOhs/dkey.git@098cecbe1c1ed8cca92029dbd90f77cc6c0d7673#egg=dkey
importlib-metadata==4.8.3
iniconfig==1.1.1
packaging==21.3
pbr==6.1.1
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: dkey
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - packaging==21.3
      - pbr==6.1.1
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/dkey

tests/test_dkey.py::version_test_case::test_version_string_available
tests/test_dkey.py::dkey_test_case::test_number_of_keys_incorrect tests/test_dkey.py::deprecate_keys_test_case::test_added_details tests/test_dkey.py::deprecate_keys_test_case::test_clear tests/test_dkey.py::deprecate_keys_test_case::test_copy tests/test_dkey.py::deprecate_keys_test_case::test_custom_warning_type tests/test_dkey.py::deprecate_keys_test_case::test_del tests/test_dkey.py::deprecate_keys_test_case::test_deprecated_in tests/test_dkey.py::deprecate_keys_test_case::test_developer_warning tests/test_dkey.py::deprecate_keys_test_case::test_empty_mapping tests/test_dkey.py::deprecate_keys_test_case::test_end_user_warning tests/test_dkey.py::deprecate_keys_test_case::test_equality tests/test_dkey.py::deprecate_keys_test_case::test_get tests/test_dkey.py::deprecate_keys_test_case::test_get_default tests/test_dkey.py::deprecate_keys_test_case::test_in tests/test_dkey.py::deprecate_keys_test_case::test_inequality tests/test_dkey.py::deprecate_keys_test_case::test_items tests/test_dkey.py::deprecate_keys_test_case::test_iter tests/test_dkey.py::deprecate_keys_test_case::test_keys tests/test_dkey.py::deprecate_keys_test_case::test_pop tests/test_dkey.py::deprecate_keys_test_case::test_pop_default tests/test_dkey.py::deprecate_keys_test_case::test_popitem tests/test_dkey.py::deprecate_keys_test_case::test_removed_in tests/test_dkey.py::deprecate_keys_test_case::test_removing tests/test_dkey.py::deprecate_keys_test_case::test_replacing tests/test_dkey.py::deprecate_keys_test_case::test_setitem tests/test_dkey.py::deprecate_keys_test_case::test_values tests/test_dkey.py::deprecate_keys_test_case::test_wrong_new_key
dkey/__init__.py
dkey/__init__.py