Skip to content

Commit

Permalink
Merge pull request #46 from dvklopfenstein/dvk
Browse files Browse the repository at this point in the history
Move script modules into new pmidcite.script
  • Loading branch information
dvklopfenstein authored Dec 5, 2022
2 parents c13a9c5 + 7413664 commit 2092699
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Summary

* [**Unreleased**](#unreleased)
* [**Release 2022-11-26 v0.0.38**](#release-2022-11-28-v0039) pip3, not pip from Python2
* [**Release 2022-11-26 v0.0.38**](#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
Expand Down Expand Up @@ -41,9 +41,9 @@

### Unreleased

### release 2022-11-29 v0.0.39
### release 2022-11-29 v0.0.40
* ADDED `icite` to new package module, pmidcite.scripts
* CHANGED `pip install .` to `pip3 install .` in makefile and README.md
* ADDED `src` and `src.bin` to package modules

### release 2022-11-26 v0.0.38
* ADDED instructions for loading locally to README.md [#43](https://github.com/dvklopfenstein/pmidcite/issues/43)
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
'pmidcite.eutils.pubmed.counts',
'pmidcite.icite',
'pmidcite.icite.dnldr',
'pmidcite.scripts',
'pmidcite.plot',
'src',
'src.bin',
]

PACKAGE_DIRS = {p:join('src', *p.split('.')) for p in PACKAGES}


def get_long_description():
"""Return the contents of the README.md as a string"""
dir_cur = abspath(dirname(__file__))
Expand All @@ -42,7 +42,7 @@ def get_long_description():
setup(
name=NAME,
## version=versioneer.get_version(),
version='0.0.39',
version='0.0.40',
author='DV Klopfenstein, PhD',
author_email='[email protected]',
## cmdclass=versioneer.get_cmdclass(),
Expand All @@ -54,7 +54,7 @@ def get_long_description():
scripts=glob('src/bin/*.py'),
entry_points={
'console_scripts':[
'icite=src.bin.icite:main',
'icite=pmidcite.scripts.icite:main',
],
},
# https://pypi.org/classifiers/
Expand Down
2 changes: 1 addition & 1 deletion src/pmidcite/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version of pmidcite project"""

__version__ = '0.0.39'
__version__ = '0.0.40'
1 change: 1 addition & 0 deletions src/pmidcite/scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Scripts"""
15 changes: 15 additions & 0 deletions src/pmidcite/scripts/icite.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""Given a PubMed ID (PMID), return a list of citing publications"""

__copyright__ = "Copyright (C) 2019-present, DV Klopfenstein. All rights reserved."
__author__ = "DV Klopfenstein"

from pmidcite.cli.icite import NIHiCiteCli # get_argparser
from pmidcite.cfg import get_cfgparser


def main():
"""Print NIH citation data for requested papers specified with PubMedIDs (PMIDs)"""
NIHiCiteCli(get_cfgparser(prt=None)).cli()


# Copyright (C) 2019-present, DV Klopfenstein. All rights reserved.

0 comments on commit 2092699

Please sign in to comment.