Skip to content

Commit

Permalink
Provide Windows wheels without debug information.
Browse files Browse the repository at this point in the history
  • Loading branch information
brmmm3 committed Jul 26, 2020
1 parent 7574dd9 commit e4a3786
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.9.2] - 2020-07-26

### Changed

- Provide Windows wheels without debug information.

## [0.9.1] - 2020-07-26

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scandir-rs"
version = "0.9.1"
version = "0.9.2"
authors = ["Martin Bammer <mrbm74@gmail.com>"]
description = "A fast directory scanner."
edition = "2018"
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,18 @@ Install ``maturin``:
cargo install maturin
```

Build wheel:
Build wheel (not on Windows):

```sh
maturin build --release --strip
```

Build wheel on Windows:

```sh
maturin build --release --strip --no-sdist
```

``maturin`` will build the wheels for all Python versions installed on your system.

## Building and running tests for different Python versions
Expand Down
1 change: 1 addition & 0 deletions build_wheels.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
maturin build --release --strip --no-sdist
8 changes: 4 additions & 4 deletions build_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ eval "$(pyenv init -)"
pyenv shell 3.6.11
pip install -U pytest
maturin build --release --strip -i python3.6
pip install -U build/temp.linux-x86_64-3.7/scandir-rs/wheels/scandir_rs-0.9.1-cp36-cp36m-manylinux1_x86_64.whl
pip install -U build/temp.linux-x86_64-3.7/scandir-rs/wheels/scandir_rs-0.9.2-cp36-cp36m-manylinux1_x86_64.whl
python3.6 -m pytest
pyenv shell 3.7.8
pip install -U pytest
maturin build --release --strip -i python3.7
pip install -U build/temp.linux-x86_64-3.7/scandir-rs/wheels/scandir_rs-0.9.1-cp37-cp37m-manylinux1_x86_64.whl
pip install -U build/temp.linux-x86_64-3.7/scandir-rs/wheels/scandir_rs-0.9.2-cp37-cp37m-manylinux1_x86_64.whl
python3.7 -m pytest
pyenv shell 3.8.5
pip install -U pytest
maturin build --release --strip -i python3.8
pip install -U build/temp.linux-x86_64-3.7/scandir-rs/wheels/scandir_rs-0.9.1-cp38-cp38-manylinux1_x86_64.whl
pip install -U build/temp.linux-x86_64-3.7/scandir-rs/wheels/scandir_rs-0.9.2-cp38-cp38-manylinux1_x86_64.whl
python3.8 -m pytest
pyenv shell 3.9.0b5
pip install -U pytest
maturin build --release --strip -i python3.9
pip install -U build/temp.linux-x86_64-3.7/scandir-rs/wheels/scandir_rs-0.9.1-cp39-cp39-manylinux1_x86_64.whl
pip install -U build/temp.linux-x86_64-3.7/scandir-rs/wheels/scandir_rs-0.9.2-cp39-cp39-manylinux1_x86_64.whl
python3.9 -m pytest
pyenv shell --unset

0 comments on commit e4a3786

Please sign in to comment.