summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-09-11 16:51:53 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-09-11 16:51:53 +0200
commitd61eb48cf8077121e823ba550a001674a0409c83 (patch)
tree47bff8d15f58b1f2335b0a3b05155798bf37ce74
parent1563817f1fc2d0c826c20c7baa56dc0f3fb9d324 (diff)
Create entry point
-rw-r--r--esds/__init__.py1
-rw-r--r--pyproject.toml3
-rw-r--r--setup.cfg4
3 files changed, 8 insertions, 0 deletions
diff --git a/esds/__init__.py b/esds/__init__.py
index 4ef2e06..9913200 100644
--- a/esds/__init__.py
+++ b/esds/__init__.py
@@ -3,4 +3,5 @@ __version__ = "0.0.1"
from esds.simulator import Simulator
from esds.rcode import RCode
+from esds.__main__ import main
diff --git a/pyproject.toml b/pyproject.toml
index d8682e5..87f7e43 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -12,3 +12,6 @@ packages = ["esds"]
[tool.setuptools.dynamic]
version = {attr = "esds.__version__"}
+
+[project.scripts]
+esds = "esds:main" \ No newline at end of file
diff --git a/setup.cfg b/setup.cfg
index b8545b8..4004842 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -7,6 +7,10 @@ description = Extensible Simulator of Distributed Systems
keywords = simulator, distributed systems, cyber-physical systems, network, wireless, wired
license = GNU LGPLv3
+[options.entry_points]
+console_scripts =
+ esds = esds:main
+
[options]
install_requires =
numpy