mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-18 20:47:54 +00:00
Make hatchling write us a _version.py when running the tests
Co-authored-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
parent
086f93432c
commit
4de3508904
@ -132,7 +132,8 @@
|
|||||||
[ tahoe-lafs ] ++
|
[ tahoe-lafs ] ++
|
||||||
tahoe-lafs.passthru.extras.i2p ++
|
tahoe-lafs.passthru.extras.i2p ++
|
||||||
tahoe-lafs.passthru.extras.tor ++
|
tahoe-lafs.passthru.extras.tor ++
|
||||||
tahoe-lafs.passthru.extras.unittest
|
tahoe-lafs.passthru.extras.unittest ++
|
||||||
|
[ hatchling hatch-vcs ]
|
||||||
)).overrideAttrs (old: {
|
)).overrideAttrs (old: {
|
||||||
# See the similar override in makeRuntimeEnv'.
|
# See the similar override in makeRuntimeEnv'.
|
||||||
name = packageName pyVersion;
|
name = packageName pyVersion;
|
||||||
@ -198,9 +199,11 @@
|
|||||||
program =
|
program =
|
||||||
let
|
let
|
||||||
python = "${makeTestEnv pyVersion}/bin/python";
|
python = "${makeTestEnv pyVersion}/bin/python";
|
||||||
|
hatchling = "${makeTestEnv pyVersion}/bin/hatchling";
|
||||||
in
|
in
|
||||||
writeScript "unit-tests"
|
writeScript "unit-tests"
|
||||||
''
|
''
|
||||||
|
${hatchling} build --hooks-only # Write _version.py
|
||||||
export TAHOE_LAFS_HYPOTHESIS_PROFILE=ci
|
export TAHOE_LAFS_HYPOTHESIS_PROFILE=ci
|
||||||
export PYTHONPATH=$PWD/src
|
export PYTHONPATH=$PWD/src
|
||||||
${python} -m twisted.trial "$@"
|
${python} -m twisted.trial "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user