Skip to content

Commit

Permalink
Merge pull request #654 from jGaboardi/update_changelog_notebook
Browse files Browse the repository at this point in the history
access version from pacakge in gitcount
  • Loading branch information
jGaboardi authored Sep 22, 2021
2 parents 075619c + 5e7c288 commit 31c7591
Showing 1 changed file with 32 additions and 20 deletions.
52 changes: 32 additions & 20 deletions tools/gitcount.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2020-10-22T21:36:03.766277Z",
"start_time": "2020-10-22T21:36:03.763668Z"
"end_time": "2021-09-21T20:39:33.196730Z",
"start_time": "2021-09-21T20:39:33.194161Z"
}
},
"outputs": [],
Expand All @@ -45,8 +45,8 @@
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2020-10-22T21:36:04.090911Z",
"start_time": "2020-10-22T21:36:03.768293Z"
"end_time": "2021-09-21T20:39:52.290833Z",
"start_time": "2021-09-21T20:39:52.258721Z"
}
},
"outputs": [],
Expand Down Expand Up @@ -77,8 +77,8 @@
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2020-10-22T21:36:04.434941Z",
"start_time": "2020-10-22T21:36:04.093347Z"
"end_time": "2021-09-21T20:39:53.266567Z",
"start_time": "2021-09-21T20:39:53.111629Z"
}
},
"outputs": [],
Expand All @@ -99,8 +99,8 @@
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2020-10-22T21:36:04.442244Z",
"start_time": "2020-10-22T21:36:04.439905Z"
"end_time": "2021-09-21T20:39:54.680518Z",
"start_time": "2021-09-21T20:39:54.675815Z"
}
},
"outputs": [],
Expand All @@ -114,8 +114,8 @@
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2020-10-22T21:36:04.451770Z",
"start_time": "2020-10-22T21:36:04.443871Z"
"end_time": "2021-09-21T20:39:55.591729Z",
"start_time": "2021-09-21T20:39:55.575390Z"
}
},
"outputs": [],
Expand All @@ -129,8 +129,8 @@
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2020-10-22T21:36:04.459442Z",
"start_time": "2020-10-22T21:36:04.455310Z"
"end_time": "2021-09-21T20:39:56.484646Z",
"start_time": "2021-09-21T20:39:56.475350Z"
}
},
"outputs": [],
Expand All @@ -146,16 +146,28 @@
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2020-10-22T21:36:04.464127Z",
"start_time": "2020-10-22T21:36:04.461553Z"
"end_time": "2021-09-21T20:41:29.379320Z",
"start_time": "2021-09-21T20:41:29.366354Z"
}
},
"outputs": [],
"source": [
"# get __version__\n",
"f = \"../{package}/__init__.py\".format(package=package_name)\n",
"with open(f, 'r') as initfile:\n",
" exec(initfile.readline()) "
"%run ../spaghetti/_version.py"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2021-09-21T20:41:42.275746Z",
"start_time": "2021-09-21T20:41:42.181611Z"
}
},
"outputs": [],
"source": [
"__version__ = get_versions()[\"version\"]"
]
},
{
Expand Down Expand Up @@ -586,9 +598,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:py3_spgh_dev]",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "conda-env-py3_spgh_dev-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -600,7 +612,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
"version": "3.9.7"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 31c7591

Please sign in to comment.