File tree Expand file tree Collapse file tree 8 files changed +39
-23
lines changed
Expand file tree Collapse file tree 8 files changed +39
-23
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ build :
4+ image : latest
5+
6+ conda :
7+ environment : requirements/cf-units.yml
8+
9+ sphinx :
10+ configuration : doc/source/conf.py
11+ fail_on_warning : false
12+
13+ python :
14+ install :
15+ - method : setuptools
16+ path : .
Original file line number Diff line number Diff line change 1- # [ cf-units] ( https://scitools.org.uk/ cf-units/docs /latest/ )
1+ # [ cf-units] ( https://cf-units.readthedocs.io/en /latest/ )
22
33#### Units of measure as defined by the Climate and Forecast (CF) metadata conventions.
44
@@ -43,7 +43,7 @@ conventions.
4343Provision of a wrapper class to support Unidata/UCAR UDUNITS-2 library, and the
4444cftime calendar functionality.
4545
46- Documentation can be found at < https://scitools.org.uk/ cf-units/docs /latest/ > .
46+ Documentation can be found at < https://cf-units.readthedocs.io/en /latest/ > .
4747
4848### Example
4949
Original file line number Diff line number Diff line change 44# See COPYING and COPYING.LESSER in the root of the repository for full
55# licensing details.
66
7- # -*- coding: utf-8 -*-
8- #
9- # cf_units documentation build configuration file, created by
10- # sphinx-quickstart on Thu Jan 21 12:03:35 2016.
11- #
12- # This file is execfile()d with the current directory set to its
13- # containing dir.
14- #
15- # Note that not all possible configuration values are present in this
16- # autogenerated file.
17- #
18- # All configuration values have a default; values that are commented out
19- # serve to show the default.
20-
21- import cf_units
7+ from importlib import metadata
228
239extensions = [
2410 "sphinx.ext.autodoc" ,
3521project = "cf-units"
3622copyright = "Copyright cf-units contributors"
3723
38-
39- current_version = cf_units .__version__
24+ current_version = metadata .version ("cf_units" )
4025version = current_version .split ("+" )[0 ]
4126release = current_version
4227
43-
4428# -- Options for HTML output ----------------------------------------------
4529
4630html_theme = "alabaster"
4731
48- html_static_path = ["_static" ]
49-
50-
5132# Example configuration for intersphinx: refer to the Python standard library.
5233intersphinx_mapping = {"http://docs.python.org/" : None }
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ Contents:
1414 unit
1515 utilities
1616
17+ cf-units is part of SciTools, for more information see https://scitools.org.uk/.
18+ For **cf-units 2.0 ** and earlier documentation please see the
19+ `legacy documentation <https://scitools.org.uk/cf-units/docs/v2.0/ >`_.
1720
1821
1922Indices and tables
Original file line number Diff line number Diff line change @@ -25,3 +25,7 @@ dependencies:
2525# dev dependencies
2626 - pip
2727 - pre-commit
28+
29+ # docs dependencies
30+ - setuptools_scm
31+ - sphinx
Original file line number Diff line number Diff line change @@ -25,3 +25,7 @@ dependencies:
2525# dev dependencies
2626 - pip
2727 - pre-commit
28+
29+ # docs dependencies
30+ - setuptools_scm
31+ - sphinx
Original file line number Diff line number Diff line change @@ -25,3 +25,7 @@ dependencies:
2525# dev dependencies
2626 - pip
2727 - pre-commit
28+
29+ # docs dependencies
30+ - setuptools_scm
31+ - sphinx
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ python_requires =
4949zip_safe = False
5050
5151[options.extras_require]
52+ docs =
53+ setuptools_scm
54+ sphinx
5255test =
5356 codecov
5457 cython
5861 pytest-cov
5962all =
6063 pre-commit
64+ %(docs)s
6165 %(test)s
6266
6367[flake8]
You can’t perform that action at this time.
0 commit comments