Skip to content

Commit

Permalink
Correct entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
radiac committed Oct 12, 2019
1 parent 61ac873 commit c7672ea
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ To run tests::
Changelog
=========

0.0.3, 2019-10-12
-----------------

Bugfix:

* Correct entrypoint


0.0.2, 2019-09-25
-----------------

Expand Down
2 changes: 1 addition & 1 deletion serac/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.0.2"
VERSION = "0.0.3"
4 changes: 2 additions & 2 deletions serac/__main__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
Invoke the command line when called directly
"""
from .commands import cli
from .commands import invoke


if __name__ == "__main__":
cli(obj={}, prog_name="serac")
invoke()
7 changes: 7 additions & 0 deletions serac/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,10 @@ def cmd_restore(
raise click.ClickException(f"Path not found")

database.disconnect()


def invoke():
"""
Invoke the command cli
"""
cli(obj={}, prog_name="serac")
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

from setuptools import find_packages, setup


VERSION = "0.0.2"
from serac import VERSION


def read(fname):
Expand Down Expand Up @@ -54,5 +53,5 @@ def read(fname):
zip_safe=True,
packages=find_packages(exclude=("docs", "tests*")),
include_package_data=True,
entry_points={"console_scripts": ["serac=serac.commands:cli"]},
entry_points={"console_scripts": ["serac=serac.commands:invoke"]},
)

0 comments on commit c7672ea

Please sign in to comment.