updated setuptools min version and renamed dev req file #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish Wheel | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# macos-13 is an intel runner, macos-14 is apple silicon | |
os: [ubuntu-latest, macos-13, macos-14] | |
python_version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Install setuptools | |
run: | | |
python -m pip install --upgrade pip | |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable | |
echo "PATH=${PATH}:${HOME}/.cargo/bin" >> "$GITHUB_ENV" | |
rustc --version | |
python -m pip install build setuptools setuptools-rust | |
- name: Build wheels | |
run: | |
python -m build --outdir wheelhouse | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: esat-wheels-${{ matrix.os }}-py${{matrix.python_version}} | |
path: ./wheelhouse/*.whl | |
build_windows_wheel: | |
name: Build wheels on windows-latest | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python_version: [ "3.10", "3.11", "3.12" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Install setuptools | |
run: | | |
python -m pip install --upgrade pip | |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable | |
echo "${HOME}/.cargo/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
python -m pip install build setuptools setuptools-rust | |
- name: Build wheels | |
run: python -m build --outdir wheelhouse | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: esat-wheels-windows-py${{matrix.python_version}} | |
path: ./wheelhouse/*.whl |