diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 96aa5a1d..e7bfab3c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v4 -# build the doxygen XML for breathe + # build the doxygen XML for breathe - name: Checkout openchemistry uses: actions/checkout@v4 with: @@ -38,9 +38,16 @@ jobs: sudo apt-get -qq update sudo apt-get -qq install doxygen ninja-build libeigen3-dev libglew-dev libxml2-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5x11extras5-dev libqt5svg5-dev + - name: Install uv + uses: astral-sh/setup-uv@v2 + + - name: "Set up Python" + uses: actions/setup-python@v5 + with: + python-version-file: ".python-version" + - name: Install Sphinx and requirements - run: | - pip install -U sphinx myst-parser breathe pydata-sphinx-theme sphinxext-rediraffe sphinx-design sphinx-copybutton linkify-it-py pygments + run: uv pip install --system --break-system-packages -r pyproject.toml - name: Configure run: | diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..b961080b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,17 @@ +[project] +name = "two-avogadro-cc" +version = "2.dev0" +description = "Documentation and development website for Avogadro2" +readme = "README.md" +requires-python = ">=3.11" +dependencies = [ + "breathe>=4.35.0", + "linkify-it-py>=2.0.3", + "myst-parser>=4.0.0", + "pydata-sphinx-theme>=0.15.4", + "sphinx>=8.0.2", + "sphinx-copybutton>=0.5.2", + "sphinx-design>=0.6.1", + "sphinxext-rediraffe>=0.2.7", + "sphinx-togglebutton>=0.3.2", +] diff --git a/source/requirements.txt b/source/requirements.txt deleted file mode 100644 index 330115c8..00000000 --- a/source/requirements.txt +++ /dev/null @@ -1,8 +0,0 @@ -sphinx -myst-parser -breathe -pydata-sphinx-theme -sphinx-design -sphinx-copybutton -linkify-it-py -sphinxext.rediraffe