diff --git a/.github/workflows/docs-cd.yml b/.github/workflows/docs-cd.yml index f78e8ce..39cb961 100644 --- a/.github/workflows/docs-cd.yml +++ b/.github/workflows/docs-cd.yml @@ -24,12 +24,21 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.x' + python-version: 3.13 + + - name: Cache Python dependencies + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip - name: Install dependencies run: | python -m pip install --upgrade pip pip install -e . + pip install -r requirements.txt pip install -r docs/requirements.txt - name: Generate API stubs diff --git a/docs/requirements.txt b/docs/requirements.txt index 55caf1b..51cbf5a 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,9 +1,6 @@ -furo>=2024.8.6 -Sphinx>=7.2 -myst-parser>=2.0 -sphinx-autodoc-typehints>=2.2 -sphinx-autobuild==2024.8.25 -sphinx_rtd_theme==7.3.1 - -# Ensure imports succeed during autodoc -paho-mqtt>=2.0 +furo==2025.7.19 +Sphinx==8.2.3 +myst-parser==4.0.1 +sphinx-autodoc-typehints==3.2.0 +sphinx-autobuild==2025.8.25 +sphinx_rtd_theme==3.0.2 diff --git a/pyproject.toml b/pyproject.toml index 59d1b10..9615291 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,10 +6,15 @@ build-backend = "setuptools.build_meta" name = "py-swarm-robot" version = "0.1.0" description = "A modular robot control library" -authors = [{name = "Nuwan Jaliyagoda", email = "nuwanjaliyagoda@gmail.com"},{name = "Nuwan Jaliyagoda", email = "kavindumethpura@gmail.com"},{name = "Kavindu Prabhath Methpura", email = "kavindumethpura@gmail.com"}] +authors = [ + { name = "Nuwan Jaliyagoda", email = "nuwanjaliyagoda@gmail.com" }, + { name = "Nuwan Jaliyagoda", email = "kavindumethpura@gmail.com" }, + { name = "Kavindu Prabhath Methpura", email = "kavindumethpura@gmail.com" }, +] readme = "README.md" -requires-python = ">=3.8" -dependencies = [] +requires-python = ">=3.13" +license = { file = "LICENSE" } +dependencies = ["paho-mqtt"] [tool.setuptools.packages.find] where = ["src"]