From 26fbba3c216283f3f34e5d9e939b3c7e0f600f93 Mon Sep 17 00:00:00 2001 From: dvklopfenstein Date: Tue, 6 Dec 2022 10:09:20 -0500 Subject: [PATCH 1/2] If arg is "all," return all indices of PubMed queries --- src/pmidcite/pubmedqueryicite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pmidcite/pubmedqueryicite.py b/src/pmidcite/pubmedqueryicite.py index a11166a..ea0af73 100644 --- a/src/pmidcite/pubmedqueryicite.py +++ b/src/pmidcite/pubmedqueryicite.py @@ -92,6 +92,8 @@ def get_index(argv, queries=None): # If no argument was provided, run the last query in the list if len(argv) == 1: return [-1] + if argv[1] == 'all' and queries is not None: + return list(range(len(queries))) if 'h' in argv[1] and queries: for idx, item in enumerate(queries): print('{I:3} {E}'.format(I=idx, E=item)) From f7b88bcf53688d78be46030abeb3a20776457eb0 Mon Sep 17 00:00:00 2001 From: dvklopfenstein Date: Tue, 6 Dec 2022 10:47:38 -0500 Subject: [PATCH 2/2] v0.0.41 --- CHANGELOG.md | 8 ++++++-- setup.py | 2 +- src/pmidcite/__version__.py | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd245e4..2881971 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,8 @@ ## Summary * [**Unreleased**](#unreleased) -* [**Release 2022-11-26 v0.0.38**](#release-2022-11-28-v0040) Added pmidcite.scripts.icite; pip3, not pip from Python2 +* [**Release 2022-12-06 v0.0.41**](#release-2022-12-06-v0041) setup.py updates for make target, install +* [**Release 2022-11-26 v0.0.40**](#release-2022-11-28-v0040) Added pmidcite.scripts.icite; pip3, not pip from Python2 * [**Release 2022-11-26 v0.0.38**](#release-2022-11-26-v0038) Added instructions, and console_script to run script, icite * [**Release 2022-09-27 v0.0.37**](#release-2022-09-27-v0037) Remove unused package in setup.py * [**Release 2022-07-03 v0.0.36**](#release-2022-07-03-v0036) Change citation count on GitHub repo card @@ -41,7 +42,10 @@ ### Unreleased -### release 2022-11-29 v0.0.40 +### release 2022-12-06 v0.0.41 +* CHANGED setup.py PACKAGES variable to run install make target + +### release 2022-11-28 v0.0.40 * ADDED `icite` to new package module, pmidcite.scripts * CHANGED `pip install .` to `pip3 install .` in makefile and README.md diff --git a/setup.py b/setup.py index 69436ea..6eab562 100755 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ def get_long_description(): setup( name=NAME, ## version=versioneer.get_version(), - version='0.0.40', + version='0.0.41', author='DV Klopfenstein, PhD', author_email='dvklopfenstein@protonmail.com', ## cmdclass=versioneer.get_cmdclass(), diff --git a/src/pmidcite/__version__.py b/src/pmidcite/__version__.py index 8b5a501..4705298 100644 --- a/src/pmidcite/__version__.py +++ b/src/pmidcite/__version__.py @@ -1,3 +1,3 @@ """Version of pmidcite project""" -__version__ = '0.0.40' +__version__ = '0.0.41'