umfive 0.2.2__tar.gz → 0.4.0__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.
- umfive-0.4.0/.github/dependabot.yml +20 -0
- {umfive-0.2.2 → umfive-0.4.0}/.github/workflows/build-and-deploy-wheels-on-pypi.yml +8 -8
- {umfive-0.2.2 → umfive-0.4.0}/.github/workflows/pytest.yml +4 -4
- {umfive-0.2.2 → umfive-0.4.0}/.pre-commit-config.yaml +6 -6
- umfive-0.4.0/.readthedocs.yaml +29 -0
- umfive-0.4.0/Changelog.rst +18 -0
- {umfive-0.2.2/umfive.egg-info → umfive-0.4.0}/PKG-INFO +10 -5
- {umfive-0.2.2 → umfive-0.4.0}/README.md +7 -2
- umfive-0.4.0/docs/Makefile +20 -0
- umfive-0.4.0/docs/custom.css +6 -0
- umfive-0.4.0/docs/make.bat +23 -0
- umfive-0.4.0/docs/requirements.txt +1 -0
- umfive-0.4.0/docs/source/api_bytereader.rst +8 -0
- umfive-0.4.0/docs/source/api_datavariable.rst +8 -0
- umfive-0.4.0/docs/source/api_dimensionscale.rst +8 -0
- umfive-0.4.0/docs/source/api_file.rst +10 -0
- umfive-0.4.0/docs/source/api_fileobjreader.rst +8 -0
- umfive-0.4.0/docs/source/api_localposixreader.rst +8 -0
- umfive-0.4.0/docs/source/api_recordinfo.rst +8 -0
- umfive-0.4.0/docs/source/api_reference.rst +15 -0
- umfive-0.4.0/docs/source/api_variable.rst +8 -0
- umfive-0.4.0/docs/source/cf_netcdf_structure.rst +385 -0
- umfive-0.4.0/docs/source/changelog.rst +4 -0
- umfive-0.4.0/docs/source/conf.py +85 -0
- umfive-0.4.0/docs/source/contributing.rst +76 -0
- umfive-0.4.0/docs/source/genindex.rst +2 -0
- umfive-0.4.0/docs/source/index.rst +19 -0
- umfive-0.4.0/docs/source/installation.rst +34 -0
- umfive-0.4.0/docs/source/introduction.rst +136 -0
- umfive-0.4.0/docs/source/quickstart.rst +271 -0
- umfive-0.4.0/docs/source/umdump.rst +80 -0
- umfive-0.4.0/docs/source/xnetcdf.rst +131 -0
- umfive-0.4.0/environment.yml +13 -0
- umfive-0.4.0/generate_dump_outputs.py +23 -0
- {umfive-0.2.2 → umfive-0.4.0}/pyproject.toml +6 -6
- umfive-0.4.0/tests/data/README +4 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/data/cl_umfile_dump.txt +7108 -7895
- umfive-0.4.0/tests/data/extra_data_dump.txt +225 -0
- umfive-0.4.0/tests/data/hybrid_height.pp +0 -0
- umfive-0.4.0/tests/data/hybrid_height_dump.txt +531 -0
- umfive-0.2.2/tests/data/test2_dump.txt → umfive-0.4.0/tests/data/test_dump.txt +123 -231
- {umfive-0.2.2 → umfive-0.4.0}/tests/data/umfile_dump.txt +40 -50
- {umfive-0.2.2 → umfive-0.4.0}/tests/data/wgdos_packed_dump.txt +74 -95
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_core/test_DataVariable_api.py +6 -5
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_core/test_File_api.py +65 -22
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_core/test_packed_data_loading.py +19 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_core/test_pyfive_interoperability.py +3 -3
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_core/test_wgdos_extension.py +2 -1
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_io/test_chunk_index.py +2 -2
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_io/test_file.py +11 -5
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_io/test_fileobj_reader.py +5 -5
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_io/test_lazy_subselection.py +1 -1
- umfive-0.4.0/tests/tests_io/test_local_reader.py +76 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_io/test_parallel_reads.py +5 -5
- umfive-0.4.0/tests/tests_io/test_umdump.py +43 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/__init__.py +3 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/constants.py +1 -1
- {umfive-0.2.2 → umfive-0.4.0}/umfive/core/data.py +13 -2
- {umfive-0.2.2 → umfive-0.4.0}/umfive/core/models.py +33 -2
- {umfive-0.2.2 → umfive-0.4.0}/umfive/core/variables.py +5 -5
- {umfive-0.2.2 → umfive-0.4.0}/umfive/high_level.py +390 -184
- {umfive-0.2.2 → umfive-0.4.0}/umfive/io/local_posix_reader.py +22 -4
- {umfive-0.2.2 → umfive-0.4.0}/umfive/stash.py +72 -56
- umfive-0.4.0/umfive/umdump.py +69 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/variable.py +90 -28
- {umfive-0.2.2 → umfive-0.4.0/umfive.egg-info}/PKG-INFO +10 -5
- {umfive-0.2.2 → umfive-0.4.0}/umfive.egg-info/SOURCES.txt +33 -3
- umfive-0.4.0/umfive.egg-info/entry_points.txt +2 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive.egg-info/requires.txt +2 -2
- umfive-0.2.2/environment.yml +0 -17
- umfive-0.2.2/tests/data/extra_data_dump.txt +0 -238
- umfive-0.2.2/tests/tests_io/test_local_reader.py +0 -47
- umfive-0.2.2/tests/tests_io/test_umdump.py +0 -88
- umfive-0.2.2/umfive/inspect.py +0 -158
- umfive-0.2.2/umfive/umdump.py +0 -53
- umfive-0.2.2/umfive.egg-info/entry_points.txt +0 -2
- {umfive-0.2.2 → umfive-0.4.0}/.flake8 +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/.gitignore +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/.pydocstyle.ini +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/LICENSE +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/MANIFEST.in +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/setup.cfg +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/setup.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/data/aaaaoa.pmh8dec.pp +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/data/cl_umfile +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/data/extra_data.pp +0 -0
- /umfive-0.2.2/tests/data/test2.pp → /umfive-0.4.0/tests/data/test.pp +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/data/test1.nc +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/data/test2-viacf.nc +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/data/umfile.pp +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/data/wgdos_packed.pp +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_core/test_filetype.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_core/test_scanner.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/tests/tests_core/test_stash_table.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/c_ext/wgdos_impl.h +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/c_ext/wgdos_module.c +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/core/__init__.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/core/extra_data.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/core/filetype.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/core/header.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/core/interpret.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/core/scanner.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/data/STASH_to_CF.txt +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/data/field_codes.txt +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/io/__init__.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/io/bytereader.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/io/chunk_read.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/io/fileobj.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/io/mock_filesystem.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive/wgdos.py +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive.egg-info/dependency_links.txt +0 -0
- {umfive-0.2.2 → umfive-0.4.0}/umfive.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
# Enable version updates for GitHub Actions
|
|
9
|
+
- package-ecosystem: "github-actions"
|
|
10
|
+
# Workflow files stored in the default location of `.github/workflows`
|
|
11
|
+
# You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.
|
|
12
|
+
directory: "/"
|
|
13
|
+
schedule:
|
|
14
|
+
interval: "weekly"
|
|
15
|
+
cooldown:
|
|
16
|
+
default-days: 7
|
|
17
|
+
labels:
|
|
18
|
+
- dependencies
|
|
19
|
+
- github_actions
|
|
20
|
+
- automatedPR
|
|
@@ -24,15 +24,15 @@ jobs:
|
|
|
24
24
|
|
|
25
25
|
steps:
|
|
26
26
|
- name: Checkout source
|
|
27
|
-
uses: actions/checkout@
|
|
27
|
+
uses: actions/checkout@v7
|
|
28
28
|
|
|
29
29
|
- name: Set up Python
|
|
30
|
-
uses: actions/setup-python@
|
|
30
|
+
uses: actions/setup-python@v7
|
|
31
31
|
with:
|
|
32
32
|
python-version: "3.12"
|
|
33
33
|
|
|
34
34
|
- name: Build wheels
|
|
35
|
-
uses: pypa/cibuildwheel@
|
|
35
|
+
uses: pypa/cibuildwheel@v4.2.1
|
|
36
36
|
env:
|
|
37
37
|
# Build CPython 3.11-3.14
|
|
38
38
|
CIBW_BUILD: "cp311-* cp312-* cp313-* cp314-*"
|
|
@@ -41,7 +41,7 @@ jobs:
|
|
|
41
41
|
# CIBW_TEST_COMMAND: "python -c \"import umfive; print('import ok')\""
|
|
42
42
|
|
|
43
43
|
- name: Upload wheel artifacts
|
|
44
|
-
uses: actions/upload-artifact@
|
|
44
|
+
uses: actions/upload-artifact@v7
|
|
45
45
|
with:
|
|
46
46
|
name: wheels-${{ matrix.os }}
|
|
47
47
|
path: ./wheelhouse/*.whl
|
|
@@ -52,10 +52,10 @@ jobs:
|
|
|
52
52
|
|
|
53
53
|
steps:
|
|
54
54
|
- name: Checkout source
|
|
55
|
-
uses: actions/checkout@
|
|
55
|
+
uses: actions/checkout@v7
|
|
56
56
|
|
|
57
57
|
- name: Set up Python
|
|
58
|
-
uses: actions/setup-python@
|
|
58
|
+
uses: actions/setup-python@v7
|
|
59
59
|
with:
|
|
60
60
|
python-version: "3.12"
|
|
61
61
|
|
|
@@ -66,7 +66,7 @@ jobs:
|
|
|
66
66
|
run: python -m build --sdist
|
|
67
67
|
|
|
68
68
|
- name: Upload sdist artifact
|
|
69
|
-
uses: actions/upload-artifact@
|
|
69
|
+
uses: actions/upload-artifact@v7
|
|
70
70
|
with:
|
|
71
71
|
name: sdist
|
|
72
72
|
path: dist/*.tar.gz
|
|
@@ -85,7 +85,7 @@ jobs:
|
|
|
85
85
|
|
|
86
86
|
steps:
|
|
87
87
|
- name: Download all artifacts
|
|
88
|
-
uses: actions/download-artifact@
|
|
88
|
+
uses: actions/download-artifact@v8
|
|
89
89
|
with:
|
|
90
90
|
path: distfiles
|
|
91
91
|
|
|
@@ -29,10 +29,10 @@ jobs:
|
|
|
29
29
|
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
30
30
|
|
|
31
31
|
steps:
|
|
32
|
-
- uses: actions/checkout@
|
|
32
|
+
- uses: actions/checkout@v7
|
|
33
33
|
with:
|
|
34
34
|
fetch-depth: 0
|
|
35
|
-
- uses: conda-incubator/setup-miniconda@
|
|
35
|
+
- uses: conda-incubator/setup-miniconda@v4
|
|
36
36
|
with:
|
|
37
37
|
activate-environment: umfive
|
|
38
38
|
environment-file: environment.yml
|
|
@@ -55,5 +55,5 @@ jobs:
|
|
|
55
55
|
pip list
|
|
56
56
|
- name: Test with pytest
|
|
57
57
|
run: pytest -n 2
|
|
58
|
-
- name: Verify
|
|
59
|
-
run:
|
|
58
|
+
- name: Verify umdump command
|
|
59
|
+
run: umdump
|
|
@@ -10,7 +10,7 @@ repos:
|
|
|
10
10
|
# Use specific format-enforcing pre-commit hooks from the core library
|
|
11
11
|
# with the default configuration (see pre-commit.com for documentation)
|
|
12
12
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
13
|
-
rev:
|
|
13
|
+
rev: v6.0.0
|
|
14
14
|
hooks:
|
|
15
15
|
- id: check-ast
|
|
16
16
|
- id: debug-statements
|
|
@@ -23,7 +23,7 @@ repos:
|
|
|
23
23
|
# (see https://black.readthedocs.io/en/stable/ for documentation and see
|
|
24
24
|
# the cfdm pyproject.toml file for our custom black configuration)
|
|
25
25
|
- repo: https://github.com/ambv/black
|
|
26
|
-
rev:
|
|
26
|
+
rev: 26.10.0
|
|
27
27
|
hooks:
|
|
28
28
|
- id: black
|
|
29
29
|
language_version: python3
|
|
@@ -35,7 +35,7 @@ repos:
|
|
|
35
35
|
# configuration as below)
|
|
36
36
|
# - repo: https://github.com/myint/docformatter
|
|
37
37
|
- repo: https://github.com/PyCQA/docformatter
|
|
38
|
-
rev: v1.7.
|
|
38
|
+
rev: v1.7.8
|
|
39
39
|
hooks:
|
|
40
40
|
- id: docformatter
|
|
41
41
|
# These arguments act as the configuration for docformatter. They:
|
|
@@ -43,7 +43,7 @@ repos:
|
|
|
43
43
|
# * ensure there is a blank line after the final non-empty line;
|
|
44
44
|
# * wraps both summary and description at 72 characters (the latter
|
|
45
45
|
# by default).
|
|
46
|
-
args: [--in-place, --blank, --wrap-summaries=72]
|
|
46
|
+
args: [--in-place, --blank, --wrap-summaries=72, --wrap-descriptions=0]
|
|
47
47
|
|
|
48
48
|
# Check the docstrings conforms to Google docstring format as much as can
|
|
49
49
|
# be detected by the 'pydocstyle' checker
|
|
@@ -58,7 +58,7 @@ repos:
|
|
|
58
58
|
# (see https://flake8.pycqa.org/en/latest/ for documentation and see
|
|
59
59
|
# the cfdm .flake8 file for our custom flake8 configuration)
|
|
60
60
|
- repo: https://github.com/PyCQA/flake8
|
|
61
|
-
rev: 7.1
|
|
61
|
+
rev: 7.4.1
|
|
62
62
|
hooks:
|
|
63
63
|
- id: flake8
|
|
64
64
|
|
|
@@ -67,7 +67,7 @@ repos:
|
|
|
67
67
|
# compatible with 'black' with the lines set to ensure so in the repo's
|
|
68
68
|
# pyproject.toml. Other than that and the below, no extra config is required.
|
|
69
69
|
- repo: https://github.com/PyCQA/isort
|
|
70
|
-
rev:
|
|
70
|
+
rev: 9.0.2
|
|
71
71
|
hooks:
|
|
72
72
|
- id: isort
|
|
73
73
|
name: isort (python)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# .readthedocs.yaml
|
|
2
|
+
# Read the Docs configuration file
|
|
3
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
4
|
+
|
|
5
|
+
# Required
|
|
6
|
+
version: 2
|
|
7
|
+
|
|
8
|
+
# Set the version of Python and other tools you might need
|
|
9
|
+
build:
|
|
10
|
+
os: ubuntu-lts-latest
|
|
11
|
+
tools:
|
|
12
|
+
# DO NOT use mambaforge-*; that is currently sunsetted
|
|
13
|
+
python: "miniforge3-latest"
|
|
14
|
+
jobs:
|
|
15
|
+
post_create_environment:
|
|
16
|
+
- conda run -n ${CONDA_DEFAULT_ENV} pip install . --no-deps
|
|
17
|
+
# example how to tweak pre-commands in RTD's weird conda env
|
|
18
|
+
# - conda run -n ${CONDA_DEFAULT_ENV} git clone https://github.com/NCAS-CMS/umfive.git
|
|
19
|
+
# - cd umfive && conda run -n ${CONDA_DEFAULT_ENV} pip install -e .
|
|
20
|
+
|
|
21
|
+
# Declare the requirements required to build your docs
|
|
22
|
+
conda:
|
|
23
|
+
environment:
|
|
24
|
+
environment.yml
|
|
25
|
+
|
|
26
|
+
# Build documentation in the doc directory with Sphinx
|
|
27
|
+
sphinx:
|
|
28
|
+
configuration: docs/source/conf.py
|
|
29
|
+
fail_on_warning: true
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Version 0.4.0
|
|
2
|
+
-------------
|
|
3
|
+
|
|
4
|
+
**2026-10-13**
|
|
5
|
+
|
|
6
|
+
* Add documentation pages
|
|
7
|
+
(https://github.com/NCAS-CMS/umfive/issues/34)
|
|
8
|
+
* Fix vertical dimension for single-surface variables
|
|
9
|
+
(https://github.com/NCAS-CMS/umfive/issues/36)
|
|
10
|
+
* Fix bug when creating bounds and orography for atmosphere hybrid
|
|
11
|
+
height coordinates (https://github.com/NCAS-CMS/umfive/issues/47)
|
|
12
|
+
|
|
13
|
+
Version 0.3.0
|
|
14
|
+
-------------
|
|
15
|
+
|
|
16
|
+
**2026-08-14**
|
|
17
|
+
|
|
18
|
+
* First public release.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: umfive
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: PP/Fields reader with pyfive-style high-level API
|
|
5
5
|
Author: David Hassell, Alan Iwi, Bryan Lawrence, Valeriu Predoi - package
|
|
6
6
|
License: MIT
|
|
@@ -8,20 +8,25 @@ Requires-Python: >=3.11
|
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
License-File: LICENSE
|
|
10
10
|
Requires-Dist: cftime
|
|
11
|
-
Requires-Dist: numpy>=
|
|
12
|
-
Requires-Dist: pyfive>=1.1.2
|
|
11
|
+
Requires-Dist: numpy>=2
|
|
13
12
|
Provides-Extra: io
|
|
14
13
|
Requires-Dist: fsspec>=2024.3.0; extra == "io"
|
|
15
14
|
Provides-Extra: test
|
|
16
15
|
Requires-Dist: pytest>=8; extra == "test"
|
|
17
16
|
Requires-Dist: pytest-cov>=5; extra == "test"
|
|
18
17
|
Requires-Dist: pytest-xdist; extra == "test"
|
|
18
|
+
Requires-Dist: xnetcdf; extra == "test"
|
|
19
19
|
Dynamic: license-file
|
|
20
20
|
|
|
21
21
|
# umfive
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
`umfive` is a Python open source library for representing [UK Met
|
|
24
|
+
Office PP and UM fields file datasets](https://artefacts.ceda.ac.uk/badc_datadocs/um/umdp_F3-UMDPF3.pdf)
|
|
25
|
+
with [CF-netCDF](https://cfconventions.org/)-like structures that
|
|
26
|
+
follow the API of [pyfive](https://pyfive.readthedocs.io), an HDF5
|
|
27
|
+
reader.
|
|
28
|
+
|
|
29
|
+
### [Read the `umfive` documentation](https://umfive.readthedocs.io)
|
|
25
30
|
|
|
26
31
|
This is NOT an alternative to pyfive, it is a package which makes pp and fields files
|
|
27
32
|
look like and taste ("quack like") chunked HDF5 files written by a NetCDF library.
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
# umfive
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
`umfive` is a Python open source library for representing [UK Met
|
|
4
|
+
Office PP and UM fields file datasets](https://artefacts.ceda.ac.uk/badc_datadocs/um/umdp_F3-UMDPF3.pdf)
|
|
5
|
+
with [CF-netCDF](https://cfconventions.org/)-like structures that
|
|
6
|
+
follow the API of [pyfive](https://pyfive.readthedocs.io), an HDF5
|
|
7
|
+
reader.
|
|
8
|
+
|
|
9
|
+
### [Read the `umfive` documentation](https://umfive.readthedocs.io)
|
|
5
10
|
|
|
6
11
|
This is NOT an alternative to pyfive, it is a package which makes pp and fields files
|
|
7
12
|
look like and taste ("quack like") chunked HDF5 files written by a NetCDF library.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line.
|
|
5
|
+
SPHINXOPTS =
|
|
6
|
+
SPHINXBUILD = sphinx-build
|
|
7
|
+
SPHINXPROJ = umfive
|
|
8
|
+
SOURCEDIR = source
|
|
9
|
+
BUILDDIR = build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
pushd %~dp0
|
|
4
|
+
|
|
5
|
+
REM Command file for Sphinx documentation
|
|
6
|
+
|
|
7
|
+
if "%SPHINXBUILD%" == "" (
|
|
8
|
+
set SPHINXBUILD=sphinx-build
|
|
9
|
+
)
|
|
10
|
+
set SOURCEDIR=source
|
|
11
|
+
set BUILDDIR=build
|
|
12
|
+
set SPHINXPROJ=umfive
|
|
13
|
+
|
|
14
|
+
if "%1" == "" goto help
|
|
15
|
+
|
|
16
|
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
|
17
|
+
goto end
|
|
18
|
+
|
|
19
|
+
:help
|
|
20
|
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
|
21
|
+
|
|
22
|
+
:end
|
|
23
|
+
popd
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sphinx
|