aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--autotiling/__about__.py10
-rw-r--r--autotiling/__init__.py4
-rw-r--r--setup.cfg5
3 files changed, 19 insertions, 0 deletions
diff --git a/autotiling/__about__.py b/autotiling/__about__.py
new file mode 100644
index 0000000..647d8a7
--- /dev/null
+++ b/autotiling/__about__.py
@@ -0,0 +1,10 @@
+try:
+ # Python 3.8
+ from importlib import metadata
+except ImportError:
+ import importlib_metadata as metadata
+
+try:
+ __version__ = metadata.version("autotiling")
+except Exception:
+ __version__ = "unknown"
diff --git a/autotiling/__init__.py b/autotiling/__init__.py
new file mode 100644
index 0000000..106e681
--- /dev/null
+++ b/autotiling/__init__.py
@@ -0,0 +1,4 @@
+from main import main
+from __about__ import __version__
+
+__all__ = ["main", "__version__"]
diff --git a/setup.cfg b/setup.cfg
index 9ff2643..0eec21d 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -30,3 +30,8 @@ python_requires = >=3.6
setup_requires =
setuptools>=42
wheel
+
+
+[options.entry_points]
+console_scripts =
+ autotiling = autotiling.main:main