From 54c66279f378145646c1228d526b4cedef705c4f Mon Sep 17 00:00:00 2001 From: Tpt Date: Sat, 19 Nov 2022 18:13:41 +0100 Subject: [PATCH] Set version constraints for Python build dependency Allows to avoid some unintended breakage if a build package introduces a breaking change --- .github/dependabot.yml | 4 ++++ python/README.md | 2 +- python/pyproject.toml | 2 +- python/requirements.dev.txt | 9 ++++----- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b88a67a7..51d4cb1d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,7 @@ updates: directory: "/" schedule: interval: weekly + - package-ecosystem: "pip" + directory: "/python/" + schedule: + interval: weekly diff --git a/python/README.md b/python/README.md index e77cc020..fb0f6f8d 100644 --- a/python/README.md +++ b/python/README.md @@ -59,7 +59,7 @@ The Sphinx documentation can be generated and viewed in the browser using the fo sphinx-autobuild docs docs/_build/html ``` -Note that you will need to have [sphinx-autobuild](https://pypi.org/project/sphinx-autobuild/) installed. This should be installed already if you are using this repository's development container. +Note that you will need to have [sphinx-autobuild](https://pypi.org/project/sphinx-autobuild/) installed. Alternatively, you can use `sphinx-build` with Python's `http.server` to achieve the same thing. diff --git a/python/pyproject.toml b/python/pyproject.toml index a9789454..c6256599 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["maturin~=0.13.0"] +requires = ["maturin~=0.14.0"] build-backend = "maturin" [project] diff --git a/python/requirements.dev.txt b/python/requirements.dev.txt index 7f13a90f..8849ca69 100644 --- a/python/requirements.dev.txt +++ b/python/requirements.dev.txt @@ -1,6 +1,5 @@ -black +black~=22.10 furo -maturin -mypy -sphinx -sphinx-autobuild +maturin~=0.14.0 +mypy~=0.991.0 +sphinx~=5.3