diff --git a/pyproject.toml b/pyproject.toml index e6de53a..24c0ea2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,6 +57,7 @@ package-dir = { '' = '.' } # without this line, C++ source files get included in [tool.cibuildwheel] build = "cp{37,38,39,31*}-*" skip = ["*cp37-musllinux*", "*musllinux_aarch64*", "cp{38,39,31*}-macosx_x86_64"] +build-frontend = "build" test-command = 'python -m unittest discover "{project}/tests/" --verbose' test-extras = ["tests"] manylinux-x86_64-image = "manylinux2014" diff --git a/tests/__init__.py b/tests/__init__.py index c0dacea..ddd67bd 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,3 @@ import os.path -import unittest images_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'images') diff --git a/tests/test_bc1.py b/tests/test_bc1.py index 97063c9..c886a6d 100644 --- a/tests/test_bc1.py +++ b/tests/test_bc1.py @@ -1,9 +1,7 @@ import unittest -import os.path from parameterized import parameterized, parameterized_class -import quicktex from quicktex.s3tc.bc1 import BC1Block, BC1Texture, BC1Encoder, BC1Decoder -from tests.images import BC1Blocks, image_path +from .images import BC1Blocks from PIL import Image, ImageChops in_endpoints = ((253, 254, 255), (65, 70, 67)) # has some small changes that should encode the same diff --git a/tests/test_bc4.py b/tests/test_bc4.py index 5436886..207dee1 100644 --- a/tests/test_bc4.py +++ b/tests/test_bc4.py @@ -1,7 +1,7 @@ import unittest from parameterized import parameterized, parameterized_class from quicktex.s3tc.bc4 import BC4Block, BC4Texture, BC4Encoder, BC4Decoder -from tests.images import BC4Blocks +from .images import BC4Blocks from PIL import Image, ImageChops diff --git a/tests/test_texture.py b/tests/test_texture.py index 5d3323f..df4750e 100644 --- a/tests/test_texture.py +++ b/tests/test_texture.py @@ -1,6 +1,6 @@ import unittest import os.path -from tests.images import image_path +from .images import image_path from quicktex import RawTexture from PIL import Image