From 3314660aedd93b7a32a0770a1afd7267b3689202 Mon Sep 17 00:00:00 2001 From: Helder Eijs Date: Wed, 13 Sep 2023 20:39:12 +0200 Subject: [PATCH] Add initial pyproject.toml --- .github/workflows/integration.yml | 18 +++++++++++++----- pyproject.toml | 3 +++ setup.py | 2 ++ 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 pyproject.toml 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