diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index e91d9f4..facc71f 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -30,11 +30,11 @@ 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 @@ -42,7 +42,7 @@ jobs: 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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -138,9 +138,9 @@ 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/cibuildwheel@v2.10.1 env: @@ -148,10 +148,10 @@ jobs: 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' @@ -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: @@ -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 diff --git a/README.rst b/README.rst index 5ab9cb6..dc65e60 100644 --- a/README.rst +++ b/README.rst @@ -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