[jira] [Resolved] (PROTON-2674) Remove some deprecated python bindings

2023-01-27 Thread Andrew Stitcher (Jira)


 [ 
https://issues.apache.org/jira/browse/PROTON-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Stitcher resolved PROTON-2674.
-
Fix Version/s: proton-c-0.39.0
   Resolution: Fixed

> Remove some deprecated python bindings
> --
>
> Key: PROTON-2674
> URL: https://issues.apache.org/jira/browse/PROTON-2674
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-0.39.0
>
>
> {{pn_work_head}}/{{pn_work_next}} are deprecated APIs that have been replaced 
> with proactor events. We can remove the python bindings and tests



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Resolved] (PROTON-2675) Remove unnecessary string conversions

2023-01-27 Thread Andrew Stitcher (Jira)


 [ 
https://issues.apache.org/jira/browse/PROTON-2675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Stitcher resolved PROTON-2675.
-
Fix Version/s: proton-c-0.39.0
   Resolution: Fixed

> Remove unnecessary string conversions
> -
>
> Key: PROTON-2675
> URL: https://issues.apache.org/jira/browse/PROTON-2675
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Minor
> Fix For: proton-c-0.39.0
>
>
> Now that we're using python 3 we no longer need to worry about many of the 
> byte to string conversions that we cared about when using python and python 3 
> together



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Resolved] (PROTON-2676) Make python server examples use ANONYMOUS-RELAY correctly

2023-01-27 Thread Andrew Stitcher (Jira)


 [ 
https://issues.apache.org/jira/browse/PROTON-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Stitcher resolved PROTON-2676.
-
Fix Version/s: proton-c-0.39.0
   Resolution: Fixed

> Make python server examples use ANONYMOUS-RELAY correctly
> -
>
> Key: PROTON-2676
> URL: https://issues.apache.org/jira/browse/PROTON-2676
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Minor
> Fix For: proton-c-0.39.0
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Updated] (PROTON-2675) Remove unnecessary string conversions

2023-01-27 Thread Andrew Stitcher (Jira)


 [ 
https://issues.apache.org/jira/browse/PROTON-2675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Stitcher updated PROTON-2675:

Summary: Remove unnecessary string conversions  (was: Remove unnecessary 
string converions)

> Remove unnecessary string conversions
> -
>
> Key: PROTON-2675
> URL: https://issues.apache.org/jira/browse/PROTON-2675
> Project: Qpid Proton
>  Issue Type: Improvement
>  Components: python-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Minor
>
> Now that we're using python 3 we no longer need to worry about many of the 
> byte to string conversions that we cared about when using python and python 3 
> together



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Resolved] (PROTON-2095) Move away from SWIG to CFFI

2023-01-27 Thread Andrew Stitcher (Jira)


 [ 
https://issues.apache.org/jira/browse/PROTON-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Stitcher resolved PROTON-2095.
-
Fix Version/s: proton-c-0.39.0
   (was: proton-c-future)
   Resolution: Done

The work on github PR #386 has now been merged which resolves this issue.

> Move away from SWIG to CFFI
> ---
>
> Key: PROTON-2095
> URL: https://issues.apache.org/jira/browse/PROTON-2095
> Project: Qpid Proton
>  Issue Type: Wish
>  Components: python-binding
>Affects Versions: proton-c-0.29.0, proton-c-future
>Reporter: Omer Katz
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-0.39.0
>
>
> SWIG is fine but we're not using it for anything other than exporting all of 
> proton-c's API as is.
> Unfortunately SWIG only generates CPython extension bindings. This may be a 
> problem on PyPy where CPython extensions are either slow or simply won't 
> compile.
> Unlike SWIG, CFFI is portable both on CPython and PyPy.
> It also satisfies the same requirements as SWIG currently does.
> In addition, calls to CFFI simply release the GIL which will help 
> parallelizing Python applications using threads.
> By using CFFI we can also get rid of all of our setup.py code and simply use 
> it to build the extension. We will also no longer have problems building 
> wheels.
> The newest version of CFFI supports pkg-config so we can use that to find 
> proton-c easily.
> I'm willing to help with the refactor but I'll need a mentor since I'm not 
> familiar with the code base.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (PROTON-2095) Move away from SWIG to CFFI

2023-01-27 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17681432#comment-17681432
 ] 

ASF GitHub Bot commented on PROTON-2095:


astitcher commented on PR #375:
URL: https://github.com/apache/qpid-proton/pull/375#issuecomment-1406906996

   Obsoleted by #386 




> Move away from SWIG to CFFI
> ---
>
> Key: PROTON-2095
> URL: https://issues.apache.org/jira/browse/PROTON-2095
> Project: Qpid Proton
>  Issue Type: Wish
>  Components: python-binding
>Affects Versions: proton-c-0.29.0, proton-c-future
>Reporter: Omer Katz
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-future
>
>
> SWIG is fine but we're not using it for anything other than exporting all of 
> proton-c's API as is.
> Unfortunately SWIG only generates CPython extension bindings. This may be a 
> problem on PyPy where CPython extensions are either slow or simply won't 
> compile.
> Unlike SWIG, CFFI is portable both on CPython and PyPy.
> It also satisfies the same requirements as SWIG currently does.
> In addition, calls to CFFI simply release the GIL which will help 
> parallelizing Python applications using threads.
> By using CFFI we can also get rid of all of our setup.py code and simply use 
> it to build the extension. We will also no longer have problems building 
> wheels.
> The newest version of CFFI supports pkg-config so we can use that to find 
> proton-c easily.
> I'm willing to help with the refactor but I'll need a mentor since I'm not 
> familiar with the code base.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (PROTON-2095) Move away from SWIG to CFFI

2023-01-27 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17681433#comment-17681433
 ] 

ASF GitHub Bot commented on PROTON-2095:


astitcher closed pull request #375: PROTON-2095 Move away from SWIG to CFFI 
(rebased from #318)
URL: https://github.com/apache/qpid-proton/pull/375




> Move away from SWIG to CFFI
> ---
>
> Key: PROTON-2095
> URL: https://issues.apache.org/jira/browse/PROTON-2095
> Project: Qpid Proton
>  Issue Type: Wish
>  Components: python-binding
>Affects Versions: proton-c-0.29.0, proton-c-future
>Reporter: Omer Katz
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-future
>
>
> SWIG is fine but we're not using it for anything other than exporting all of 
> proton-c's API as is.
> Unfortunately SWIG only generates CPython extension bindings. This may be a 
> problem on PyPy where CPython extensions are either slow or simply won't 
> compile.
> Unlike SWIG, CFFI is portable both on CPython and PyPy.
> It also satisfies the same requirements as SWIG currently does.
> In addition, calls to CFFI simply release the GIL which will help 
> parallelizing Python applications using threads.
> By using CFFI we can also get rid of all of our setup.py code and simply use 
> it to build the extension. We will also no longer have problems building 
> wheels.
> The newest version of CFFI supports pkg-config so we can use that to find 
> proton-c easily.
> I'm willing to help with the refactor but I'll need a mentor since I'm not 
> familiar with the code base.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[GitHub] [qpid-proton] astitcher commented on pull request #386: Use CFFI for python bindings

2023-01-27 Thread via GitHub


astitcher commented on PR #386:
URL: https://github.com/apache/qpid-proton/pull/386#issuecomment-1406907332

   Merged


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[GitHub] [qpid-proton] astitcher commented on pull request #375: PROTON-2095 Move away from SWIG to CFFI (rebased from #318)

2023-01-27 Thread via GitHub


astitcher commented on PR #375:
URL: https://github.com/apache/qpid-proton/pull/375#issuecomment-1406906996

   Obsoleted by #386 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[GitHub] [qpid-proton] astitcher closed pull request #375: PROTON-2095 Move away from SWIG to CFFI (rebased from #318)

2023-01-27 Thread via GitHub


astitcher closed pull request #375: PROTON-2095 Move away from SWIG to CFFI 
(rebased from #318)
URL: https://github.com/apache/qpid-proton/pull/375


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (PROTON-2095) Move away from SWIG to CFFI

2023-01-27 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17681429#comment-17681429
 ] 

ASF subversion and git services commented on PROTON-2095:
-

Commit 9b4332637d7c0a288c4dd17b4836d0aa38b6d869 in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=9b4332637 ]

PROTON-2095: Change CMake build to allow cffi tests to run

- Tightened python build dependencies to avoid unecessary building
- Make the python build do all building directly in the python dir
  - So changed the python pkg directory to be the more common 'dist'


> Move away from SWIG to CFFI
> ---
>
> Key: PROTON-2095
> URL: https://issues.apache.org/jira/browse/PROTON-2095
> Project: Qpid Proton
>  Issue Type: Wish
>  Components: python-binding
>Affects Versions: proton-c-0.29.0, proton-c-future
>Reporter: Omer Katz
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-future
>
>
> SWIG is fine but we're not using it for anything other than exporting all of 
> proton-c's API as is.
> Unfortunately SWIG only generates CPython extension bindings. This may be a 
> problem on PyPy where CPython extensions are either slow or simply won't 
> compile.
> Unlike SWIG, CFFI is portable both on CPython and PyPy.
> It also satisfies the same requirements as SWIG currently does.
> In addition, calls to CFFI simply release the GIL which will help 
> parallelizing Python applications using threads.
> By using CFFI we can also get rid of all of our setup.py code and simply use 
> it to build the extension. We will also no longer have problems building 
> wheels.
> The newest version of CFFI supports pkg-config so we can use that to find 
> proton-c easily.
> I'm willing to help with the refactor but I'll need a mentor since I'm not 
> familiar with the code base.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (PROTON-2095) Move away from SWIG to CFFI

2023-01-27 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17681428#comment-17681428
 ] 

ASF subversion and git services commented on PROTON-2095:
-

Commit 66cac760950779a8655a12337ba4fe663800a94e in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=66cac7609 ]

PROTON-2095: Use CFFI instead of SWIG for python binding

Build an extension library cproton_ffi which can be used by a cproton
module to interface to libqpid_proton_core.

The intention is that the higher level code continue to use cproton
as before but the cproton module is now written manually to
interface to the ffi code instead if being written by swig.


> Move away from SWIG to CFFI
> ---
>
> Key: PROTON-2095
> URL: https://issues.apache.org/jira/browse/PROTON-2095
> Project: Qpid Proton
>  Issue Type: Wish
>  Components: python-binding
>Affects Versions: proton-c-0.29.0, proton-c-future
>Reporter: Omer Katz
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-future
>
>
> SWIG is fine but we're not using it for anything other than exporting all of 
> proton-c's API as is.
> Unfortunately SWIG only generates CPython extension bindings. This may be a 
> problem on PyPy where CPython extensions are either slow or simply won't 
> compile.
> Unlike SWIG, CFFI is portable both on CPython and PyPy.
> It also satisfies the same requirements as SWIG currently does.
> In addition, calls to CFFI simply release the GIL which will help 
> parallelizing Python applications using threads.
> By using CFFI we can also get rid of all of our setup.py code and simply use 
> it to build the extension. We will also no longer have problems building 
> wheels.
> The newest version of CFFI supports pkg-config so we can use that to find 
> proton-c easily.
> I'm willing to help with the refactor but I'll need a mentor since I'm not 
> familiar with the code base.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[GitHub] [qpid-proton] astitcher closed pull request #386: Use CFFI for python bindings

2023-01-27 Thread via GitHub


astitcher closed pull request #386: Use CFFI for python bindings
URL: https://github.com/apache/qpid-proton/pull/386


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org