pymysql: fix build (#10008)

Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
DavidKorczynski 2023-03-31 10:28:43 +01:00 committed by GitHub
parent 2007eca5b7
commit cc1237430a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 14 deletions

View File

@ -14,10 +14,10 @@
# limitations under the License.
#
################################################################################
git apply --ignore-space-change --ignore-whitespace $SRC/fuzz_patch.diff
pip3 install .
python3 -m pip install .
# Build fuzzers in $OUT.
for fuzzer in $(find $SRC -name 'fuzz_*.py'); do
compile_python_fuzzer $fuzzer --hidden-import=pymysql.constants
compile_python_fuzzer $fuzzer
done

View File

@ -1,11 +0,0 @@
diff --git a/pyproject.toml b/pyproject.toml
index 3793a8c..2a61b7a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -45,5 +45,5 @@ build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
namespaces = false
-include = ["pymysql"]
+include = ["pymysql", "pymysql.constants"]
exclude = ["tests*", "pymysql.tests*"]