-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abd6b76
commit 963b688
Showing
32 changed files
with
3,366 additions
and
53 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,63 +13,21 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} for ${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
arch: [auto] | ||
requires-python: [">=3.8,<3.10", ">=3.10,<3.12"] | ||
include: | ||
- os: ubuntu-latest | ||
arch: aarch64 | ||
requires-python: ">=3.8,<3.9" | ||
- os: ubuntu-latest | ||
arch: aarch64 | ||
requires-python: ">=3.9,<3.10" | ||
- os: ubuntu-latest | ||
arch: aarch64 | ||
requires-python: ">=3.10,<3.11" | ||
- os: ubuntu-latest | ||
arch: aarch64 | ||
requires-python: ">=3.11,<3.12" | ||
- os: macos-latest | ||
arch: universal2 | ||
requires-python: ">=3.8,<3.10" | ||
- os: macos-latest | ||
arch: universal2 | ||
requires-python: ">=3.10,<3.12" | ||
|
||
build_wheel: | ||
name: Build wheel | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: Set up QEMU | ||
if: ${{ matrix.arch == 'aarch64' }} | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: all | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS: ${{ matrix.arch }} | ||
CIBW_PROJECT_REQUIRES_PYTHON: ${{ matrix.requires-python }} | ||
CIBW_BEFORE_BUILD_MACOS: pip install -r CI/requirements-wheel.txt | ||
CIBW_BEFORE_BUILD_WINDOWS: pip install -r CI/requirements-wheel.txt | ||
CIBW_TEST_COMMAND: pytest {project}/CI/test_functionality.py | ||
CIBW_TEST_REQUIRES: pytest requests | ||
CIBW_BUILD_VERBOSITY: 1 | ||
with: | ||
package-dir: . | ||
- name: Build wheel | ||
run: python setup.py bdist_wheel --python-tag py3 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: wheelhouse/*.whl | ||
path: ./dist/*.whl | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
|
@@ -81,14 +39,14 @@ jobs: | |
submodules: recursive | ||
|
||
- name: Build sdist | ||
run: cd python && pipx run build --sdist | ||
run: pipx run build --sdist | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./dist/*.tar.gz | ||
|
||
upload_pypi: | ||
needs: [build_wheels, build_sdist] | ||
needs: [build_wheel, build_sdist] | ||
runs-on: ubuntu-latest | ||
# upload to PyPI on every tag starting with 'v' | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright 2022-2023 XProbe Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from . import _version | ||
|
||
__version__ = _version.get_versions()["version"] | ||
|
||
|
||
def init(): | ||
# register ray backend | ||
from .backends import ray | ||
from .metrics.backends import ray | ||
from .serialization import ray | ||
|
||
del ray | ||
|
||
from . import debug | ||
|
||
del debug |
Oops, something went wrong.