Skip to content

Commit bdc6225

Browse files
committed
new archive docs script
1 parent e2dae14 commit bdc6225

5 files changed

Lines changed: 34 additions & 5 deletions

File tree

Changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ version 3.16.1
2727
* Fix bug that caused incorrect data arrays in some cyclic subspaces
2828
created by `cf.Field.subspace` and `cf.Field.__getitem__`
2929
(https://github.com/NCAS-CMS/cf-python/issues/713)
30+
* Changed dependency: ``1.11.1.0<=cfdm<1.11.2.0``
3031

3132
version 3.16.0
3233
--------------

archive_docs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
# --------------------------------------------------------------------
3+
# Create an archive copy of the documentation
4+
# --------------------------------------------------------------------
5+
set -x
6+
7+
version=`python -c "import cf; print(cf.__version__)"`
8+
9+
cd docs
10+
mkdir -p $version
11+
12+
cp -ar \
13+
objects.inv \
14+
searchindex.js \
15+
*.html \
16+
attribute \
17+
class \
18+
method \
19+
function \
20+
recipes \
21+
_downloads \
22+
_images \
23+
_sources \
24+
_static \
25+
_templates \
26+
$version
27+
28+
set +x

cf/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@
199199
)
200200

201201
# Check the version of cfdm
202-
_minimum_vn = "1.11.0.0"
203-
_maximum_vn = "1.11.1.0"
202+
_minimum_vn = "1.11.1.0"
203+
_maximum_vn = "1.11.2.0"
204204
_cfdm_version = Version(cfdm.__version__)
205205
if not Version(_minimum_vn) <= _cfdm_version < Version(_maximum_vn):
206206
raise RuntimeError(

docs/source/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ Required
203203

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

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

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

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
netCDF4>=1.5.4
22
cftime>=1.6.2
33
numpy>=1.22
4-
cfdm>=1.11.0.0, <1.11.1.0
4+
cfdm>=1.11.1.0, <1.11.2.0
55
psutil>=0.6.0
66
cfunits>=3.3.6
77
dask>=2022.12.1

0 commit comments

Comments
 (0)