Skip to content

Commit

Permalink
Create vanity CLI
Browse files Browse the repository at this point in the history
This uses entrypoints to create a vanity CLI, so rather than needing to do `python -m scholia ...`, you can just do `scholia ...`. To test this code, you must reinstall Scholia, entrypoints do not get updated on editable installations without doing `pip install .` or `pip install -e .` again.
  • Loading branch information
cthoyt authored Oct 3, 2022
1 parent 336c94e commit 798298f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@
],
tests_require=['pytest', 'flake8'],
version=versioneer.get_version(),
entry_points={
"console_scripts": [
"scholia = scholia.__main__:main",
],
},
)

0 comments on commit 798298f

Please sign in to comment.