Commit 17816567 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

Reorganize source tree to have a "cubicweb" top-level package

Basically:

mkdir cubicweb
hg mv *.py -X setup.py cubicweb
hg mv dataimport devtools entities etwist ext hooks i18n misc schemas server skeleton sobjects test web wsgi cubicweb

Other changes:

* adjust path to cubicweb-ctl in devtools tests
* update setup.py to avoid importing __pkginfo__ (exec it instead),
  replace os.path.walk by os.walk and prepend `modname` here and there
* update tox.ini to account for new test locations
* update doc/conf.py so that it still finds __pkginfo__.py and CWDIR in
  doc/Makefile
parent 058bb3dc685f
......@@ -29,7 +29,8 @@ class CubicWebCtlTC(TestCase):
"""test case for devtools commands"""
def test_newcube(self):
cwctl = osp.abspath(osp.join(osp.dirname(__file__), '../../bin/cubicweb-ctl'))
cwctl = osp.abspath(osp.join(osp.dirname(__file__),
'../../../bin/cubicweb-ctl'))
tmpdir = tempfile.mkdtemp(prefix="temp-cwctl-newcube")
try:
......
......@@ -62,7 +62,8 @@ class cubePotGeneratorTC(TestCase):
else:
env['PYTHONPATH'] = ''
env['PYTHONPATH'] += DATADIR
cwctl = osp.abspath(osp.join(osp.dirname(__file__), '../../bin/cubicweb-ctl'))
cwctl = osp.abspath(osp.join(osp.dirname(__file__),
'../../../bin/cubicweb-ctl'))
with open(os.devnull, 'w') as devnull:
subprocess.check_call([sys.executable, cwctl, 'i18ncube', 'i18ntestcube'],
env=env, stdout=devnull)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment