diff options
-rw-r--r-- | autotiling/__about__.py | 10 | ||||
-rw-r--r-- | autotiling/__init__.py | 4 | ||||
-rw-r--r-- | setup.cfg | 5 |
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__"] @@ -30,3 +30,8 @@ python_requires = >=3.6 setup_requires = setuptools>=42 wheel + + +[options.entry_points] +console_scripts = + autotiling = autotiling.main:main |