Skip to content

Commit

Permalink
fix entrypoint pointing to main
Browse files Browse the repository at this point in the history
  • Loading branch information
EnriqueSoria committed Nov 1, 2022
1 parent 5b82495 commit beb77e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ click = "^8.1.3"
[tool.poetry.dev-dependencies]

[tool.poetry.scripts]
update_django_environ_sample = "update_django_environ_sample"
update_django_environ_sample = "update_django_environ_sample:main"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
6 changes: 5 additions & 1 deletion update_django_environ_sample/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,9 @@ def generate_env_sample(*, environment_defaults_path: str, output: str, defaults
f.write(text)


if __name__ == "__main__":
def main():
generate_env_sample()


if __name__ == "__main__":
main()

0 comments on commit beb77e5

Please sign in to comment.