diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4ff04e7..8e867ce 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -35,27 +35,13 @@ jobs: python-version: 3.12 - name: Requirements - run: sudo apt-get install -y python3-sphinx - && pip3 install sphinx-rtd-theme - && pip3 install breathe - && pip3 install sphinx-sitemap - && pip3 install myst-parser - && pip3 install beartype - && pip3 install decorator - && pip3 install numpy - && pip3 install scipy - && pip3 install multimethod - && pip3 install lark - && pip3 install tqdm - && pip3 install argcomplete - && pip3 install yapf - && pip3 install rich-argparse - && pip3 install better-apidoc - && pip3 install six - && pip3 install . + run: | + sudo apt-get install -y python3-sphinx + pip install .[docs] - name: Build run: | + python setup.py build_ext --inplace cd docs make clean rm source/code/* diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f70dead..beec875 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,10 +22,9 @@ jobs: run: | python3 -m pip install build --user python3 -m pip install twine --user - python3 -m pip install wheel --user - name: Build a binary wheel and a source tarball - run: python3 -m build + run: python3 -m build --sdist - name: Store the distribution packages uses: actions/upload-artifact@v3 with: @@ -88,8 +87,7 @@ jobs: id: generate_changelog run: | name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1) - changelog=$(git-changelog --sections ci,doc,feat,fix,perf,test -F "$name.." -c angular) - echo "changelog=$changelog" >> $GITHUB_OUTPUT + git-changelog --sections ci,doc,feat,fix,perf,test -F "$name.." -c angular > changelog.tmp - name: Create GitHub Release env: @@ -98,7 +96,7 @@ jobs: gh release create '${{ github.ref_name }}' --repo '${{ github.repository }}' - --notes '${{ steps.generate_changelog.outputs.changelog }}' + --notes "$(cat changelog.tmp)" - name: Build CHANGELOG.md run: | @@ -144,7 +142,6 @@ jobs: with: inputs: >- ./dist/*.tar.gz - ./dist/*.whl - name: Upload artifact signatures to GitHub Release env: diff --git a/pyproject.toml b/pyproject.toml index 1c0c37a..9da0b12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,7 @@ dependencies = [ "yapf", "rich-argparse", "Cython", + "setuptools", ] [project.optional-dependencies] @@ -44,13 +45,13 @@ test = [ "pylint-django", "coverage", "docstr-coverage", - "setuptools", ] docs = [ "sphinx", "sphinx-sitemap", - "myst-parser", "sphinx-rtd-theme", + "breathe", + "myst-parser", "better-apidoc", "six", "docstr-coverage",