示例#1
0
 def test_read(self):
     addon_dir = os.path.join(DATA_DIR, 'addon1')
     manifest = read_manifest(addon_dir)
     assert 'version' in manifest
示例#2
0
 def test_no_manifest(self):
     with self.assertRaises(NoManifestFound):
         read_manifest(DATA_DIR)
示例#3
0
repo_name = "odoo-door"
branch = "13.0"
organization = "tegin"

path = str(pathlib.Path(__file__).absolute().parent)
data = os.listdir(path)

to_process = {}
new_data = []
for d in data:
    if d in ['.github', 'setup', '.git', '__pycache__', "pip-egg-info"]:
        continue
    if os.path.isfile(os.path.join(path, d)):
        continue
    manifest = read_manifest(os.path.join(path, "..", d))
    to_process[d] = manifest.get("depends", [])
    new_data.append(d)

data = new_data
pending_data = new_data.copy()
install_requires = [
    "setuptools", "setuptools_scm>=2.1,!=4.0.0", "setuptools-odoo"
]
dependency_links = []
while pending_data:
    new_pending_data = []
    for d in pending_data:
        if any(depend in pending_data for depend in to_process[d]):
            new_pending_data.append(d)
            continue
示例#4
0
 def test_no_manifest(self):
     with self.assertRaises(NoManifestFound):
         read_manifest(DATA_DIR)
示例#5
0
 def test_read(self):
     addon_dir = os.path.join(DATA_DIR, "addon1")
     manifest = read_manifest(addon_dir)
     assert "version" in manifest
示例#6
0
 def test_read(self):
     addon_dir = os.path.join(DATA_DIR, "addon1")
     manifest = read_manifest(addon_dir)
     assert "version" in manifest
 def test_read(self):
     addon_dir = os.path.join(DATA_DIR, 'addon1')
     manifest = read_manifest(addon_dir)
     assert 'version' in manifest