-
-
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
0 parents
commit a820a10
Showing
133 changed files
with
12,336 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{py,toml}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.yml,yaml,json] | ||
indent_style = space | ||
indent_size = 2 |
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,16 @@ | ||
{ | ||
"version": "0.0.23", | ||
"files": { | ||
"docs/CODE_OF_CONDUCT.etch.md": "bf106326ffc75f5167cfde27c997c77c6b97c843a9e392b564355d0e70e50b97", | ||
"LICENSE.etch.md": "d2c12e539d357957b950a54a5477c3a9f87bd2b3ee707be7a4db7adaf5aacc2b", | ||
"py_rust/README.etch.md": "6b7e3780e558f4379df02342f396b807e336b209a409ab00f488948c2638ae37", | ||
"docs/index.etch.md": "6b7e3780e558f4379df02342f396b807e336b209a409ab00f488948c2638ae37", | ||
"CONTRIBUTING.etch.md": "1dd9ac3bddcc64ec6725fce7eebc9c67ba6f4c17eb78ddac956ef2a73bec364c", | ||
"docs/CONTRIBUTING.etch.md": "1dd9ac3bddcc64ec6725fce7eebc9c67ba6f4c17eb78ddac956ef2a73bec364c", | ||
"CODE_OF_CONDUCT.etch.md": "bf106326ffc75f5167cfde27c997c77c6b97c843a9e392b564355d0e70e50b97", | ||
"py_rust/LICENSE.etch.md": "d2c12e539d357957b950a54a5477c3a9f87bd2b3ee707be7a4db7adaf5aacc2b", | ||
"setup.etch.cfg": "76cf2925102bde5a90d4f256f63ecfe535670d1ed11a90e807db6b8839168804", | ||
"README.etch.md": "acc0e64ae7a10a3e901d1ad4454ff3d4e7b9f17ded7cc2b7240a12de09862918", | ||
"docs/LICENSE.etch.md": "d2c12e539d357957b950a54a5477c3a9f87bd2b3ee707be7a4db7adaf5aacc2b" | ||
} | ||
} |
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 @@ | ||
* text=auto eol=lf |
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 @@ | ||
github: [zakstucke] |
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,19 @@ | ||
# Modified from the official one but does run it which we don't want | ||
# https://github.com/pre-commit/action/blob/main/action.yml | ||
|
||
name: install pre-commit | ||
description: "install pre-commit but don't run it" | ||
runs: | ||
using: composite | ||
steps: | ||
- run: python -m pip install pre-commit | ||
shell: bash | ||
- run: python -m pip freeze --local | ||
shell: bash | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} | ||
- name: Make sure pre-commit installed and up to date | ||
shell: bash | ||
run: pre-commit install --install-hooks |
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,66 @@ | ||
--- | ||
# Labels names are important as they are used by Release Drafter to decide | ||
# regarding where to record them in changelog or if to skip them. | ||
# | ||
# The repository labels will be automatically configured using this file and | ||
# the GitHub Action https://github.com/marketplace/actions/github-labeler. | ||
- name: breaking | ||
description: Breaking Changes | ||
color: bfd4f2 | ||
- name: bug | ||
description: Something isn't working | ||
color: d73a4a | ||
- name: build | ||
description: Build System and Dependencies | ||
color: bfdadc | ||
- name: ci | ||
description: Continuous Integration | ||
color: 4a97d6 | ||
- name: dependencies | ||
description: Pull requests that update a dependency file | ||
color: 0366d6 | ||
- name: documentation | ||
description: Improvements or additions to documentation | ||
color: 0075ca | ||
- name: duplicate | ||
description: This issue or pull request already exists | ||
color: cfd3d7 | ||
- name: enhancement | ||
description: New feature or request | ||
color: a2eeef | ||
- name: github_actions | ||
description: Pull requests that update Github_actions code | ||
color: "000000" | ||
- name: good first issue | ||
description: Good for newcomers | ||
color: 7057ff | ||
- name: help wanted | ||
description: Extra attention is needed | ||
color: 008672 | ||
- name: invalid | ||
description: This doesn't seem right | ||
color: e4e669 | ||
- name: performance | ||
description: Performance | ||
color: "016175" | ||
- name: python | ||
description: Pull requests that update Python code | ||
color: 2b67c6 | ||
- name: question | ||
description: Further information is requested | ||
color: d876e3 | ||
- name: refactoring | ||
description: Refactoring | ||
color: ef67c4 | ||
- name: removal | ||
description: Removals and Deprecations | ||
color: 9ae7ea | ||
- name: style | ||
description: Style | ||
color: c120e5 | ||
- name: testing | ||
description: Testing | ||
color: b1fc6f | ||
- name: wontfix | ||
description: This will not be worked on | ||
color: ffffff |
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,29 @@ | ||
categories: | ||
- title: ":boom: Breaking Changes" | ||
label: "breaking" | ||
- title: ":rocket: Features" | ||
label: "enhancement" | ||
- title: ":fire: Removals and Deprecations" | ||
label: "removal" | ||
- title: ":beetle: Fixes" | ||
label: "bug" | ||
- title: ":racehorse: Performance" | ||
label: "performance" | ||
- title: ":rotating_light: Testing" | ||
label: "testing" | ||
- title: ":construction_worker: Continuous Integration" | ||
label: "ci" | ||
- title: ":books: Documentation" | ||
label: "documentation" | ||
- title: ":hammer: Refactoring" | ||
label: "refactoring" | ||
- title: ":lipstick: Style" | ||
label: "style" | ||
- title: ":package: Dependencies" | ||
labels: | ||
- "dependencies" | ||
- "build" | ||
template: | | ||
## Changes | ||
$CHANGES |
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,27 @@ | ||
name: Labeler | ||
|
||
# Run when the main branch is updated: (i.e. PR merged) | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
paths: | ||
- ".github/labels.yml" | ||
- ".github/workflows/labeler.yml" | ||
|
||
jobs: | ||
labeler: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
issues: write | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Labeler | ||
uses: crazy-max/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
yaml-file: .github/labels.yml | ||
skip-delete: true |
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,94 @@ | ||
name: "Py-Rust Build" | ||
|
||
# Originally derived from https://github.com/samuelcolvin/watchfiles/blob/main/.github/workflows/ci.yml | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
new-sha: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
name: > | ||
build on ${{ matrix.platform || matrix.os }} (${{ matrix.target }} - ${{ matrix.manylinux || 'auto' }}) | ||
strategy: | ||
fail-fast: true # Want release to cancel if any fail, so may as well fail fast to save some minutes | ||
matrix: | ||
# os: [ubuntu, macos, windows] # see desc below on windows disable reason | ||
os: [ubuntu, macos] | ||
target: [x86_64, aarch64] | ||
manylinux: [auto] | ||
include: | ||
# Windows temporarily disabled - for some reason win aarch64 always fails with ld-link: error: could not open 'python311.lib': no such file or directory | ||
# Re-enable and fix (might be fixed by updates automatically) when windows needed | ||
# - os: windows | ||
# ls: dir | ||
# - os: windows | ||
# ls: dir | ||
# target: i686 | ||
# python-architecture: x86 | ||
# - os: windows | ||
# ls: dir | ||
# target: aarch64 | ||
- os: ubuntu | ||
platform: linux | ||
target: i686 | ||
- os: ubuntu | ||
platform: linux | ||
target: armv7 | ||
- os: ubuntu | ||
platform: linux | ||
target: ppc64le | ||
- os: ubuntu | ||
platform: linux | ||
target: s390x | ||
# musllinux | ||
- os: ubuntu | ||
platform: linux | ||
target: x86_64 | ||
manylinux: musllinux_1_1 | ||
- os: ubuntu | ||
platform: linux | ||
target: aarch64 | ||
manylinux: musllinux_1_1 | ||
|
||
runs-on: ${{ matrix.os }}-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.new-sha }} | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.12" | ||
architecture: ${{ matrix.python-architecture || 'x64' }} | ||
|
||
- name: copy in README and LICENSE from root | ||
run: cp README.md py_rust/README.md && cp LICENSE.md py_rust/LICENSE.md | ||
|
||
- name: build sdist | ||
if: ${{ matrix.os == 'ubuntu' && matrix.target == 'x86_64' && matrix.manylinux == 'auto' }} | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
command: sdist | ||
args: --manifest-path py_rust/Cargo.toml --out py_rust/dist | ||
|
||
- name: build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
manylinux: ${{ matrix.manylinux || 'auto' }} | ||
args: --manifest-path py_rust/Cargo.toml --release --out py_rust/dist --interpreter '3.8 3.9 3.10 3.11 3.12' | ||
rust-toolchain: stable | ||
docker-options: -e CI | ||
|
||
- run: ${{ matrix.ls || 'ls -lh' }} py_rust/dist/ | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: py_rust_build_files | ||
path: py_rust/dist |
Oops, something went wrong.