-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
24 changed files
with
478 additions
and
281 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 |
---|---|---|
|
@@ -6,7 +6,6 @@ on: | |
- main | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build_and_test: | ||
name: Test | ||
|
@@ -24,8 +23,8 @@ jobs: | |
macos: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
python-version: [ '3.7', '3.8', '3.9'] | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
|
@@ -47,77 +46,76 @@ jobs: | |
name: wheels | ||
path: dist | ||
|
||
|
||
linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [x86_64] | ||
python-version: [ '3.7', '3.8', '3.9'] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Build source wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
manylinux: auto | ||
args: --release --out dist --sdist -m Cargo.toml -i ${{ matrix.python-version }} | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
manylinux: auto | ||
args: --release --out dist -m Cargo.toml -i ${{ matrix.python-version }} | ||
- name: Install built wheel | ||
if: matrix.target == 'x86_64' | ||
run: | | ||
pip install texy --no-index --find-links dist --force-reinstall | ||
python -c "import texy" | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Build source wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
manylinux: auto | ||
args: --release --out dist --sdist -m Cargo.toml -i ${{ matrix.python-version }} | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
manylinux: auto | ||
args: --release --out dist -m Cargo.toml -i ${{ matrix.python-version }} | ||
- name: Install built wheel | ||
if: matrix.target == 'x86_64' | ||
run: | | ||
pip install texy --no-index --find-links dist --force-reinstall | ||
python -c "import texy" | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
musllinux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: | ||
- x86_64-unknown-linux-musl | ||
python-version: [ '3.7', '3.8', '3.9'] | ||
python-version: ["3.7", "3.8", "3.9"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
manylinux: musllinux_1_2 | ||
args: --release --out dist -m Cargo.toml -i ${{ matrix.python-version }} | ||
- name: Install built wheel | ||
if: matrix.target == 'x86_64-unknown-linux-musl' | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: alpine:latest | ||
options: -v ${{ github.workspace }}:/io -w /io | ||
run: | | ||
apk add py3-pip | ||
pip3 install -U pip | ||
pip3 install texy --no-index --find-links /io/dist/ --force-reinstall | ||
python3 -c "import texy" | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
manylinux: musllinux_1_2 | ||
args: --release --out dist -m Cargo.toml -i ${{ matrix.python-version }} | ||
- name: Install built wheel | ||
if: matrix.target == 'x86_64-unknown-linux-musl' | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: alpine:latest | ||
options: -v ${{ github.workspace }}:/io -w /io | ||
run: | | ||
apk add py3-pip | ||
pip3 install -U pip | ||
pip3 install texy --no-index --find-links /io/dist/ --force-reinstall | ||
python3 -c "import texy" | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
musllinux-cross: | ||
runs-on: ubuntu-latest | ||
|
@@ -128,41 +126,41 @@ jobs: | |
arch: aarch64 | ||
- target: armv7-unknown-linux-musleabihf | ||
arch: armv7 | ||
python-version: [ '3.7', '3.8', '3.9'] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.platform.target }} | ||
manylinux: musllinux_1_2 | ||
args: --release --out dist -m Cargo.toml -i ${{ matrix.python-version }} | ||
- uses: uraimo/[email protected] | ||
name: Install built wheel | ||
with: | ||
arch: ${{ matrix.platform.arch }} | ||
distro: alpine_latest | ||
githubToken: ${{ github.token }} | ||
install: | | ||
apk add py3-pip | ||
pip3 install -U pip | ||
run: | | ||
pip3 install texy --no-index --find-links dist/ --force-reinstall | ||
python3 -c "import texy" | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.platform.target }} | ||
manylinux: musllinux_1_2 | ||
args: --release --out dist -m Cargo.toml -i ${{ matrix.python-version }} | ||
- uses: uraimo/[email protected] | ||
name: Install built wheel | ||
with: | ||
arch: ${{ matrix.platform.arch }} | ||
distro: alpine_latest | ||
githubToken: ${{ github.token }} | ||
install: | | ||
apk add py3-pip | ||
pip3 install -U pip | ||
run: | | ||
pip3 install texy --no-index --find-links dist/ --force-reinstall | ||
python3 -c "import texy" | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
# if: "startsWith(github.ref, 'refs/tags/')" | ||
needs: [ macos, linux, musllinux, musllinux-cross] | ||
needs: [macos, linux, musllinux, musllinux-cross] | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
|
@@ -173,4 +171,4 @@ jobs: | |
uses: PyO3/maturin-action@v1 | ||
with: | ||
command: upload | ||
args: --skip-existing * | ||
args: --skip-existing * |
This file was deleted.
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
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 @@ | ||
.SHELL := /bin/bash | ||
.PHONY: all format lint test test-rs build-dev build-release | ||
|
||
all: lint format test test-rs | ||
@echo "All done!" | ||
|
||
format: | ||
@echo "Running formatter..." | ||
isort . | ||
black . | ||
|
||
lint: | ||
@echo "Running linter..." | ||
-ruff . --fix | ||
|
||
test: | ||
@echo "Running tests..." | ||
-pytest -vs tests/ | ||
|
||
test-rs: | ||
@echo "Running tests..." | ||
-cargo test -- --nocapture | ||
|
||
build-dev: | ||
@echo "Building dev..." | ||
-maturin develop | ||
|
||
build-release: | ||
@echo "Building release..." | ||
-maturin build --release |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "texy" | |
description = "Supercharge text processing" | ||
readme = "README.md" | ||
requires-python = ">=3.6" | ||
version = "0.0.1-alpha2" | ||
version = "0.0.2-alpha" | ||
authors = [ | ||
{ name="Mamunur Rahaman Mamun", email="[email protected]" }, | ||
] | ||
|
@@ -13,8 +13,11 @@ homepage = "https://github.com/mdmmn378/texy" | |
repository = "https://github.com/mdmmn378/texy" | ||
|
||
[build-system] | ||
requires = ["maturin>=0.14,<0.15"] | ||
requires = ["maturin>=1.0.0,<=2.0.0"] | ||
build-backend = "maturin" | ||
|
||
[tool.maturin] | ||
features = ["pyo3/extension-module"] | ||
|
||
[tool.isort] | ||
profile = "black" |
Oops, something went wrong.