8000 Add changelog and bump version in preparation for release. · davidblewett/rure-python@41cab0e · GitHub
[go: up one dir, main page]

Skip to content

Commit 41cab0e

Browse files
committed
Add changelog and bump version in preparation for release.
1 parent 36b2caa commit 41cab0e

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed

HISTORY.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=======
2+
History
3+
=======
4+
5+
0.1.2 (2017-10-09)
6+
------------------
7+
8+
* First release on PyPI
9+
* Binary wheels compiled against:
10+
11+
* Rust: 1.20.0
12+
* regex: 0.2.2
13+
* rure (regex-capi): 0.2.0

README.rst

Lines changed: 14 additions & 5 deletion 10000 s
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,19 @@ implemented yet.
7676

7777
Install
7878
-------
79-
Binary wheels are provided for Linux. Installing from a source tarball requires
80-
manually building the Rust `rure` crate and pointing at the built directory:
79+
Binary wheels are provided for Linux and MacOS. The specific versions of the Rust
80+
compiler, `rure` and `regex` crates will be available in the changelog.
81+
82+
Installing from a source tarball requires manually building the Rust `rure` crate and
83+
pointing at the built directory. If you are wanting to take advantage of a modern CPU,
84+
it's likely that you'll want to build the `regex` crate with SSE3 and SIMD. To do so,
85+
you will need to update the `regex/regex-capi/Cargo.toml` to include the `simd-accel`
86+
feature: `regex = { version = "0.2.2", path = "..", features=["simd-accel"] }`.
8187

8288
* git clone https://github.com/rust-lang-nursery/regex
83-
* cargo build --release --manifest-path /path/to/regex/regex-capi/Cargo.toml
84-
* RURE_DIR=/path/to/regex/regex-capi python setup.py bdist_wheel
85-
* pip install rure --no-index -f ./dist
89+
* `cargo build --release --manifest-path /path/to/regex/regex-capi/Cargo.toml`
90+
91+
* To build with SSE3: `RUSTFLAGS="-C target-feature=+ssse3" cargo build --release --features simd-accel`
92+
93+
* `RURE_DIR=/path/to/regex/regex-capi python setup.py bdist_wheel`
94+
* `pip install rure --no-index -f ./dist`

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,21 @@
1010
cur_dir = os.path.dirname(os.path.abspath(__file__))
1111
with open(os.path.join(cur_dir, 'README.rst')) as buf:
1212
README = buf.read()
13+
with open(os.path.join(cur_dir, 'HISTORY.rst')) as buf:
14+
HISTORY = buf.read()
15+
1316
rure_dir = os.getenv('RURE_DIR', cur_dir)
1417
print('rure_dir:', rure_dir)
1518

1619
setup(
1720
name='rure',
18-
version='0.1.1',
21+
version='0.1.2',
1922
author='David Blewett',
2023
author_email='david@dawninglight.net',
2124
description=('Python bindings for the Rust `regex` create. '
2225
'This implementation uses finite automata and guarantees '
2326
'linear time matching on all inputs.'),
24-
long_description=README,
27+
long_description=README + '\n\n' + HISTORY,
2528
license='MIT',
2629
keywords=['regex', 'rust', 'dfa', 'automata', 'data_structures'],
2730
url='https://github.com/davidblewett/rure-python',

0 commit comments

Comments
 (0)
0