Bug 1330346 - distaflibs: structure directory tree to follow setuptools namespace packages format
Summary: distaflibs: structure directory tree to follow setuptools namespace packages ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: tests
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jonathan Holloway
QA Contact: Jonathan Holloway
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-26 00:20 UTC by Jonathan Holloway
Modified: 2016-06-16 12:31 UTC (History)
3 users (show)

Fixed In Version: glusterfs-3.8.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-16 12:31:57 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Jonathan Holloway 2016-04-26 00:20:45 UTC
Structure distaflibs directory tree to follow the setuptools namespace packages format. Allows separate development environments to install into a single python namespace.

e.g., 
tests/distaf/distaflibs-gluster/   <-- root dir for config files, doc, etc.
tests/distaf/distaflibs-gluster/setup.py
tests/distaf/distaflibs-gluster/distaflibs/__init__.py   <-- namespace_package
tests/distaf/distaflibs-gluster/distaflibs/gluster       <-- actual package
tests/distaf/distaflibs-gluster/distaflibs/gluster/__init__.py
tests/distaf/distaflibs-gluster/distaflibs/gluster/brick_ops.py
...
tests/distaf/distaflibs_gluster/distaflibs/gluster/volume_ops.py

The above would install to /usr/lib/python2.x/site-packages/distaflibs/gluster with import via "from distaflibs.gluster import volume_ops", etc.

Comment 1 Vijay Bellur 2016-04-26 00:50:45 UTC
REVIEW: http://review.gluster.org/13972 (distaflibs: organize distaflibs to use namespace packages) posted (#2) for review on master by Jonathan Holloway (jholloway)

Comment 2 Vijay Bellur 2016-04-27 07:32:16 UTC
COMMIT: http://review.gluster.org/13972 committed in master by M S Vishwanath Bhat (vbhat) 
------
commit 41fef03eb929a08588a4f4ebf4638096a5918a62
Author: Jonathan Holloway <jholloway>
Date:   Mon Apr 11 20:32:26 2016 -0500

    distaflibs: organize distaflibs to use namespace packages
    
    Organized the distaflibs directory tree to accomodate namespace packages.
    
    * Allows multiple distaf library packages to install in single namespace package.
    - Created distaflibs-gluster directory as root for package configs, docs, etc.
    - Created setup.py file to install distaflibs-gluster package into namespace.
    - Created distaflibs-gluster/distaflibs namespace package dir and init.
    - Created distaflibs-gluster/distaflibs/gluster as package dir.
    - Copied distaf gluster library files into package dir.
    
    Requires the distaf package.
    
    distaflibs-gluster installs into /usr/lib/python2.7/site-packages/distaflibs/gluster
    
    Change-Id: I775c4f1526880ea606f35c3616abb9aaf2f3b886
    BUG: 1330346
    Signed-off-by: Jonathan Holloway <jholloway>
    Reviewed-on: http://review.gluster.org/13972
    Smoke: Gluster Build System <jenkins.com>
    Reviewed-by: M S Vishwanath Bhat <vbhat>
    CentOS-regression: Gluster Build System <jenkins.com>
    NetBSD-regression: NetBSD Build System <jenkins.org>

Comment 3 Niels de Vos 2016-06-16 12:31:57 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


Note You need to log in before you can comment on or make changes to this bug.