commit: 9b482adc47992eb2df830d906be57330acc89fa2
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 3 23:57:59 2015 +0000
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Sat Feb 7 20:48:38 2015 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=9b482adc
Move the plugin module into a portage namespace for installation
But to avoid import conflicts during testing in the checkout, move it to a
pm_plugins subdir.
---
MANIFEST.in | 1 +
pm_plugins/portage/__init__.py | 0
pm_plugins/portage/sync/__init__.py | 0
pm_plugins/portage/sync/modules/__init__.py | 0
.../portage/sync/modules/laymansync}/__init__.py | 4 ++--
.../portage/sync/modules/laymansync/laymansync.py | 0
setup.py | 3 ++-
7 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/MANIFEST.in b/MANIFEST.in
index df2a997..b8e8a30 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -12,3 +12,4 @@ include doc/layman.8
include doc/layman.8.html
include doc/layman.8.txt
recursive-include layman/tests *
+recursive-include pm_plugins *
diff --git a/pm_plugins/portage/__init__.py b/pm_plugins/portage/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/pm_plugins/portage/sync/__init__.py
b/pm_plugins/portage/sync/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/pm_plugins/portage/sync/modules/__init__.py
b/pm_plugins/portage/sync/modules/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/layman/laymanator/__init__.py
b/pm_plugins/portage/sync/modules/laymansync/__init__.py
similarity index 94%
rename from layman/laymanator/__init__.py
rename to pm_plugins/portage/sync/modules/laymansync/__init__.py
index 890302c..de06b03 100644
--- a/layman/laymanator/__init__.py
+++ b/pm_plugins/portage/sync/modules/laymansync/__init__.py
@@ -19,11 +19,11 @@ except ImportError:
module_spec = {
- 'name': 'laymanator',
+ 'name': 'laymansync',
'description': __doc__,
'provides':{
'layman-module': {
- 'name': 'laymanator',
+ 'name': 'laymansync',
'class': config_class,
'description': __doc__,
'functions': ['sync', 'new', 'exists'],
diff --git a/layman/laymanator/laymanator.py
b/pm_plugins/portage/sync/modules/laymansync/laymansync.py
similarity index 100%
rename from layman/laymanator/laymanator.py
rename to pm_plugins/portage/sync/modules/laymansync/laymansync.py
diff --git a/setup.py b/setup.py
index 8a815eb..21a387a 100755
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,7 @@ import sys
from distutils.core import setup
+
# this affects the names of all the directories we do stuff with
sys.path.insert(0, './')
from layman.version import VERSION
@@ -27,7 +28,7 @@ SELECTABLE = {
use_defaults = ' '.join(list(SELECTABLE))
SYNC_PLUGINS = {
- 'sync-plugin-portage': 'layman.laymanator',
+ 'sync-plugin-portage': 'portage.sync.modules.laymansync',
}
# get the USE from the environment, default to all selectable modules