Skip to content

Commit

Permalink
sphinx to gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vgp57214_gsk committed Mar 15, 2024
1 parent ad24baa commit 5d2758c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# For reference: https://github.com/JamesIves/github-pages-deploy-action
name: Build Sphinx docu.

on:
push
# release:
# types: [published]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install and Build HTML
run: |
pip install --upgrade pip
pip install sphinx, sphinx-rtd-theme
sphinx-build ./docs/source ./docs/build
- name: Deploy HTML
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/build/ # The folder the action should deploy.
18 changes: 10 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
from setuptools import setup
import os

version_path = os.path.join(
os.path.dirname(__file__),
'pymzml',
'version.txt'
)
with open(version_path, 'r') as version_file:
pymzml_version = version_file.read().strip()
# version_path = os.path.join(
# os.path.dirname(__file__),
# 'pymzml',
# 'version.txt'
# )
# with open(version_path, 'r') as version_file:
# pymzml_version = version_file.read().strip()

setup(
name = 'pymzml',
version = pymzml_version,
use_scm_version = True,
setup_requires = ['setuptools_scm'],
# version = pymzml_version,
packages = ['pymzml', 'pymzml.file_classes', 'pymzml.utils'],
package_dir = {'pymzml': 'pymzml'},
package_data = {
Expand Down

0 comments on commit 5d2758c

Please sign in to comment.