Skip to content

Commit

Permalink
remove cython
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 3, 2024
1 parent f5b0cd9 commit be61ec2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 135 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/_build_wheels.yaml

This file was deleted.

7 changes: 1 addition & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ jobs:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
path: dist
merge-multiple: true

- run: pipx run build
- run: pipx run twine upload dist/* --disable-progress-bar
env:
TWINE_USERNAME: '__token__'
Expand Down
56 changes: 1 addition & 55 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,66 +14,13 @@ concurrency:
cancel-in-progress: true

jobs:
build:
uses: ./.github/workflows/_build_wheels.yaml

twine-check:
name: Check dist
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
path: dist
merge-multiple: true

- run: pipx run build
- run: pipx run twine check --strict dist/*

test-cp-build:
needs: [ build ]
strategy:
fail-fast: false
matrix:
os:
- "windows-latest"
- "ubuntu-22.04"
- "macos-13"
- "macos-14"
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "~3.13.0-rc.1"
exclude:
- { os: macos-14, python-version: '3.8' }
- { os: macos-14, python-version: '3.9' }

runs-on: "${{ matrix.os }}"

steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
pattern: wheels-*
path: dist
merge-multiple: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- run: python -m pip install -U pip
- run: pip install php_serialize --no-index --find-links ./dist/
- run: pip install -r requirements.txt

- run: pytest --assert-pkg-compiled=true

test-cp:
strategy:
fail-fast: false
Expand Down Expand Up @@ -153,7 +100,6 @@ jobs:
needs:
- test-cp
- test-pp
- test-cp-build
- twine-check
runs-on: 'ubuntu-latest'
steps:
Expand Down
15 changes: 0 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@ include = ['src/']
[tool.hatch.build.targets.wheel]
packages = ["src/php_serialize"]

[tool.hatch.build.targets.wheel.hooks.cython]
enable-by-default = false
dependencies = ["hatch-cython<1"]

[tool.hatch.build.targets.wheel.hooks.cython.options]
directives = { boundscheck = true, nonecheck = false, language_level = 3, binding = true }
src = 'php_serialize'

[tool.cibuildwheel]
before-build = "python cleanup.py"
skip = "pp* *musllinux*"

[tool.cibuildwheel.environment]
HATCH_BUILD_HOOKS_ENABLE = "1"

[tool.black]
target-version = ['py38']
line-length = 88
Expand Down

0 comments on commit be61ec2

Please sign in to comment.