diff --git a/HISTORY.rst b/HISTORY.rst index 1a387a2..e81ee77 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,11 @@ ======= History ======= + +0.9.1 (2019-02-22) +------------------ + +* Have deprecation warnings point to correct code locations 0.9.0 (2018-12-07) ------------------ diff --git a/procrunner/__init__.py b/procrunner/__init__.py index da78547..eb7c290 100644 --- a/procrunner/__init__.py +++ b/procrunner/__init__.py @@ -53,7 +53,7 @@ __author__ = """Markus Gerstel""" __email__ = "scientificsoftware@diamond.ac.uk" -__version__ = "0.9.0" +__version__ = "0.9.1" logger = logging.getLogger("procrunner") logger.addHandler(logging.NullHandler()) @@ -516,7 +516,9 @@ def run_process_dummy(command, **kwargs): """A stand-in function that returns a valid result dictionary indicating a successful execution. The external process is not run.""" - warnings.warn("procrunner.run_process_dummy() is deprecated", DeprecationWarning) + warnings.warn( + "procrunner.run_process_dummy() is deprecated", DeprecationWarning, stacklevel=2 + ) time_start = time.strftime("%Y-%m-%d %H:%M:%S GMT", time.gmtime()) logger.info("run_process is disabled. Requested command: %s", command) @@ -543,5 +545,6 @@ warnings.warn( "procrunner.run_process() is deprecated and has been renamed to run()", DeprecationWarning, + stacklevel=2, ) return run(*args, **kwargs) diff --git a/setup.cfg b/setup.cfg index 160c03c..e12a46b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.9.0 +current_version = 0.9.1 commit = True tag = True diff --git a/setup.py b/setup.py index ea3acc0..58d55b0 100644 --- a/setup.py +++ b/setup.py @@ -56,6 +56,6 @@ test_suite="tests", tests_require=test_requirements, url="https://github.com/DiamondLightSource/python-procrunner", - version="0.9.0", + version="0.9.1", zip_safe=False, )