diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 2e469c2..4254a3f 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -24,6 +24,10 @@ jobs: python -m pip install --upgrade pip pip install -r docs/requirements.txt + - name: List directory structure + run: | + ls -R docs/ + - name: Build Documentation with Sphinx run: | cd docs @@ -31,8 +35,8 @@ jobs: env: READTHEDOCS: 'True' - - name: Upload Artifacts - uses: actions/upload-artifact@v4 - with: - name: Documentation - path: docs/_build/html/ + # - name: Upload Artifacts + # uses: actions/upload-artifact@v4 + # with: + # name: Documentation + # path: docs/_build/html/ diff --git a/dist/.keep b/dist/.keep new file mode 100644 index 0000000..818fb5a --- /dev/null +++ b/dist/.keep @@ -0,0 +1 @@ +This is a placeholder for this folder. diff --git a/docs/source/conf.py b/docs/source/conf.py index 12f386c..8f834c2 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -5,16 +5,16 @@ import os import sys +from dataanalysistoolkit import __version__, __author__ sys.path.insert(0, os.path.abspath('../../src/')) -from dataanalysistoolkit import __version__ # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information project = 'Data Analysis Toolkit' copyright = '2024, Thaddeus Thomas' -author = 'Thaddeus Thomas' +author = __author__ release = __version__ version = __version__ @@ -47,10 +47,10 @@ html_sidebars = { '**': [ 'about.html', + 'donate.html', 'navigation.html', 'relations.html', 'searchbox.html', - 'donate.html', ] } diff --git a/src/dataanalysistoolkit/__init__.py b/src/dataanalysistoolkit/__init__.py index dbf3f5f..2a36e0b 100644 --- a/src/dataanalysistoolkit/__init__.py +++ b/src/dataanalysistoolkit/__init__.py @@ -39,7 +39,6 @@ # Dependency checks required_packages = { - "backports.tarfile": "1.1.1", "certifi": "2024.2.2", "charset-normalizer": "3.3.2", "click": "8.1.7", @@ -95,7 +94,9 @@ for lib, version in required_packages.items(): try: pkg = __import__(lib) - if pkg.__version__ < version: + # Safely get the version or None if not available + pkg_version = getattr(pkg, '__version__', None) + if not pkg_version or pkg_version < version: missing_packages.append(f"{lib}>= {version}") except ImportError: missing_packages.append(f"{lib}>= {version}")