diff --git a/.circleci/config.yml b/.circleci/config.yml index 3231e38..6ec6fcf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,9 +11,9 @@ jobs: tag: "3.11" steps: - checkout - - python/install-packages: - pkg-manager: pip-dist - pip-dependency-file: docs/requirements.txt + - run: + name: Install dependencies + command: pip install --group doc -e . - run: name: Build docs command: make -C docs html diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 25ceb41..37d698c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,6 +6,6 @@ Installing the theme itself: After following the contribution guidelines in the Matplotlib docs, you will still need to install the theme itself to see the changes you made. At the root level of the repository run: -`python -m pip install -e .` +`python -m pip install --group doc -e .` After that you will be able to build the docs locally by doing `make html` in the `docs` directory. diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index a945df9..0000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -pydata-sphinx-theme>=0.13.1 -matplotlib \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 52f8e54..5a476ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,10 +20,14 @@ classifiers = [ ] dependencies = [ "pydata-sphinx-theme==0.20.0", - "matplotlib", "sphinx-design", ] +[dependency-groups] +doc = [ + "matplotlib" +] + [project.urls] homepage = "https://matplotlib.org/mpl-sphinx-theme/" repository = "https://github.com/matplotlib/mpl-sphinx-theme" @@ -50,3 +54,20 @@ mpl_sphinx_theme = [ "static/font/*.*", "components/*.html", ] + + +[tool.pixi.workspace] +channels = ["conda-forge"] +platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"] +preview = ["pixi-build"] + + +[tool.pixi.package] +version = "3.11.1.dev0" +name = "mpl-sphinx-theme" + +[tool.pixi.package.build.backend] +name = "pixi-build-python" + +[tool.pixi.package.build.config] +ignore-pypi-mapping = false