Skip to content

Commit

Permalink
new archive docs script
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhassell committed Mar 1, 2024
1 parent e2dae14 commit bdc6225
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 5 deletions.
1 change: 1 addition & 0 deletions Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ version 3.16.1
* Fix bug that caused incorrect data arrays in some cyclic subspaces
created by `cf.Field.subspace` and `cf.Field.__getitem__`
(https://github.com/NCAS-CMS/cf-python/issues/713)
* Changed dependency: ``1.11.1.0<=cfdm<1.11.2.0``

version 3.16.0
--------------
Expand Down
28 changes: 28 additions & 0 deletions archive_docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
# --------------------------------------------------------------------
# Create an archive copy of the documentation
# --------------------------------------------------------------------
set -x

version=`python -c "import cf; print(cf.__version__)"`

cd docs
mkdir -p $version

cp -ar \
objects.inv \
searchindex.js \
*.html \
attribute \
class \
method \
function \
recipes \
_downloads \
_images \
_sources \
_static \
_templates \
$version

set +x
4 changes: 2 additions & 2 deletions cf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@
)

# Check the version of cfdm
_minimum_vn = "1.11.0.0"
_maximum_vn = "1.11.1.0"
_minimum_vn = "1.11.1.0"
_maximum_vn = "1.11.2.0"
_cfdm_version = Version(cfdm.__version__)
if not Version(_minimum_vn) <= _cfdm_version < Version(_maximum_vn):
raise RuntimeError(
Expand Down
4 changes: 2 additions & 2 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ Required

* `scipy <https://pypi.org/project/scipy>`_, version 1.10.0 or newer.

* `cfdm <https://pypi.org/project/cfdm/>`_, version 1.11.0.0 or up to,
but not including, 1.11.1.0.
* `cfdm <https://pypi.org/project/cfdm/>`_, version 1.11.1.0 or up to,
but not including, 1.11.2.0.

* `cfunits <https://pypi.org/project/cfunits/>`_, version 3.3.6 or newer.

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
netCDF4>=1.5.4
cftime>=1.6.2
numpy>=1.22
cfdm>=1.11.0.0, <1.11.1.0
cfdm>=1.11.1.0, <1.11.2.0
psutil>=0.6.0
cfunits>=3.3.6
dask>=2022.12.1
Expand Down

0 comments on commit bdc6225

Please sign in to comment.