Skip to content

Commit

Permalink
Release 0.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Sep 9, 2018
1 parent b6e0593 commit ff37cae
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog


## 0.10.3 (2018-09-09)

- Add `html-py-ever` example
- Added license file [#41](https://github.com/PyO3/setuptools-rust/pull/41)

## 0.10.3 (2018-09-06)

- `path` in `RustExtension` now defaults to `Cargo.toml`
Expand Down
3 changes: 1 addition & 2 deletions html-py-ever/test/run_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def rust(filename: str) -> Tuple[int, float, float]:
def python(filename: str, parser: str) -> Tuple[int, float, float]:
start_load = perf_counter()
with open(filename) as fp:
text = fp.read()
soup = BeautifulSoup(text, parser)
soup = BeautifulSoup(fp, parser)

end_load = perf_counter()
start_search = perf_counter()
Expand Down
3 changes: 1 addition & 2 deletions html-py-ever/test/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ def rust(filename: str) -> Document:

def python(filename: str) -> BeautifulSoup:
with open(filename) as fp:
text = fp.read()
soup = BeautifulSoup(text, "html.parser")
soup = BeautifulSoup(fp, "html.parser")

return soup

Expand Down
3 changes: 1 addition & 2 deletions html-py-ever/test/test_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ def test_bench_selector_rust(benchmark, filename):
@pytest.mark.parametrize("filename", list(glob("*.html")))
def test_bench_selector_python(benchmark, filename):
with open(filename) as fp:
text = fp.read()
soup = BeautifulSoup(text, "html.parser")
soup = BeautifulSoup(fp, "html.parser")
benchmark(soup.select, "a[href]")
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from setuptools import setup

version = "0.10.3"
version = "0.10.4"

setup(
name="setuptools-rust",
Expand Down

0 comments on commit ff37cae

Please sign in to comment.