Skip to content

Commit

Permalink
Fix version number on github pages for sphinx (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche authored Oct 21, 2024
1 parent 53af953 commit 7ce4931
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools
DEPENDENCIES=$(python -c 'from setuptools.config.setupcfg import read_configuration as c; a = c("setup.cfg"); print(" ".join(a["options"]["install_requires"][1:]))')
pip install ${DEPENDENCIES}
DOCDEPENDENCIES=$(python -c 'with open("docs/requirements.txt") as a: available = list(a); print(" ".join(map(lambda x : x.strip(), filter(lambda x : not x.startswith("#"), available))))')
pip install ${DOCDEPENDENCIES}
pip install cmake pybind11 numpy tox
- name: Build docs
run: |
touch src/rds2py/rds_parser.py
sphinx-build --color -b html -d docs/doctrees docs docs/_build/html
python setup.py build_ext --inplace
cp build/lib*/rds2py/rds_parser* src/rds2py/
tox -e docs
touch ./docs/_build/html/.nojekyll
- name: GH Pages Deployment
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## Version 0,.4.5
## Development

- Fix github issue with showing incorrect package version on github pages.

## Version 0.4.5

- Switch to pybind11 to implementing the bindings to rds2cpp.
- Update tests, documentation and actions.
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ def build_cmake(self, ext):


if __name__ == "__main__":
import os

try:
setup(
use_scm_version={"version_scheme": "no-guess-dev"},
Expand Down

0 comments on commit 7ce4931

Please sign in to comment.