Skip to content

Commit

Permalink
merge origin/main
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Dec 28, 2023
1 parent f486834 commit 2d98dd5
Show file tree
Hide file tree
Showing 534 changed files with 8,600 additions and 5,403 deletions.
11 changes: 4 additions & 7 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
* @ritchie46
* @ritchie46 @stinodego @orlp @c-peters

/.github/ @ritchie46 @stinodego
/crates/ @ritchie46 @orlp
/crates/polars-sql/ @ritchie46 @orlp @universalmind303
/crates/polars-time/ @ritchie46 @orlp @MarcoGorelli
/py-polars/ @ritchie46 @stinodego @alexander-beedie @MarcoGorelli
/docs/ @ritchie46 @c-peters @stinodego
/crates/polars-sql/ @ritchie46 @stinodego @orlp @c-peters @universalmind303
/crates/polars-time/ @ritchie46 @stinodego @orlp @c-peters @MarcoGorelli
/py-polars/ @ritchie46 @stinodego @orlp @c-peters @alexander-beedie @MarcoGorelli
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ body:
label: Link
description: >
Provide a link to the existing documentation, if applicable.
placeholder: ex. https://pola-rs.github.io/polars/docs/python/dev/...
placeholder: ex. https://docs.pola.rs/docs/python/dev/...
validations:
required: false
2 changes: 1 addition & 1 deletion .github/workflows/docs-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
working-directory: py-polars/docs
env:
SPHINXOPTS: -W --jobs=auto
POLARS_VERSION: ${{ github.event.client_payload.tag }}
POLARS_VERSION: ${{ github.event.client_payload.tag || 'main' }}
run: make html

- name: Deploy Python docs for latest development version
Expand Down
35 changes: 16 additions & 19 deletions .github/workflows/lint-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,28 @@ concurrency:
cancel-in-progress: true

jobs:
lint-python:
ruff:
runs-on: ubuntu-latest
defaults:
run:
working-directory: py-polars

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install Python dependencies
run: pip install -r requirements-lint.txt

- name: Run ruff linter
run: ruff check --no-fix .
- name: Get ruff version from requirements file
id: version
run: |
VERSION=$(grep -m 1 -oP 'ruff==\K(.*)' py-polars/requirements-lint.txt)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Run ruff formatter
run: ruff format --diff .
- uses: chartboost/ruff-action@v1
with:
src: py-polars/
version: ${{ steps.version.outputs.version }}
args: check --no-fix

- name: Run blackdoc
run: blackdoc --diff .
- uses: chartboost/ruff-action@v1
with:
src: py-polars/
version: ${{ steps.version.outputs.version }}
args: format --diff

mypy:
runs-on: ubuntu-latest
Expand Down
27 changes: 22 additions & 5 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ jobs:
- os: windows-32gb-ram
architecture: aarch64

env:
SED_INPLACE: ${{ matrix.os == 'macos-latest' && '-i ''''' || '-i'}}

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -118,19 +121,33 @@ jobs:
- name: Add bigidx feature
if: matrix.package == 'polars-u64-idx'
run: tomlq -i -t '.dependencies.polars.features += ["bigidx"]' py-polars/Cargo.toml
- name: Set _LTS_CPU variable

- name: Set _POLARS_ARCH variable
run: sed $SED_INPLACE 's/^_POLARS_ARCH = \"unknown\"$/_POLARS_ARCH = \"${{ matrix.architecture }}\"/g' py-polars/polars/_cpu_check.py


- name: Set _POLARS_LTS_CPU variable
if: matrix.package == 'polars-lts-cpu'
run: sed -i 's/^_LTS_CPU = False$/_LTS_CPU = True/g' py-polars/polars/_cpu_check.py
run: sed $SED_INPLACE 's/^_LTS_CPU = False$/_LTS_CPU = True/g' py-polars/polars/_cpu_check.py

- name: Set RUSTFLAGS for x86-64
if: matrix.architecture == 'x86-64' && matrix.package != 'polars-lts-cpu' && matrix.os != 'macos-latest'
run: echo "RUSTFLAGS=-C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt" >> $GITHUB_ENV
run: |
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt
echo "RUSTFLAGS=-C target-feature=$FEATURES" >> $GITHUB_ENV
sed $SED_INPLACE 's/^_POLARS_FEATURE_FLAGS = \"\"$/_POLARS_FEATURE_FLAGS = \"$FEATURES\"/g' py-polars/polars/_cpu_check.py
- name: Set RUSTFLAGS for x86-64 MacOS
if: matrix.architecture == 'x86-64' && matrix.package != 'polars-lts-cpu' && matrix.os == 'macos-latest'
run: echo "RUSTFLAGS=-C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma" >> $GITHUB_ENV
run: |
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma
echo "RUSTFLAGS=-C target-feature=$FEATURES" >> $GITHUB_ENV
sed $SED_INPLACE 's/^_POLARS_FEATURE_FLAGS = \"\"$/_POLARS_FEATURE_FLAGS = \"$FEATURES\"/g' py-polars/polars/_cpu_check.py
- name: Set RUSTFLAGS for x86-64 LTS CPU
if: matrix.architecture == 'x86-64' && matrix.package == 'polars-lts-cpu'
run: echo "RUSTFLAGS=-C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt --cfg use_mimalloc" >> $GITHUB_ENV
run: |
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt
echo "RUSTFLAGS=-C target-feature=$FEATURES --cfg use_mimalloc" >> $GITHUB_ENV
sed $SED_INPLACE 's/^_POLARS_FEATURE_FLAGS = \"\"$/_POLARS_FEATURE_FLAGS = \"$FEATURES\"/g' py-polars/polars/_cpu_check.py
- name: Set Rust target for aarch64
if: matrix.architecture == 'aarch64'
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

Thanks for taking the time to contribute! We appreciate all contributions, from reporting bugs to implementing new features.

Please refer to the [contributing section](https://pola-rs.github.io/polars/development/contributing/) of our documentation to get started.
Please refer to the [contributing section](https://docs.pola.rs/development/contributing/) of our documentation to get started.

We look forward to your contributions!
Loading

0 comments on commit 2d98dd5

Please sign in to comment.