Browse Source

update `test/test-release.sh -S`, `MANIFEST.in`

The MMGen Project 10 months ago
parent
commit
7374b53130
2 changed files with 14 additions and 13 deletions
  1. 8 7
      MANIFEST.in
  2. 6 6
      test/test-release.sh

+ 8 - 7
MANIFEST.in

@@ -1,8 +1,7 @@
-include README.md SIGNING_KEYS.pub LICENSE INSTALL eth-requirements.txt
+include README.md SIGNING_KEYS.pub LICENSE INSTALL *-requirements.txt
 
-include doc/*
-include doc/*/*
-include doc/*/*/*
+include doc/release-notes/*
+include doc/wiki/*/*
 
 include examples/*
 
@@ -15,9 +14,11 @@ include test/*.py
 include test/*/*.py
 include test/ref/*
 include test/ref/*/*
+include test/ref/*/*/*
 include test/ref/*/*/*/*
-include test/overlay/fakemods/*.py
-include test/overlay/fakemods/*/*.py
-include test/overlay/fakemods/*/*/*/*.py
+include test/overlay/fakemods/mmgen/*.py
+include test/overlay/fakemods/mmgen/*/*.py
+include test/overlay/fakemods/mmgen/*/*/*/*.py
 
 include test/test-release.sh
+include test/test-release.d/*.sh

+ 6 - 6
test/test-release.sh

@@ -236,16 +236,18 @@ done
 
 shift $((OPTIND-1))
 
-[ "$SDIST_TEST" -a -z "$MMGEN_TEST_RELEASE_IN_SDIST" ] && {
+set -e
+
+[ "$SDIST_TEST" -a -z "$TEST_RELEASE_IN_SDIST" ] && {
 	test_dir='.sdist-test'
-	rm -rf build dist MMGen.egg-info $test_dir
+	rm -rf build dist *.egg-info $test_dir
 	python3 -m build --no-isolation --sdist
 	mkdir $test_dir
 	tar -C $test_dir -axf dist/*.tar.gz
-	cd $test_dir/MMGen-*
+	cd $test_dir/mmgen-*
 	python3 setup.py build_ext --inplace
 	echo -e "\n${BLUE}Running 'test/test-release $ORIG_ARGS'$RESET $YELLOW[PWD=$PWD]$RESET\n"
-	export MMGEN_TEST_RELEASE_IN_SDIST=1
+	export TEST_RELEASE_IN_SDIST=1
 	test/test-release.sh $ORIG_ARGS
 	exit
 }
@@ -264,8 +266,6 @@ case $1 in
 	*)         tests="$*" ;;
 esac
 
-set -e
-
 rounds_min=$((rounds / 2))
 for n in 2 5 10 20 50 100 200 500 1000; do
 	eval "rounds${n}x=$((rounds*n))"