Skip to content

Commit 86e7017

Browse files
codexByron
authored andcommitted
build(gix): preserve the extra in local source distributions
Include `gix-requirements.txt` explicitly alongside the other requirement files so source distributions can resolve the optional backend with every supported setuptools version. Keep tox's wheel builder in `.pkg-gix`, whose package installation is restricted to the local wheel directory. Built a source archive locally, verified that it contains the new requirements file, and rebuilt its wheel without accessing a package index. The rebuilt wheel declares `Provides-Extra: gix` and the conditional `GixPython` dependency. Tox itself was not available locally; the interpreter-based test runner and its offline installation test were exercised instead.
1 parent c0fdf75 commit 86e7017

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎MANIFEST.in‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ include LICENSE
55
include README.md
66
include VERSION
77
include requirements.txt
8+
include gix-requirements.txt
89
include test-requirements.txt
910
include git/py.typed
1011

‎tox.ini‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ set_env = GIT_PYTHON_BACKEND=gix
2828
description = Run the suite with released GixPython and CLI fallback
2929
base_python = python3
3030
package_env = .pkg-gix
31+
wheel_build_env = .pkg-gix
3132
extras = test, gix
3233
commands = python test/run-local.py {posargs:--backend-report=.cache/gix-coverage.json}
3334

0 commit comments

Comments
 (0)