File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7373 args : --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-unknown-linux-gnu --no-sdist
7474 env :
7575 MATURIN_PASSWORD : ${{ secrets.pypi_password }}
76+ dist-source :
77+ runs-on : ubuntu-latest
78+ steps :
79+ - name : Distribute Source
80+ uses : PyO3/maturin-action@v1
81+ with :
82+ command : sdist
83+ env :
84+ MATURIN_PASSWORD : ${{ secrets.pypi_password }}
Original file line number Diff line number Diff line change 11[package ]
22name = " pydomainextractor"
3- version = " 0.13.9 "
3+ version = " 0.13.10 "
44authors = [" Viktor Vilskyi <viktor_vilskyi@rapid7.com>" ]
55edition = " 2021"
66repository = " https://github.com/intsights/pydomainextractor"
Original file line number Diff line number Diff line change 11[project ]
22name = " pydomainextractor"
3- version = " 0.13.9 "
3+ version = " 0.13.10 "
44authors = [
55 {email = " viktor_vilskyi@rapid7.com" },
66 {name = " Viktor Vilskyi" }
@@ -85,4 +85,4 @@ addopts = [
8585]
8686testpaths = [
8787 " tests" ,
88- ]
88+ ]
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use pyo3::exceptions::PyValueError;
33use pyo3:: intern;
44use pyo3:: prelude:: * ;
55use pyo3:: types:: PyString ;
6+ use std:: os:: raw:: c_char;
67
78type DomainString = arraystring:: ArrayString < typenum:: U255 > ;
89
@@ -144,7 +145,7 @@ impl DomainExtractor {
144145 ] {
145146 if !fraction. is_empty ( ) {
146147 let substr = pyo3:: ffi:: PyUnicode_FromStringAndSize (
147- fraction. as_ptr ( ) as * const i8 ,
148+ fraction. as_ptr ( ) as * const c_char ,
148149 fraction. len ( ) as isize ,
149150 ) ;
150151
@@ -273,7 +274,7 @@ impl DomainExtractor {
273274 ] {
274275 if !fraction. is_empty ( ) {
275276 let substr = pyo3:: ffi:: PyUnicode_FromStringAndSize (
276- fraction. as_ptr ( ) as * const i8 ,
277+ fraction. as_ptr ( ) as * const c_char ,
277278 fraction. len ( ) as isize ,
278279 ) ;
279280
You can’t perform that action at this time.
0 commit comments