[jira] [Commented] (MESOS-7163) python: Produce python3 compatible python bindings

2017-02-23 Thread Anthony Sottile (JIRA)

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

Anthony Sottile commented on MESOS-7163:


I'm equipped and willing to solve this (and the blocked task) if there's 
interest.  I am very well versed in cpython api and making 2+3 compatible 
codebases as well as the intricacies of setuptools.

> python: Produce python3 compatible python bindings
> --
>
> Key: MESOS-7163
> URL: https://issues.apache.org/jira/browse/MESOS-7163
> Project: Mesos
>  Issue Type: Bug
>  Components: python api
>Reporter: Anthony Sottile
>Priority: Minor
>
> We're looking to migrate a codebase using mesos to use python3.  Some of the 
> mesos python apis already seem to work though the cpython bindings will need 
> some tweaking.
> This is probably blocked on producing source distributions, I'll link that 
> ticket.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (MESOS-7163) python: Produce python3 compatible python bindings

2017-02-24 Thread Gilbert Song (JIRA)

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

Gilbert Song commented on MESOS-7163:
-

[~asottileyelp], thank you for proposing this. It is awesome. Could you mind 
sending an email to the mesos dev mailing list for this proposal? So that we 
can get more exposure on this issue to people who may be interested, as well as 
finding someone to shepherd.

> python: Produce python3 compatible python bindings
> --
>
> Key: MESOS-7163
> URL: https://issues.apache.org/jira/browse/MESOS-7163
> Project: Mesos
>  Issue Type: Bug
>  Components: python api
>Reporter: Anthony Sottile
>Priority: Minor
>
> We're looking to migrate a codebase using mesos to use python3.  Some of the 
> mesos python apis already seem to work though the cpython bindings will need 
> some tweaking.
> This is probably blocked on producing source distributions, I'll link that 
> ticket.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (MESOS-7163) python: Produce python3 compatible python bindings

2018-05-08 Thread Armand Grillet (JIRA)

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

Armand Grillet commented on MESOS-7163:
---

[~asottileyelp] Would this ticket still be doable by you?

> python: Produce python3 compatible python bindings
> --
>
> Key: MESOS-7163
> URL: https://issues.apache.org/jira/browse/MESOS-7163
> Project: Mesos
>  Issue Type: Bug
>  Components: python api
>Reporter: Anthony Sottile
>Priority: Minor
>
> We're looking to migrate a codebase using mesos to use python3.  Some of the 
> mesos python apis already seem to work though the cpython bindings will need 
> some tweaking.
> This is probably blocked on producing source distributions, I'll link that 
> ticket.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MESOS-7163) python: Produce python3 compatible python bindings

2018-05-18 Thread Armand Grillet (JIRA)

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

Armand Grillet commented on MESOS-7163:
---

interface:
{code}
RefactoringTool: Refactored ./src/mesos/interface/__init__.py
--- ./src/mesos/interface/__init__.py   (original)
+++ ./src/mesos/interface/__init__.py   (refactored)
@@ -20,7 +20,7 @@

 """Python bindings for Mesos."""

-from __future__ import print_function
+

 import sys
{code}

lib:
{code}
RefactoringTool: Refactored ./mesos/exceptions.py
--- ./mesos/exceptions.py   (original)
+++ ./mesos/exceptions.py   (refactored)
@@ -18,7 +18,7 @@
 Exceptions Classes
 """

-from __future__ import absolute_import
+


 class MesosException(Exception):
RefactoringTool: Refactored ./mesos/http.py
--- ./mesos/http.py (original)
+++ ./mesos/http.py (refactored)
@@ -20,9 +20,9 @@
 Classes and functions for interacting with the Mesos HTTP RESTful API
 """

-from __future__ import absolute_import
-
-from urlparse import urlparse
+
+
+from urllib.parse import urlparse
 from copy import deepcopy

 import requests
@@ -84,7 +84,7 @@
 default timeout for connections, default headers to be included in each
 request, and auth.
 """
-SUCCESS_CODES = frozenset(xrange(200, 300))
+SUCCESS_CODES = frozenset(range(200, 300))
 ERROR_CODE_MAP = {c.STATUS_CODE: c for c in (
 MesosBadRequestException,
 MesosAuthenticationException,
RefactoringTool: No changes to ./tests/__init__.py
RefactoringTool: Refactored ./tests/conftest.py
--- ./tests/conftest.py (original)
+++ ./tests/conftest.py (refactored)
@@ -18,7 +18,7 @@
 PyTest configuration
 """

-from __future__ import absolute_import
+

 import mock
 import pytest
RefactoringTool: No changes to ./tests/test_exceptions.py
RefactoringTool: Refactored ./tests/test_http.py
--- ./tests/test_http.py(original)
+++ ./tests/test_http.py(refactored)
@@ -16,7 +16,7 @@

 # pylint: 
disable=missing-docstring,protected-access,too-many-locals,too-many-arguments

-from __future__ import absolute_import
+

 from collections import namedtuple

RefactoringTool: Refactored ./tests/test_mesos.py
--- ./tests/test_mesos.py   (original)
+++ ./tests/test_mesos.py   (refactored)
@@ -18,7 +18,7 @@
 Tests for the mesos package
 """

-from __future__ import absolute_import
+

 import mesos
{code}
That seems to be it.

> python: Produce python3 compatible python bindings
> --
>
> Key: MESOS-7163
> URL: https://issues.apache.org/jira/browse/MESOS-7163
> Project: Mesos
>  Issue Type: Bug
>  Components: python api
>Reporter: Anthony Sottile
>Priority: Minor
>
> We're looking to migrate a codebase using mesos to use python3.  Some of the 
> mesos python apis already seem to work though the cpython bindings will need 
> some tweaking.
> This is probably blocked on producing source distributions, I'll link that 
> ticket.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MESOS-7163) python: Produce python3 compatible python bindings

2020-06-10 Thread Patrick (Jira)


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

Patrick commented on MESOS-7163:


Has this been investigated any further?

Are python3 libraries available from builds but not obviously published?

Airflow has upgraded to only python3 and python3 libraries are needed to 
support airflow on mesos now

> python: Produce python3 compatible python bindings
> --
>
> Key: MESOS-7163
> URL: https://issues.apache.org/jira/browse/MESOS-7163
> Project: Mesos
>  Issue Type: Bug
>  Components: python api
>Reporter: Anthony Sottile
>Priority: Minor
>
> We're looking to migrate a codebase using mesos to use python3.  Some of the 
> mesos python apis already seem to work though the cpython bindings will need 
> some tweaking.
> This is probably blocked on producing source distributions, I'll link that 
> ticket.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)