pyFOCI 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyfoci-0.1.2/.coveragerc +6 -0
- pyfoci-0.1.2/.github/dependabot.yml +18 -0
- pyfoci-0.1.2/.github/workflows/deploy-gh-pages.yml +37 -0
- pyfoci-0.1.2/.github/workflows/lint.yml +23 -0
- pyfoci-0.1.2/.github/workflows/python-app.yml +39 -0
- pyfoci-0.1.2/.github/workflows/release.yml +76 -0
- pyfoci-0.1.2/.gitignore +78 -0
- pyfoci-0.1.2/.pre-commit-config.yaml +16 -0
- pyfoci-0.1.2/LICENSE +27 -0
- pyfoci-0.1.2/PKG-INFO +42 -0
- pyfoci-0.1.2/README.md +18 -0
- pyfoci-0.1.2/doc/Makefile +184 -0
- pyfoci-0.1.2/doc/_static/css/project-template.css +59 -0
- pyfoci-0.1.2/doc/_static/img/index_api.svg +97 -0
- pyfoci-0.1.2/doc/_static/img/index_examples.svg +76 -0
- pyfoci-0.1.2/doc/_static/img/index_getting_started.svg +66 -0
- pyfoci-0.1.2/doc/_static/img/index_user_guide.svg +67 -0
- pyfoci-0.1.2/doc/_static/img/logo.png +0 -0
- pyfoci-0.1.2/doc/_static/js/copybutton.js +63 -0
- pyfoci-0.1.2/doc/_templates/class.rst +26 -0
- pyfoci-0.1.2/doc/_templates/function.rst +12 -0
- pyfoci-0.1.2/doc/_templates/numpydoc_docstring.py +16 -0
- pyfoci-0.1.2/doc/_templates/sidebar-search-bs.html +14 -0
- pyfoci-0.1.2/doc/api.rst +30 -0
- pyfoci-0.1.2/doc/conf.py +114 -0
- pyfoci-0.1.2/doc/index.rst +108 -0
- pyfoci-0.1.2/doc/make.bat +242 -0
- pyfoci-0.1.2/doc/quick_start.rst +181 -0
- pyfoci-0.1.2/doc/user_guide.rst +180 -0
- pyfoci-0.1.2/examples/README.txt +6 -0
- pyfoci-0.1.2/examples/plot_transformer.py +27 -0
- pyfoci-0.1.2/pixi.lock +10932 -0
- pyfoci-0.1.2/pyFOCI/__init__.py +10 -0
- pyfoci-0.1.2/pyFOCI/_template.py +97 -0
- pyfoci-0.1.2/pyFOCI/_version.py +24 -0
- pyfoci-0.1.2/pyFOCI/tests/__init__.py +2 -0
- pyfoci-0.1.2/pyFOCI/tests/test_common.py +16 -0
- pyfoci-0.1.2/pyFOCI/tests/test_template.py +31 -0
- pyfoci-0.1.2/pyFOCI/utils/__init__.py +2 -0
- pyfoci-0.1.2/pyFOCI/utils/discovery.py +207 -0
- pyfoci-0.1.2/pyFOCI/utils/tests/__init__.py +2 -0
- pyfoci-0.1.2/pyFOCI/utils/tests/test_discovery.py +31 -0
- pyfoci-0.1.2/pyFOCI.egg-info/PKG-INFO +42 -0
- pyfoci-0.1.2/pyFOCI.egg-info/SOURCES.txt +47 -0
- pyfoci-0.1.2/pyFOCI.egg-info/dependency_links.txt +1 -0
- pyfoci-0.1.2/pyFOCI.egg-info/requires.txt +2 -0
- pyfoci-0.1.2/pyFOCI.egg-info/top_level.txt +1 -0
- pyfoci-0.1.2/pyproject.toml +152 -0
- pyfoci-0.1.2/setup.cfg +4 -0
pyfoci-0.1.2/.coveragerc
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
# Maintain dependencies for GitHub Actions as recommended in SPEC8:
|
|
4
|
+
# https://github.com/scientific-python/specs/pull/325
|
|
5
|
+
# At the time of writing, release critical workflows such as
|
|
6
|
+
# pypa/gh-action-pypi-publish should use hash-based versioning for security
|
|
7
|
+
# reasons. This strategy may be generalized to all other github actions
|
|
8
|
+
# in the future.
|
|
9
|
+
- package-ecosystem: "github-actions"
|
|
10
|
+
directory: "/"
|
|
11
|
+
schedule:
|
|
12
|
+
interval: "weekly"
|
|
13
|
+
groups:
|
|
14
|
+
actions:
|
|
15
|
+
patterns:
|
|
16
|
+
- "*"
|
|
17
|
+
reviewers:
|
|
18
|
+
- "glemaitre"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Documentation
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
deploy-gh-pages:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
permissions:
|
|
15
|
+
contents: write
|
|
16
|
+
pages: write
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v6
|
|
20
|
+
with:
|
|
21
|
+
fetch-depth: 0
|
|
22
|
+
- uses: prefix-dev/setup-pixi@v0.9.6
|
|
23
|
+
with:
|
|
24
|
+
pixi-version: v0.68.1
|
|
25
|
+
environments: doc
|
|
26
|
+
frozen: true
|
|
27
|
+
|
|
28
|
+
- name: Build documentation
|
|
29
|
+
run: pixi run -e doc build-doc
|
|
30
|
+
|
|
31
|
+
- name: Update the main gh-page website
|
|
32
|
+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
|
33
|
+
uses: peaceiris/actions-gh-pages@v4.1.0
|
|
34
|
+
with:
|
|
35
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
36
|
+
publish_dir: ./doc/_build/html
|
|
37
|
+
commit_message: "[ci skip] ${{ github.event.head_commit.message }}"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Linter
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v6
|
|
16
|
+
- uses: prefix-dev/setup-pixi@v0.9.6
|
|
17
|
+
with:
|
|
18
|
+
pixi-version: v0.68.1
|
|
19
|
+
environments: lint
|
|
20
|
+
frozen: true
|
|
21
|
+
|
|
22
|
+
- name: Run linter
|
|
23
|
+
run: pixi run -e lint lint
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: Unit Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
os: [windows-latest, ubuntu-latest, macos-latest]
|
|
16
|
+
environment: [test]
|
|
17
|
+
runs-on: ${{ matrix.os }}
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v6
|
|
20
|
+
- uses: prefix-dev/setup-pixi@v0.9.6
|
|
21
|
+
with:
|
|
22
|
+
pixi-version: v0.68.1
|
|
23
|
+
environments: ${{ matrix.environment }}
|
|
24
|
+
frozen: true
|
|
25
|
+
|
|
26
|
+
- name: Clear pixi cache and rebuild environment
|
|
27
|
+
shell: bash
|
|
28
|
+
run: |
|
|
29
|
+
rm -rf .pixi
|
|
30
|
+
pixi install
|
|
31
|
+
|
|
32
|
+
- name: Run tests
|
|
33
|
+
run: pixi run -e ${{ matrix.environment }} test
|
|
34
|
+
|
|
35
|
+
- name: Upload coverage reports to Codecov
|
|
36
|
+
uses: codecov/codecov-action@v6.0.1
|
|
37
|
+
with:
|
|
38
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
39
|
+
slug: m3dm-jku/pyFOCI
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
name: Build distributions
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- name: Checkout
|
|
15
|
+
uses: actions/checkout@v6
|
|
16
|
+
|
|
17
|
+
- name: Install Pixi
|
|
18
|
+
uses: prefix-dev/setup-pixi@v0.9.6
|
|
19
|
+
with:
|
|
20
|
+
pixi-version: v0.68.1
|
|
21
|
+
|
|
22
|
+
- name: Build sdist and wheel
|
|
23
|
+
run: pixi run build
|
|
24
|
+
|
|
25
|
+
- name: Check distributions
|
|
26
|
+
run: pixi run check-dist
|
|
27
|
+
|
|
28
|
+
- name: Upload build artifacts
|
|
29
|
+
uses: actions/upload-artifact@v5
|
|
30
|
+
with:
|
|
31
|
+
name: dist
|
|
32
|
+
path: dist/*
|
|
33
|
+
|
|
34
|
+
publish-testpypi:
|
|
35
|
+
name: Publish to TestPyPI (pre-releases)
|
|
36
|
+
needs: build
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
environment:
|
|
39
|
+
name: pypi
|
|
40
|
+
url: https://test.pypi.org/p/pyFOCI
|
|
41
|
+
permissions:
|
|
42
|
+
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
43
|
+
|
|
44
|
+
steps:
|
|
45
|
+
- name: Download artifacts
|
|
46
|
+
uses: actions/download-artifact@v6
|
|
47
|
+
with:
|
|
48
|
+
name: dist
|
|
49
|
+
path: dist
|
|
50
|
+
|
|
51
|
+
- name: Publish to TestPyPI
|
|
52
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
53
|
+
with:
|
|
54
|
+
repository-url: https://test.pypi.org/legacy/
|
|
55
|
+
|
|
56
|
+
publish-pypi:
|
|
57
|
+
name: Publish to PyPI
|
|
58
|
+
needs: build
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
environment:
|
|
61
|
+
name: pypi
|
|
62
|
+
url: https://pypi.org/p/pyFOCI
|
|
63
|
+
permissions:
|
|
64
|
+
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
65
|
+
|
|
66
|
+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
|
|
67
|
+
steps:
|
|
68
|
+
- name: Download artifacts
|
|
69
|
+
uses: actions/download-artifact@v6
|
|
70
|
+
with:
|
|
71
|
+
name: dist
|
|
72
|
+
path: dist
|
|
73
|
+
|
|
74
|
+
- name: Publish to PyPI
|
|
75
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
76
|
+
|
pyfoci-0.1.2/.gitignore
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# scikit-learn specific
|
|
10
|
+
doc/_build/
|
|
11
|
+
doc/auto_examples/
|
|
12
|
+
doc/modules/generated/
|
|
13
|
+
doc/datasets/generated/
|
|
14
|
+
|
|
15
|
+
# Distribution / packaging
|
|
16
|
+
|
|
17
|
+
.Python
|
|
18
|
+
env/
|
|
19
|
+
build/
|
|
20
|
+
develop-eggs/
|
|
21
|
+
dist/
|
|
22
|
+
downloads/
|
|
23
|
+
eggs/
|
|
24
|
+
.eggs/
|
|
25
|
+
lib/
|
|
26
|
+
lib64/
|
|
27
|
+
parts/
|
|
28
|
+
sdist/
|
|
29
|
+
var/
|
|
30
|
+
*.egg-info/
|
|
31
|
+
.installed.cfg
|
|
32
|
+
*.egg
|
|
33
|
+
|
|
34
|
+
# PyInstaller
|
|
35
|
+
# Usually these files are written by a python script from a template
|
|
36
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
37
|
+
*.manifest
|
|
38
|
+
*.spec
|
|
39
|
+
|
|
40
|
+
# Installer logs
|
|
41
|
+
pip-log.txt
|
|
42
|
+
pip-delete-this-directory.txt
|
|
43
|
+
|
|
44
|
+
# Unit test / coverage reports
|
|
45
|
+
htmlcov/
|
|
46
|
+
.tox/
|
|
47
|
+
.coverage
|
|
48
|
+
.coverage.*
|
|
49
|
+
.cache
|
|
50
|
+
nosetests.xml
|
|
51
|
+
coverage.xml
|
|
52
|
+
*,cover
|
|
53
|
+
.hypothesis/
|
|
54
|
+
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
|
|
62
|
+
# Sphinx documentation
|
|
63
|
+
doc/_build/
|
|
64
|
+
doc/generated/
|
|
65
|
+
doc/sg_execution_times.rst
|
|
66
|
+
|
|
67
|
+
# PyBuilder
|
|
68
|
+
target/
|
|
69
|
+
|
|
70
|
+
.pixi
|
|
71
|
+
|
|
72
|
+
# General
|
|
73
|
+
.DS_Store
|
|
74
|
+
.AppleDouble
|
|
75
|
+
.LSOverride
|
|
76
|
+
|
|
77
|
+
# auto-generated files
|
|
78
|
+
pyFOCI/_version.py
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v4.3.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-yaml
|
|
6
|
+
- id: end-of-file-fixer
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
- repo: https://github.com/psf/black
|
|
9
|
+
rev: 23.3.0
|
|
10
|
+
hooks:
|
|
11
|
+
- id: black
|
|
12
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
13
|
+
rev: v0.0.272
|
|
14
|
+
hooks:
|
|
15
|
+
- id: ruff
|
|
16
|
+
args: ["--fix", "--show-source"]
|
pyfoci-0.1.2/LICENSE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Copyright (c) 2026, Johannes Kepler University Linz
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
8
|
+
list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
* Neither the name of pyFOCI nor the names of its
|
|
15
|
+
contributors may be used to endorse or promote products derived from
|
|
16
|
+
this software without specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
22
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
23
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
24
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
25
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
26
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
pyfoci-0.1.2/PKG-INFO
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyFOCI
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: A template for scikit-learn compatible packages.
|
|
5
|
+
Author-email: Robert Pollak <robert.pollak@jku.at>
|
|
6
|
+
Project-URL: Homepage, https://github.com/scikit-learn-contrib/pyFOCI
|
|
7
|
+
Project-URL: Issues, https://github.com/scikit-learn-contrib/pyFOCI/issues
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
14
|
+
Classifier: Operating System :: POSIX
|
|
15
|
+
Classifier: Operating System :: Unix
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Requires-Python: >=3.9
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: scikit-learn>=1.4.2
|
|
22
|
+
Requires-Dist: numpy
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
pyFOCI - A template for scikit-learn contributions
|
|
26
|
+
============================================================
|
|
27
|
+
|
|
28
|
+

|
|
29
|
+
[](https://codecov.io/gh/m3dm-jku/pyFOCI)
|
|
30
|
+

|
|
31
|
+
|
|
32
|
+
**pyFOCI** is a template project for [scikit-learn](https://scikit-learn.org)
|
|
33
|
+
compatible extensions.
|
|
34
|
+
|
|
35
|
+
It aids development of estimators that can be used in scikit-learn pipelines and
|
|
36
|
+
(hyper)parameter search, while facilitating testing (including some API compliance),
|
|
37
|
+
documentation, open source development, packaging, and continuous integration.
|
|
38
|
+
|
|
39
|
+
Refer to the documentation to modify the template for your own scikit-learn
|
|
40
|
+
contribution: https://m3dm-jku.github.io/pyFOCI/
|
|
41
|
+
|
|
42
|
+
*Thank you for cleanly contributing to the scikit-learn ecosystem!*
|
pyfoci-0.1.2/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
pyFOCI - A template for scikit-learn contributions
|
|
2
|
+
============================================================
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+
[](https://codecov.io/gh/m3dm-jku/pyFOCI)
|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
**pyFOCI** is a template project for [scikit-learn](https://scikit-learn.org)
|
|
9
|
+
compatible extensions.
|
|
10
|
+
|
|
11
|
+
It aids development of estimators that can be used in scikit-learn pipelines and
|
|
12
|
+
(hyper)parameter search, while facilitating testing (including some API compliance),
|
|
13
|
+
documentation, open source development, packaging, and continuous integration.
|
|
14
|
+
|
|
15
|
+
Refer to the documentation to modify the template for your own scikit-learn
|
|
16
|
+
contribution: https://m3dm-jku.github.io/pyFOCI/
|
|
17
|
+
|
|
18
|
+
*Thank you for cleanly contributing to the scikit-learn ecosystem!*
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# Makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line.
|
|
5
|
+
SPHINXOPTS =
|
|
6
|
+
SPHINXBUILD = sphinx-build
|
|
7
|
+
PAPER =
|
|
8
|
+
BUILDDIR = _build
|
|
9
|
+
|
|
10
|
+
# User-friendly check for sphinx-build
|
|
11
|
+
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
|
|
12
|
+
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
|
|
13
|
+
endif
|
|
14
|
+
|
|
15
|
+
# Internal variables.
|
|
16
|
+
PAPEROPT_a4 = -D latex_paper_size=a4
|
|
17
|
+
PAPEROPT_letter = -D latex_paper_size=letter
|
|
18
|
+
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
|
19
|
+
# the i18n builder cannot share the environment and doctrees with the others
|
|
20
|
+
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
|
21
|
+
|
|
22
|
+
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
|
|
23
|
+
|
|
24
|
+
help:
|
|
25
|
+
@echo "Please use \`make <target>' where <target> is one of"
|
|
26
|
+
@echo " html to make standalone HTML files"
|
|
27
|
+
@echo " dirhtml to make HTML files named index.html in directories"
|
|
28
|
+
@echo " singlehtml to make a single large HTML file"
|
|
29
|
+
@echo " pickle to make pickle files"
|
|
30
|
+
@echo " json to make JSON files"
|
|
31
|
+
@echo " htmlhelp to make HTML files and a HTML help project"
|
|
32
|
+
@echo " qthelp to make HTML files and a qthelp project"
|
|
33
|
+
@echo " devhelp to make HTML files and a Devhelp project"
|
|
34
|
+
@echo " epub to make an epub"
|
|
35
|
+
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
|
36
|
+
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
|
37
|
+
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
|
|
38
|
+
@echo " text to make text files"
|
|
39
|
+
@echo " man to make manual pages"
|
|
40
|
+
@echo " texinfo to make Texinfo files"
|
|
41
|
+
@echo " info to make Texinfo files and run them through makeinfo"
|
|
42
|
+
@echo " gettext to make PO message catalogs"
|
|
43
|
+
@echo " changes to make an overview of all changed/added/deprecated items"
|
|
44
|
+
@echo " xml to make Docutils-native XML files"
|
|
45
|
+
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
|
|
46
|
+
@echo " linkcheck to check all external links for integrity"
|
|
47
|
+
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
|
48
|
+
|
|
49
|
+
clean:
|
|
50
|
+
-rm -rf $(BUILDDIR)/*
|
|
51
|
+
-rm -rf auto_examples/
|
|
52
|
+
-rm -rf generated/*
|
|
53
|
+
-rm -rf modules/generated/*
|
|
54
|
+
|
|
55
|
+
html:
|
|
56
|
+
# These two lines make the build a bit more lengthy, and the
|
|
57
|
+
# the embedding of images more robust
|
|
58
|
+
rm -rf $(BUILDDIR)/html/_images
|
|
59
|
+
#rm -rf _build/doctrees/
|
|
60
|
+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
|
61
|
+
@echo
|
|
62
|
+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
|
63
|
+
|
|
64
|
+
dirhtml:
|
|
65
|
+
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
|
66
|
+
@echo
|
|
67
|
+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
|
68
|
+
|
|
69
|
+
singlehtml:
|
|
70
|
+
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
|
71
|
+
@echo
|
|
72
|
+
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
|
73
|
+
|
|
74
|
+
pickle:
|
|
75
|
+
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
|
76
|
+
@echo
|
|
77
|
+
@echo "Build finished; now you can process the pickle files."
|
|
78
|
+
|
|
79
|
+
json:
|
|
80
|
+
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
|
81
|
+
@echo
|
|
82
|
+
@echo "Build finished; now you can process the JSON files."
|
|
83
|
+
|
|
84
|
+
htmlhelp:
|
|
85
|
+
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
|
86
|
+
@echo
|
|
87
|
+
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
|
88
|
+
".hhp project file in $(BUILDDIR)/htmlhelp."
|
|
89
|
+
|
|
90
|
+
qthelp:
|
|
91
|
+
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
|
92
|
+
@echo
|
|
93
|
+
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
|
94
|
+
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
|
95
|
+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/pyFOCI.qhcp"
|
|
96
|
+
@echo "To view the help file:"
|
|
97
|
+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/pyFOCI.qhc"
|
|
98
|
+
|
|
99
|
+
devhelp:
|
|
100
|
+
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
|
101
|
+
@echo
|
|
102
|
+
@echo "Build finished."
|
|
103
|
+
@echo "To view the help file:"
|
|
104
|
+
@echo "# mkdir -p $$HOME/.local/share/devhelp/pyFOCI"
|
|
105
|
+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/pyFOCI"
|
|
106
|
+
@echo "# devhelp"
|
|
107
|
+
|
|
108
|
+
epub:
|
|
109
|
+
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
|
110
|
+
@echo
|
|
111
|
+
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
|
112
|
+
|
|
113
|
+
latex:
|
|
114
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
115
|
+
@echo
|
|
116
|
+
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
|
117
|
+
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
|
118
|
+
"(use \`make latexpdf' here to do that automatically)."
|
|
119
|
+
|
|
120
|
+
latexpdf:
|
|
121
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
122
|
+
@echo "Running LaTeX files through pdflatex..."
|
|
123
|
+
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
|
124
|
+
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
125
|
+
|
|
126
|
+
latexpdfja:
|
|
127
|
+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
128
|
+
@echo "Running LaTeX files through platex and dvipdfmx..."
|
|
129
|
+
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
|
|
130
|
+
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
131
|
+
|
|
132
|
+
text:
|
|
133
|
+
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
|
134
|
+
@echo
|
|
135
|
+
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
|
136
|
+
|
|
137
|
+
man:
|
|
138
|
+
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
|
139
|
+
@echo
|
|
140
|
+
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
|
141
|
+
|
|
142
|
+
texinfo:
|
|
143
|
+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
|
144
|
+
@echo
|
|
145
|
+
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
|
146
|
+
@echo "Run \`make' in that directory to run these through makeinfo" \
|
|
147
|
+
"(use \`make info' here to do that automatically)."
|
|
148
|
+
|
|
149
|
+
info:
|
|
150
|
+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
|
151
|
+
@echo "Running Texinfo files through makeinfo..."
|
|
152
|
+
make -C $(BUILDDIR)/texinfo info
|
|
153
|
+
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
|
154
|
+
|
|
155
|
+
gettext:
|
|
156
|
+
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
|
157
|
+
@echo
|
|
158
|
+
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
|
159
|
+
|
|
160
|
+
changes:
|
|
161
|
+
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
|
162
|
+
@echo
|
|
163
|
+
@echo "The overview file is in $(BUILDDIR)/changes."
|
|
164
|
+
|
|
165
|
+
linkcheck:
|
|
166
|
+
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
|
167
|
+
@echo
|
|
168
|
+
@echo "Link check complete; look for any errors in the above output " \
|
|
169
|
+
"or in $(BUILDDIR)/linkcheck/output.txt."
|
|
170
|
+
|
|
171
|
+
doctest:
|
|
172
|
+
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
|
173
|
+
@echo "Testing of doctests in the sources finished, look at the " \
|
|
174
|
+
"results in $(BUILDDIR)/doctest/output.txt."
|
|
175
|
+
|
|
176
|
+
xml:
|
|
177
|
+
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
|
|
178
|
+
@echo
|
|
179
|
+
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
|
|
180
|
+
|
|
181
|
+
pseudoxml:
|
|
182
|
+
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
|
|
183
|
+
@echo
|
|
184
|
+
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* Override some aspects of the pydata-sphinx-theme */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* Use softer blue from bootstrap's default info color */
|
|
5
|
+
--pst-color-info: 23, 162, 184;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
table {
|
|
9
|
+
width: auto;
|
|
10
|
+
/* Override fit-content which breaks Styler user guide ipynb */
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.transparent-image {
|
|
14
|
+
background: none !important;
|
|
15
|
+
margin-top: 1em;
|
|
16
|
+
margin-bottom: 1em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Main index page overview cards */
|
|
20
|
+
|
|
21
|
+
.intro-card {
|
|
22
|
+
padding: 30px 10px 20px 10px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.intro-card .sd-card-img-top {
|
|
26
|
+
margin: 10px;
|
|
27
|
+
height: 52px;
|
|
28
|
+
background: none !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.intro-card .sd-card-title {
|
|
32
|
+
color: var(--pst-color-primary);
|
|
33
|
+
font-size: var(--pst-font-size-h5);
|
|
34
|
+
padding: 1rem 0rem 0.5rem 0rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.intro-card .sd-card-footer {
|
|
38
|
+
border: none !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.intro-card .sd-card-footer p.sd-card-text {
|
|
42
|
+
max-width: 220px;
|
|
43
|
+
margin-left: auto;
|
|
44
|
+
margin-right: auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.intro-card .sd-btn-secondary {
|
|
48
|
+
background-color: #6c757d !important;
|
|
49
|
+
border-color: #6c757d !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.intro-card .sd-btn-secondary:hover {
|
|
53
|
+
background-color: #5a6268 !important;
|
|
54
|
+
border-color: #545b62 !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.card, .card img {
|
|
58
|
+
background-color: var(--pst-color-background);
|
|
59
|
+
}
|