From ff37cae7b037bc417e7085286f3d7cab89f476cc Mon Sep 17 00:00:00 2001 From: konstin Date: Sun, 9 Sep 2018 18:27:24 +0200 Subject: [PATCH] Release 0.10.4 --- CHANGELOG.md | 6 ++++++ html-py-ever/test/run_all.py | 3 +-- html-py-ever/test/test_parsing.py | 3 +-- html-py-ever/test/test_selector.py | 3 +-- setup.py | 2 +- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89975621..8bf4160a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/html-py-ever/test/run_all.py b/html-py-ever/test/run_all.py index 366bfa2d..25edc1f9 100755 --- a/html-py-ever/test/run_all.py +++ b/html-py-ever/test/run_all.py @@ -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() diff --git a/html-py-ever/test/test_parsing.py b/html-py-ever/test/test_parsing.py index 2538946d..476a5aeb 100755 --- a/html-py-ever/test/test_parsing.py +++ b/html-py-ever/test/test_parsing.py @@ -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 diff --git a/html-py-ever/test/test_selector.py b/html-py-ever/test/test_selector.py index 4635cf99..c1d9cbe6 100755 --- a/html-py-ever/test/test_selector.py +++ b/html-py-ever/test/test_selector.py @@ -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]") diff --git a/setup.py b/setup.py index af8c456e..5f655107 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup -version = "0.10.3" +version = "0.10.4" setup( name="setuptools-rust",