-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from KapiWow/1-windows-support
feat: windows support
- Loading branch information
Showing
13 changed files
with
6,865 additions
and
2,615 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 |
---|---|---|
|
@@ -91,48 +91,47 @@ jobs: | |
cd bindings/extractous-python | ||
pytest -s | ||
# | ||
# windows: | ||
# runs-on: ${{ matrix.platform.runner }} | ||
# strategy: | ||
# matrix: | ||
# platform: | ||
# - runner: windows-latest | ||
# target: x64 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: '3.8' | ||
# architecture: ${{ matrix.platform.target }} | ||
# - uses: graalvm/[email protected] | ||
# with: | ||
# java-version: '22' | ||
# distribution: 'graalvm-community' | ||
# set-java-home: 'true' | ||
# - name: Build wheels | ||
# uses: PyO3/maturin-action@v1 | ||
# with: | ||
# target: ${{ matrix.platform.target }} | ||
# working-directory: "bindings/extractous-python" | ||
# args: --release --out dist --find-interpreter | ||
# sccache: 'true' | ||
# - name: Upload wheels | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: wheels-windows-${{ matrix.platform.target }} | ||
# path: bindings/extractous-python/dist | ||
# - name: pytest | ||
# if: ${{ !startsWith(matrix.platform.target, 'aarch64') }} | ||
# shell: bash | ||
# run: | | ||
# set -e | ||
# python3 -m venv .venv | ||
# source .venv/Scripts/activate | ||
# pip install extractous --find-links bindings/extractous-python/dist --force-reinstall | ||
# pip install pytest scikit-learn | ||
# cd bindings/extractous-python | ||
# pytest -s | ||
windows: | ||
runs-on: ${{ matrix.platform.runner }} | ||
strategy: | ||
matrix: | ||
platform: | ||
- runner: windows-latest | ||
target: x64 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8' | ||
architecture: ${{ matrix.platform.target }} | ||
- uses: graalvm/[email protected] | ||
with: | ||
java-version: '22' | ||
distribution: 'graalvm-community' | ||
set-java-home: 'true' | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.platform.target }} | ||
working-directory: "bindings/extractous-python" | ||
args: --release --out dist --find-interpreter | ||
sccache: 'true' | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheels-windows-${{ matrix.platform.target }} | ||
path: bindings/extractous-python/dist | ||
- name: pytest | ||
if: ${{ !startsWith(matrix.platform.target, 'aarch64') }} | ||
shell: cmd | ||
run: | | ||
python -m venv .venv | ||
.venv\Scripts\activate.bat | ||
pip install extractous --find-links bindings/extractous-python/dist --force-reinstall | ||
pip install pytest scikit-learn | ||
cd bindings\extractous-python | ||
pytest -s | ||
macos: | ||
runs-on: ${{ matrix.platform.runner }} | ||
|
@@ -205,7 +204,7 @@ jobs: | |
publish-to-testpypi: | ||
name: Publish to TestPyPI | ||
# publish to TestPyPI on any push | ||
needs: [linux, macos, sdist] | ||
needs: [linux, macos, windows, sdist] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: testpypi | ||
|
@@ -230,7 +229,7 @@ jobs: | |
name: Publish to PyPI | ||
# only publish to PyPI on tag pushes | ||
if: "startsWith(github.ref, 'refs/tags/')" | ||
needs: [linux, macos, sdist] | ||
needs: [linux, macos, windows, sdist] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
|
@@ -247,4 +246,4 @@ jobs: | |
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
skip-existing: true | ||
packages-dir: bindings/extractous-python/dist | ||
packages-dir: bindings/extractous-python/dist |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "extractous" | ||
version = "0.1.4" | ||
version = "0.1.5" | ||
edition = "2021" | ||
|
||
description = """ | ||
|
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
Oops, something went wrong.