From ad368295ddd127e14df61bd2cd200995594c4604 Mon Sep 17 00:00:00 2001 From: Jamie Saxon Date: Thu, 13 Apr 2023 15:25:17 -0400 Subject: [PATCH 1/2] do @jGaboardi's fix for versioning release --- tools/gitcount.ipynb | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/tools/gitcount.ipynb b/tools/gitcount.ipynb index 558075c..d025ee3 100644 --- a/tools/gitcount.ipynb +++ b/tools/gitcount.ipynb @@ -132,10 +132,16 @@ "outputs": [], "source": [ "# get __version__\n", - "f = \"../{package}/__init__.py\".format(package=package_name)\n", - "\n", - "with open(f, \"r\") as initfile:\n", - " exec(initfile.readline())" + "%run ../access/_version.py" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "__version__ = get_versions()[\"version\"]" ] }, { @@ -713,9 +719,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python [conda env:py39_libpysal]", + "display_name": "Python 3", "language": "python", - "name": "conda-env-py39_libpysal-py" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -727,7 +733,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.9" + "version": "3.8.8" } }, "nbformat": 4, From 015e8bb25bb693b2b6fea19ca295fdbf91d4467f Mon Sep 17 00:00:00 2001 From: Jamie Saxon Date: Thu, 13 Apr 2023 15:27:09 -0400 Subject: [PATCH 2/2] but do not change the python version of the notebook --- tools/gitcount.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/gitcount.ipynb b/tools/gitcount.ipynb index d025ee3..61ceb91 100644 --- a/tools/gitcount.ipynb +++ b/tools/gitcount.ipynb @@ -719,9 +719,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python [conda env:py39_libpysal]", "language": "python", - "name": "python3" + "name": "conda-env-py39_libpysal-py" }, "language_info": { "codemirror_mode": { @@ -733,7 +733,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.8" + "version": "3.9.9" } }, "nbformat": 4,