Skip to content

Commit

Permalink
Cleaned up the Makefile and removed the .dockerignore (#1439)
Browse files Browse the repository at this point in the history
  • Loading branch information
carnarez committed Sep 25, 2021
1 parent e3817f3 commit 92f2801
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 64 deletions.
3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ jobs:
- name: Run tests
run: |
export RUSTFLAGS="-C debuginfo=0"
cd py-polars && rustup override set nightly-2021-09-14 && ./tasks.sh build-run-tests
cd py-polars && rustup override set nightly-2021-09-14 && make build-and-test
cargo clippy
# test if we can import polars without any requirements
- name: import polars
- name: Import polars
run: |
pip uninstall pandas -y
python -c "import polars"
2 changes: 1 addition & 1 deletion .github/workflows/create-py-release-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
cd py-polars
rustup override set nightly-2021-09-14
./tasks.sh build-run-tests
make build-and-test
rm wheels/*
build:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
shell: bash
run: |
export RUSTFLAGS="-C debuginfo=0"
cd py-polars && rustup override set nightly-2021-09-14 && ./tasks.sh build-run-tests
cd py-polars && rustup override set nightly-2021-09-14 && make build-and-test
cargo clippy
# test if we can import polars without any requirements
- name: import polars
- name: Import polars
run: |
pip uninstall pandas -y
python -c "import polars"
python -c "import polars"
27 changes: 22 additions & 5 deletions py-polars/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@

test:
./tasks.sh test

SHELL=/bin/bash

pre-commit:
isort .
black .
mypy
flake8 .
flake8 .

pip:
pip install --force-reinstall -U wheels/polars-*.whl

release-build:
maturin build --release -o wheels

release-install: release-build pip

test:
maturin develop
pytest tests

test-build:
maturin build -o wheels

test-install: test-build pip

build-and-test: test-install
pytest tests
50 changes: 0 additions & 50 deletions py-polars/tasks.sh

This file was deleted.

0 comments on commit 92f2801

Please sign in to comment.