diff --git a/.readthedocs.yml b/.readthedocs.yml index 92e420fa7..385709145 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -18,7 +18,7 @@ build: conda: - environment: ./docs/environment.yml + environment: ./environment-dev.yml sphinx: configuration: ./docs/conf.py diff --git a/docs/environment.yml b/docs/environment.yml deleted file mode 100644 index f7c895ecf..000000000 --- a/docs/environment.yml +++ /dev/null @@ -1,49 +0,0 @@ -# Hard requirements for notebook examples and documentation build -# WARNING: Keep this up-to-date with ci/environment.yml -# * basemap is broken as of matplotlib >= 3.3 so for documentation -# use 3.2.1. Probably lots of basemap holdouts for next ~5 years. -# * basemap geography is weird with the geos >= 3.9.0 required by cartopy >= -# 0.19, but important to use 0.19 becuase it fixes padding, so live with it. -# * pyqt5 is needed by pyplot, RTD server *happens* to already have it -# but creating local environment will fail. -# * jinja >= 3.0 and nbsphinx >= 0.8.2 seem to break default ReST roles when -# jupytext notebooks are converted to HTML. Interpreted as italics instead. -# * markupsafe >= 2.1.0 seems to be broken with jinja < 3.0 so also have to -# manually specify that: https://github.com/pallets/markupsafe/issues/284 -# * docutils >= 0.17 breaks bullet points. See the following thread -# for more info: https://github.com/readthedocs/sphinx_rtd_theme/issues/1115 -name: ultraplot-dev -channels: - - conda-forge - - defaults -dependencies: - - cartopy - - docutils - - ipykernel - - jinja2 - - jupytext - - markupsafe - - matplotlib>=3.9.1 - - numpy>=1.26.0,<2 - - pandas - - pandoc - - pint - - pip - - pyqt - - pytest - - python - - seaborn - - setuptools==72.1.0 - - xarray - - pip: - - .. - - basemap - - sphinx-autoapi - - basemap-data-hires - # - git+https://github.com/ultraplot-dev/sphinx-automodapi@ultraplot-mods - - sphinx-automodapi - - nbsphinx - - sphinx>=7,<8 - - sphinx-copybutton - - sphinx-rtd-theme==2.1.0rc2 - - git+https://github.com/ultraplot/UltraTheme.git diff --git a/environment-dev.yml b/environment-dev.yml index 040f3ec83..336ba4aa0 100644 --- a/environment-dev.yml +++ b/environment-dev.yml @@ -2,9 +2,9 @@ name: ultraplot-dev channels: - conda-forge dependencies: - - python>=3.9,<3.12 - - numpy>=2.2 - - matplotlib>=3.9.3 + - python>=3.10,<3.13 + - numpy + - matplotlib>=3.9 - cartopy - xarray - seaborn @@ -13,13 +13,14 @@ dependencies: - pytest-mpl - jupyter - pip + - pint + - sphinx + - nbsphinx + - jupytext + - sphinx-copybutton + - sphinx-autoapi + - sphinx-automodapi + - sphinx-rtd-theme + - basemap >=1.4.1 - pip: - - basemap - - pint - - sphinx - - jupytext - - nbsphinx - - sphinx-copybutton - - sphinx-autoapi - git+https://github.com/ultraplot/UltraTheme.git - - sphinx-automodapi diff --git a/environment.yml b/environment.yml index 1473c0303..6485e16a1 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge - nodefaults dependencies: - - python >=3.9, <3.12 + - python>=3.9,<3.13 - pytest - pytest-mpl - numpy>=1.20.0 diff --git a/pyproject.toml b/pyproject.toml index 8fc3d3307..42be755e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ maintainers = [ ] description = "A succinct matplotlib wrapper for making beautiful, publication-quality graphics." readme = "README.rst" -requires-python = ">=3.9, <3.12" +requires-python = ">=3.10,<3.13" license = {text = "MIT"} classifiers = [ "License :: OSI Approved :: MIT License",