Skip to content

Commit

Permalink
add entry point
Browse files Browse the repository at this point in the history
Bunde committed Dec 13, 2018
1 parent e43ee1c commit 0856d68
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion leap_year/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import date

from leap_year import is_leap_year
from leap_year.leap_year import is_leap_year


def main():
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
from setuptools import setup


entry_points = {
"console_scripts": [
"is_leap_year = leap_year.main:main",
],
}


setup(
name="leap_year",
version="1.0.0",
@@ -9,4 +16,5 @@
author_email="stefanbunde+git@gmail.com",

packages=["leap_year"],
entry_points=entry_points,
)

0 comments on commit 0856d68

Please sign in to comment.