-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wheels for MacOS and Windows platforms (#7)
Refactor the code
- Loading branch information
Andrii Sokyrko
authored
Jun 1, 2022
1 parent
392b6bb
commit 143b1a2
Showing
9 changed files
with
159 additions
and
142 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,11 @@ | ||
[target.x86_64-apple-darwin] | ||
rustflags = [ | ||
"-C", "link-arg=-undefined", | ||
"-C", "link-arg=dynamic_lookup", | ||
] | ||
|
||
[target.aarch64-apple-darwin] | ||
rustflags = [ | ||
"-C", "link-arg=-undefined", | ||
"-C", "link-arg=dynamic_lookup", | ||
] |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 +1,7 @@ | ||
[package] | ||
edition = "2021" | ||
name = "fast_mail_parser" | ||
version = "0.2.2" | ||
version = "0.2.3" | ||
authors = ["Andrii Sokyrko <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
||
|
@@ -24,9 +24,9 @@ classifier = [ | |
"Topic :: Communications :: Email", | ||
"Topic :: Software Development :: Libraries", | ||
] | ||
requires-python = ">=3.6.0" | ||
maintainer-email = "andrey.sokirko@namecheap.com" | ||
maintainer = "Andrey Sokirko" | ||
requires-python = ">=3.7.0" | ||
maintainer-email = "wartwvister@gmail.com" | ||
maintainer = "Andrii Sokyrko" | ||
|
||
[profile.dev] | ||
opt-level = 0 | ||
|
@@ -35,6 +35,9 @@ debug = true | |
[profile.release] | ||
opt-level = 3 | ||
debug = false | ||
strip = "debuginfo" | ||
lto = true | ||
codegen-units = 1 | ||
|
||
[lib] | ||
name = "fast_mail_parser" | ||
|
@@ -43,7 +46,7 @@ crate-type = ["cdylib"] | |
|
||
[dependencies] | ||
mailparse = "0.13.8" | ||
pyo3 = "0.15.1" | ||
pyo3 = "0.16.5" | ||
|
||
[features] | ||
default = ["pyo3/extension-module"] |
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,14 +1,10 @@ | ||
.PHONY: build | ||
.PHONY: install | ||
|
||
test: | ||
pytest -v --ignore tests/benchmark tests | ||
|
||
benchmark: | ||
pytest -v tests/benchmark | ||
|
||
build: | ||
docker run --rm -v $(CURDIR):/io konstin2/maturin build --release --strip | ||
|
||
publish: | ||
twine check target/wheels/* | ||
twine upload target/wheels/* | ||
install: | ||
python3 setup.py install --force |
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 @@ | ||
1.61 |
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
Oops, something went wrong.