From 28266f4ac1233a56b22a3ae384985bc6efc5b169 Mon Sep 17 00:00:00 2001 From: lruizcalico Date: Mon, 11 Dec 2023 20:46:55 -0800 Subject: [PATCH 1/2] automate gen doc --- .github/workflows/documentation.yml | 19 ++++++++++++++++--- src/baskerville/helpers/__init__.py | 0 src/baskerville/scripts/__init__.py | 0 src/docs/requirements.txt | 23 +++++++++++++++++++++-- src/docs/source/conf.py | 5 +++++ 5 files changed, 42 insertions(+), 5 deletions(-) create mode 100644 src/baskerville/helpers/__init__.py create mode 100644 src/baskerville/scripts/__init__.py diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index bb21740..e91383b 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -2,6 +2,11 @@ name: Baskerville Docs on: workflow_dispatch: + inputs: + python-version: + default: "3.10" + required: false + type: string defaults: run: @@ -11,12 +16,20 @@ permissions: contents: write jobs: docs: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 + strategy: + matrix: + python-version: ["3.10"] steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + # You can test your matrix by printing the current Python version + - name: Display Python version + run: python -c "import sys; print(sys.version)" - name: Install dependencies run: | cd ${{ github.workspace }}/src/docs diff --git a/src/baskerville/helpers/__init__.py b/src/baskerville/helpers/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/baskerville/scripts/__init__.py b/src/baskerville/scripts/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/docs/requirements.txt b/src/docs/requirements.txt index f654e6e..8d2f592 100644 --- a/src/docs/requirements.txt +++ b/src/docs/requirements.txt @@ -1,4 +1,23 @@ +h5py~=3.7.0 +intervaltree~=3.1.0 +joblib~=1.1.1 +matplotlib~=3.7.1 +google-cloud-storage~=2.0.0 +natsort~=7.1.1 +networkx~=2.8.4 +numpy +pandas~=1.5.3 +pybigwig~=0.3.18 +pysam~=0.21.0 +pybedtools~=0.9.0 +qnorm~=0.8.1 +seaborn~=0.12.2 +scikit-learn~=1.2.2 +scipy~=1.9.1 sphinx sphinx_rtd_theme -python-dotenv -google \ No newline at end of file +sphinxcontrib-apidoc +statsmodels~=0.13.5 +tensorflow==2.13.0 +tabulate~=0.8.10 +tqdm~=4.65.0 \ No newline at end of file diff --git a/src/docs/source/conf.py b/src/docs/source/conf.py index 319b105..cea225c 100644 --- a/src/docs/source/conf.py +++ b/src/docs/source/conf.py @@ -10,6 +10,10 @@ # This root should be where docs folder is visible. sys.path.insert(0, os.path.abspath("../..")) +sys.path.insert(0, os.path.abspath("../../baskerville")) +sys.path.insert(0, os.path.abspath("../../baskerville/scripts")) +sys.path.insert(0, os.path.abspath("../../bashkerville/helpers")) + sys.setrecursionlimit(1500) project = "baskerville" @@ -25,6 +29,7 @@ "sphinx.ext.viewcode", "sphinx.ext.napoleon", "sphinx.ext.githubpages", + "sphinxcontrib.apidoc", ] templates_path = ["_templates"] From b8835b6806d58337f109e360b9e6e4ab68b31db9 Mon Sep 17 00:00:00 2001 From: lruizcalico Date: Mon, 11 Dec 2023 20:52:50 -0800 Subject: [PATCH 2/2] fix req --- setup.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 52b40dc..cb2a2f0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,7 +35,6 @@ install_requires = seaborn~=0.12.2 scikit-learn~=1.2.2 scipy~=1.9.1 - sphinx~=7.2.6 statsmodels~=0.13.5 tabulate~=0.8.10 tensorflow==2.13.0