Skip to content

Commit

Permalink
fix: add the datashare-python console script
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemDoum committed Dec 23, 2024
1 parent 7c54a35 commit 78cdcb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion datashare_python/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from datashare_python.cli import cli_app

if __name__ == "__main__":

def main():
cli_app()


if __name__ == "__main__":
main()
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "datashare-python"
version = "0.1.0"
version = "0.1.1"
description = "Implement Datashare task in Python"
authors = [
{ name = "Clément Doumouro", email = "cdoumouro@icij.org" },
Expand Down Expand Up @@ -28,6 +28,9 @@ Documentation = "https://icij.github.io/datashare-python/"
Repository = "https://github.com/ICIJ/datashare-python"
Issues = "https://github.com/ICIJ/datashare-python/issues"

[project.scripts]
datashare-python = "datashare_python.__main__:main"

[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
Expand Down

0 comments on commit 78cdcb4

Please sign in to comment.