diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index ac090166..e32dd520 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -50,13 +50,17 @@ jobs: if: matrix.cffi == 'yes' run: pip install cffi - - name: Install dependencies + - name: Install dependencies (testing only) + run: | + pip install pycryptodome-test-vectors + + - name: Install package run: | - pip install pycryptodome-test-vectors setuptools + pip install . - name: Test run: | - python setup.py test + python -m Crypto.SelfTest build_python_27: # GitHub Actions will not setup Python 2.7 since June 2023 @@ -101,13 +105,17 @@ jobs: if: matrix.cffi == 'yes' run: python -m pip install cffi - - name: Install dependencies + - name: Install dependencies (testing only) run: | python -m pip install pycryptodome-test-vectors + - name: Install package + run: | + python -m pip install . + - name: Test run: | - python -bb setup.py test + python -m Crypto.SelfTest mypy: runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..fed528d4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 7b94fb05..3fab4dff 100644 --- a/setup.py +++ b/setup.py @@ -37,6 +37,8 @@ import shutil import struct +sys.path.append(os.getcwd()) + from compiler_opt import set_compiler_options