Skip to content

Commit

Permalink
Fix ReadTheDocs build (#374)
Browse files Browse the repository at this point in the history
* Build docs dix

* Update main-deploy-docs.yml

* Beta version

* Get version correctly in docs

* Update main-deploy-docs.yml

* Version bump
  • Loading branch information
alexander-veit committed Oct 31, 2022
1 parent a1759c7 commit 1704fc8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ jobs:
- name: Docs
env:
DOCS_TOKEN: ${{ secrets.DOCS_TOKEN }}
TIBANNA_VERSION: 2.2.1
run: curl -X POST -d "branches=master" -d "token=$DOCS_TOKEN" https://readthedocs.org/api/v2/webhook/tibanna/141616/

12 changes: 10 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

# import sys
# import os
from tibanna._version import __version__

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -68,7 +67,16 @@ def _read(*parts, **kwargs):
return text


version = __version__
def get_version():
specs = open("../pyproject.toml").readlines()
for spec in specs:
if "version =" in spec:
return spec.split("\"")[1]
return "0.0.0"


version = get_version()

# The full version, including alpha/beta/rc tags.
release = version

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tibanna"
version = "2.2.2"
version = "2.2.3"
description = "Tibanna runs portable pipelines (in CWL/WDL) on the AWS Cloud."
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
Expand Down

0 comments on commit 1704fc8

Please sign in to comment.