def test_read(self):
     addon_dir = os.path.join(DATA_DIR, 'addon1')
     manifest = read_manifest(addon_dir)
     assert 'version' in manifest
 def test_no_manifest(self):
     with self.assertRaises(NoManifestFound):
         read_manifest(DATA_DIR)
Exemple #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
 def test_no_manifest(self):
     with self.assertRaises(NoManifestFound):
         read_manifest(DATA_DIR)
 def test_read(self):
     addon_dir = os.path.join(DATA_DIR, "addon1")
     manifest = read_manifest(addon_dir)
     assert "version" in manifest
Exemple #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