From ec6e6ea6146c932a61b815cb484dcb1e00c5257b Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Sun, 30 Nov 2025 20:36:48 -0800 Subject: [PATCH] refactor: organize dev-time dependencies --- .github/dependabot.yml | 16 ++++++++-------- .github/workflows/wheels.yml | 2 +- build.sh | 2 +- requirements-test.txt | 2 -- requirements-typing.txt | 2 ++ requirements-wheel.txt | 1 + 6 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 requirements-typing.txt create mode 100644 requirements-wheel.txt diff --git a/.github/dependabot.yml b/.github/dependabot.yml index faf726ef8..a3d627a7c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -15,11 +15,11 @@ updates: actions: patterns: - "*" - # - package-ecosystem: pip - # directory: .github/ - # schedule: - # interval: "monthly" - # groups: - # pip: - # patterns: - # - "*" + - package-ecosystem: pip + directory: .github/ + schedule: + interval: "monthly" + groups: + pip: + patterns: + - "*" diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 13bfaf564..a951b3e79 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -77,7 +77,7 @@ jobs: platforms: linux/ppc64le - name: Install cibuildwheel - run: python -m pip install cibuildwheel~=3.3 + run: python -m pip install -r requirements-wheel.txt - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse diff --git a/build.sh b/build.sh index 3c9fb68a7..6ac40d4bf 100644 --- a/build.sh +++ b/build.sh @@ -268,7 +268,7 @@ if [ "$1" = "mypy" ]; then if [ -n "$WHEELDIR" ]; then $PREFIX/bin/pip install $WHEELDIR/pygit2*-$PYTHON_TAG-*.whl fi - $PREFIX/bin/pip install -r requirements-test.txt + $PREFIX/bin/pip install -r requirements-test.txt -r requirements-typing.txt $PREFIX/bin/mypy pygit2 test fi diff --git a/requirements-test.txt b/requirements-test.txt index 15e9ecf87..9955deccd 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,4 +1,2 @@ pytest pytest-cov -mypy -types-cffi diff --git a/requirements-typing.txt b/requirements-typing.txt new file mode 100644 index 000000000..c16ede753 --- /dev/null +++ b/requirements-typing.txt @@ -0,0 +1,2 @@ +mypy +types-cffi diff --git a/requirements-wheel.txt b/requirements-wheel.txt new file mode 100644 index 000000000..e14d9f0a7 --- /dev/null +++ b/requirements-wheel.txt @@ -0,0 +1 @@ +cibuildwheel ~= 3.3