Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
zqfang committed Aug 28, 2023
1 parent bc99967 commit 6119159
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ jobs:
runs-on: ubuntu-latest
needs: ["build_wheels","build-win32-wheels"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.7'
python-version: '3.8'
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install deps
run: pip install -U twine setuptools-rust
- name: Build sdist
run: python setup.py sdist
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./dist/*
- name: Upload to PyPI
Expand All @@ -58,11 +58,11 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.7'
python-version: '3.8'
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -82,7 +82,7 @@ jobs:
CIBW_BEFORE_BUILD: pip install -U setuptools-rust
# CIBW_TEST_REQUIRES: numpy scipy pandas requests
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- name: Upload to PyPI
Expand All @@ -98,16 +98,16 @@ jobs:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.7'
python-version: '3.8'
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Install cibuildwheel
Expand All @@ -127,7 +127,7 @@ jobs:
# CIBW_TEST_REQUIRES: numpy scipy pandas requests
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/
CIBW_ARCHS_LINUX: aarch64
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- name: Upload to PyPI
Expand All @@ -138,20 +138,20 @@ jobs:

build-mac-arm-wheels:
name: Build wheels on macos for arm and universal2
runs-on: macos-10.15
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build wheels
uses: joerick/[email protected]
env:
CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin
CIBW_ARCHS_MACOS: arm64 universal2
CIBW_BEFORE_BUILD: pip install -U setuptools-rust
CIBW_ENVIRONMENT: CARGO_BUILD_TARGET="aarch64-apple-darwin" PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')"
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.8'
Expand All @@ -168,11 +168,11 @@ jobs:
name: Build wheels on win32
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.7'
python-version: '3.8'
architecture: 'x86'
- uses: actions-rs/toolchain@v1
with:
Expand All @@ -193,7 +193,7 @@ jobs:
CIBW_BEFORE_BUILD: pip install -U setuptools-rust
# CIBW_TEST_REQUIRES: numpy scipy pandas requests
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
- name: Upload to PyPI
Expand Down
17 changes: 17 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,29 @@ Installation
# or use pip to install the latest release
$ pip install gseapy
| For `ARM-MacOS M1/2-Chip` users, Github build did not have a M1-runner for MacOS. you need do compile rust code by yourself
.. code:: shell
# install rust compiler
curl https://sh.rustup.rs -sSf | sh -s -- -y
# export rust compiler
export PATH="$PATH:$HOME/.cargo/bin"
# install gseapy
pip install gseapy
| You may instead want to use the development version from Github, by running
.. code:: shell
# you need to install rust first to compile the code
# rust: https://www.rust-lang.org/tools/install
curl https://sh.rustup.rs -sSf | sh -s -- -y
# export rust compiler
export PATH="$PATH:$HOME/.cargo/bin"
# install
$ pip install git+git://github.com/zqfang/gseapy.git#egg=gseapy
Dependency
Expand Down

0 comments on commit 6119159

Please sign in to comment.