From 337fc014b35b1cc30b5fec0454212d0e9b1238ad Mon Sep 17 00:00:00 2001 From: Savita Karthikeyan Date: Mon, 22 Jan 2024 15:11:56 +0000 Subject: [PATCH 1/2] Trim requirements in setup.cfg Closes #110 --- setup.cfg | 3 --- 1 file changed, 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 0c37b84..9bcb78a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,11 +35,8 @@ install_requires = panel diskcache hvplot - xarray datashader tskit - seaborn - pytest tszip appdirs setup_requires = From ee0f40f83b3a1eaa2cca1a3a7a48b3ed54c0f83e Mon Sep 17 00:00:00 2001 From: Savita Karthikeyan Date: Mon, 22 Jan 2024 16:12:18 +0000 Subject: [PATCH 2/2] Specify tsqc/pages as a package Set __version__ Closes #111 --- setup.cfg | 4 ++-- tsqc/__init__.py | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 9bcb78a..4d8039b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,7 +27,7 @@ keywords = quality control [options] -packages = tsqc +packages = tsqc, tsqc.pages python_requires = >=3.8 install_requires = click @@ -40,7 +40,7 @@ install_requires = tszip appdirs setup_requires = - setuptools + setuptools_scm [tool:pytest] testpaths = diff --git a/tsqc/__init__.py b/tsqc/__init__.py index e69de29..0371aec 100644 --- a/tsqc/__init__.py +++ b/tsqc/__init__.py @@ -0,0 +1,7 @@ +__version__ = "undefined" +try: + from . import _version + + __version__ = _version.version +except ImportError: + pass