From d14e8f9980988cdcb29585db259e9d076ec4c33e Mon Sep 17 00:00:00 2001 From: Miles Granger Date: Sun, 3 Mar 2024 07:07:26 +0100 Subject: [PATCH] fixup --- .github/workflows/CI.yml | 20 +++++++------------- cramjam-python/Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 179e8240..c0328f30 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -268,8 +268,8 @@ jobs: fail-fast: false matrix: os: - # - ubuntu-latest - # - macos-latest + - ubuntu-latest + - macos-latest - windows-latest python: - pypy-3.9 @@ -286,35 +286,29 @@ jobs: target/ key: ${{ runner.os }}-${{matrix.python}}-cargo-${{ hashFiles('**/Cargo.lock') }} - uses: actions/setup-python@v4 - if: ${{ matrix.os != 'windows-latest' }} with: python-version: ${{ matrix.python }} - - uses: actions/setup-python@v4 - if: ${{ matrix.os == 'windows-latest' }} - with: - python-version: ${{ matrix.python }} - architecture: x86 - name: Build Wheels - cramjam-python uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} manylinux: auto - args: -i ${{ matrix.python }} --release --out dist --manifest-path cramjam-python/Cargo.toml + args: -i ${{ matrix.python }} --release --features generate-import-lib --out dist --manifest-path cramjam-python/Cargo.toml - name: Build Wheels - cramjam-cli uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} manylinux: auto - args: -i ${{ matrix.python }} --release --out dist --manifest-path cramjam-cli/Cargo.toml + args: -i ${{ matrix.python }} --release --features generate-import-lib --out dist --manifest-path cramjam-cli/Cargo.toml - name: cramjam test run: | - pip install cramjam --no-index --find-links dist cd cramjam-python - pip install .[dev] + maturin develop --release --features generate-import-lib --extras dev python -m pytest tests -v - name: cramjam-cli test run: | - pip install cramjam-cli --no-index --find-links dist + cd cramjam-cli + maturin develop --release --features generate-import-lib --extras dev cramjam-cli --help - name: Upload wheels uses: actions/upload-artifact@v3 diff --git a/cramjam-python/Cargo.toml b/cramjam-python/Cargo.toml index 736c799a..d9c2dfce 100644 --- a/cramjam-python/Cargo.toml +++ b/cramjam-python/Cargo.toml @@ -13,7 +13,7 @@ name = "cramjam" crate-type = ["cdylib"] [features] -default = ["extension-module", "generate-import-lib"] +default = ["extension-module"] extension-module = ["pyo3/extension-module"] generate-import-lib = ["pyo3/generate-import-lib"]