Skip to content
Merged

Dev #20

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,19 @@ 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
make html
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/
1 change: 1 addition & 0 deletions dist/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a placeholder for this folder.
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__

Expand Down Expand Up @@ -47,10 +47,10 @@
html_sidebars = {
'**': [
'about.html',
'donate.html',
'navigation.html',
'relations.html',
'searchbox.html',
'donate.html',
]
}

Expand Down
5 changes: 3 additions & 2 deletions src/dataanalysistoolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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}")
Expand Down