-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from G-Research/pypi
Document release process, at least, and prepare for first release
- Loading branch information
Showing
4 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Contributing to `ahocorasick_rs` | ||
|
||
Thank you for considering contributing! Note that by contributing your code, you are agreeing to license it under the Apache License 2.0 (see [`LICENSE`](LICENSE)). | ||
|
||
## Setting up a development environment | ||
|
||
First, download and install [Just](https://github.com/casey/just) | ||
|
||
Then, setup a virtualenv, install dev dependencies, and compile the code: | ||
|
||
```bash | ||
just setup | ||
source venv/bin/activateo # or Windoes equivalent | ||
just build-dev | ||
``` | ||
|
||
## Running tests and benchmarks | ||
|
||
To run tests: | ||
|
||
```shell-session | ||
$ just test | ||
``` | ||
|
||
To run benchmarks: | ||
|
||
```shell-session | ||
$ just prep-benchmark # on Linux Intel, disables turbobost | ||
$ just benchmark | ||
``` | ||
|
||
## Doing a release | ||
|
||
1. Update version in `Cargo.toml` | ||
2. Submit a PR | ||
3. Merge to `main` | ||
4. Tag in GitHub with new version number | ||
5. Download Wheels.zip artifact from GitHub Actions | ||
6. Upload by running `maturin upload unzipped-files/*.whl` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
[package] | ||
name = "ahocorasick_rs" | ||
version = "0.1.0" | ||
version = "0.9.0" | ||
edition = "2018" | ||
authors = ["G-Research", "Itamar Turner-Trauring <[email protected]>"] | ||
authors = ["G-Research <[email protected]>", "Itamar Turner-Trauring <[email protected]>"] | ||
description = "Search a string for multiple substrings at once" | ||
readme = "README.md" | ||
license = "Apache 2.0" | ||
repository = "https://github.com/G-Research/ahocorasick_rs" | ||
|
||
[lib] | ||
name = "ahocorasick_rs" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ pytest-benchmark | |
flake8 | ||
black | ||
pyahocorasick | ||
maturin |