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

Kevin Klues commented on MESOS-7310:
------------------------------------

{noformat}
commit 456a0ac34deb9321c20f57b7ed74fb61253999c3
Author: Kevin Klues [email protected]
Date:   Sun Jul 23 16:21:36 2017 -0700

Added package and test infrastructure for 'src/python/lib/mesos'.

Part of MESOS-7310, this patch adds the test infrastructure necessary
for reliably running unit tests for the mesos package located under
'src/python/lib/mesos'.

'setup.py' is added under src/python/lib to define the Python package.
'tox.ini' is added under the same dir to enable automated unit tests via
the command tox, which runs tests via pytest.

Review: https://reviews.apache.org/r/60719/
{noformat}
{noformat}
commit 2d19111e4852aed25161e4549ff704f9d4c2f37b
Author: Kevin Klues [email protected]
Date:   Sun Jul 23 16:27:58 2017 -0700

Added extra directives to 'src/python/.gitignore'.

The new ignored files are in support of adding a new 'lib/mesos'
directory that contains shared mesos library code. The '.virtualenv'
folder is the standard python virtual environment we use to build,
run, and test the python code under 'lib/mesos'. The '.tox' and
'.coverage' files are files generated as part of a unit test runner
called 'tox'. The 'build' and 'mesos.egg-info' folders are standard
folders created when running 'python setup.py build' on the new
'lib/mesos' python package.

Review: https://reviews.apache.org/r/60719/
{noformat}

> Implement a separate python client library for the new cli
> ----------------------------------------------------------
>
>                 Key: MESOS-7310
>                 URL: https://issues.apache.org/jira/browse/MESOS-7310
>             Project: Mesos
>          Issue Type: Task
>          Components: cli
>    Affects Versions: 1.3.0
>            Reporter: Eric Chung
>            Assignee: Eric Chung
>
> cli_new in its current form is very difficult to package due to the following 
> reasons:
> 1. src/cli_new/lib/mesos imports plugins using relative imports, which fails 
> if it is built into a pip package
> 2. there is no setup.py script which defines what should be installed
> 3. plugins/tests are unnecessarily included in the package, which are things 
> consumers of the package shouldn’t be able to import
> having such a package will allow external consumers to be able to add 
> application-specific wrappers on it, e.g. integration with ACL libraries of 
> their choice.
> The plan as discussed will create a `mesos` package under `src/python/lib`, 
> potentially including a `setup.py` for building the package into a PyPI 
> package.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to