Skip to content

Commit

Permalink
Update readthedocs yaml to use poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
glassnotes committed Aug 21, 2024
1 parent 2f8b170 commit 9d68e35
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
12 changes: 5 additions & 7 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ build:
os: ubuntu-22.04
tools:
python: "3.12"
jobs:
post_create_environment:
- pip install poetry
post_install:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py
# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
# python:
# install:
# - requirements: docs/requirements.txt
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ keywords = ["quantum-computing", "quantum-software"]
include = [{ path = "ionizer/resources"}]

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.12"
pennylane = "^0.37"

[tool.poetry.group.dev.dependencies]
pytest = "8.2"
black = "24.2"
pre-commit = "3.7.1"
ruff = "^0.5.0"

[tool.poetry.group.docs.dependencies]
sphinx = "8.0.2"

[build-system]
Expand Down

0 comments on commit 9d68e35

Please sign in to comment.