Skip to content

Commit

Permalink
Delete README.Md
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelsty authored and Raphael Sourty committed May 26, 2024
1 parent 3492ae5 commit 6d4d1fe
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 918 deletions.
137 changes: 0 additions & 137 deletions .github/workflows/CI.yml

This file was deleted.

114 changes: 114 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: wheels

on:
push:
branches:
- main
tags:
- '**'
pull_request: {}

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9']

env:
PYTHON: ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2

- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

build:
name: build py3.${{ matrix.python-version }} on ${{ matrix.os }}
needs:
- test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10']

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

- name: set up python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: set up rust
if: matrix.os != 'ubuntu-latest'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- name: install python dependencies
run: pip install -U setuptools wheel twine cibuildwheel

- name: build sdist
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
run: |
pip install -U setuptools-rust
python setup.py sdist
- name: build ${{ matrix.os }} binaries
run: cibuildwheel --output-dir dist
env:
CIBW_BUILD: 'cp3${{ matrix.python-version }}-*'
CIBW_SKIP: '*-win32'
CIBW_PLATFORM: ${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'macos-latest' && 'macos' || matrix.os == 'windows-latest' && 'windows' }}
CIBW_TEST_REQUIRES: 'pytest'
CIBW_TEST_COMMAND: 'pytest {project}/tests -s'
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH"'
CIBW_ENVIRONMENT_WINDOWS: 'PATH="$UserProfile\.cargo\bin;$PATH"'
CIBW_MANYLINUX_X86_64_IMAGE: 'manylinux2014'
CIBW_MANYLINUX_I686_IMAGE: 'manylinux2014'
CIBW_BEFORE_BUILD: >
pip install -U setuptools-rust &&
rustup default nightly &&
rustup show
CIBW_BEFORE_BUILD_LINUX: >
pip install -U setuptools-rust &&
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y &&
rustup show
- name: build windows 32bit binaries
if: matrix.os == 'windows-latest'
run: cibuildwheel --output-dir dist
env:
CIBW_BUILD: 'cp3${{ matrix.python-version }}-win32'
CIBW_PLATFORM: windows
CIBW_TEST_REQUIRES: 'pytest'
CIBW_TEST_COMMAND: 'pytest {project}/tests -s'
CIBW_ENVIRONMENT: 'PATH="$UserProfile\.cargo\bin;$PATH"'
CIBW_BEFORE_BUILD: >
pip install -U setuptools-rust &&
rustup toolchain install nightly-i686-pc-windows-msvc &&
rustup default nightly-i686-pc-windows-msvc &&
rustup override set nightly-i686-pc-windows-msvc &&
rustup show
- name: list dist files
run: ls -lh dist/

- name: twine check
run: twine check dist/*

- name: upload to pypi
if: startsWith(github.ref, 'refs/tags/')
run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
9 changes: 0 additions & 9 deletions README.Md

This file was deleted.

Loading

0 comments on commit 6d4d1fe

Please sign in to comment.