Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract manifestoo_core #32

Merged
merged 6 commits into from
May 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: CI
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:

jobs:
Expand Down
93 changes: 0 additions & 93 deletions mk_core_addons

This file was deleted.

2 changes: 2 additions & 0 deletions news/32.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Part of `manifestoo` has been extracted to `manifestoo-core`, which will evolve into
a lightweight library to reason about Odoo addons manifests.
18 changes: 12 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "manifestoo"
version = "0.4.3.dev"
description = "A tool to reason about Odoo addons manifests"
authors = [
{name = "Stéphane Bidoul", email = "stephane.bidoul@acsone.eu"}
Expand All @@ -21,11 +20,12 @@ classifiers = [
]
readme = "README.md"
dependencies = [
"manifestoo_core",
"typer[all] >= 0.3.2",
"importlib_resources ; python_version<'3.7'",
"importlib_metadata ; python_version<'3.8'",
]
requires-python = ">=3.6"
dynamic = ["version"]

[project.optional-dependencies]
test = [
Expand All @@ -50,13 +50,19 @@ Source = "https://github.com/sbidoul/manifestoo"
manifestoo = "manifestoo.main:app"
moo = "manifestoo.main:app"

[tool.flit.sdist]
exclude = [".github/"]
[tool.hatch.version]
source = "vcs"

[tool.hatch.build]
exclude = [
"/.github",
]


[tool.isort]
profile = "black"
multi_line_output = 3
known_first_party = "manifestoo_core"


[tool.coverage.run]
Expand Down
60 changes: 0 additions & 60 deletions src/manifestoo/addon.py

This file was deleted.

3 changes: 2 additions & 1 deletion src/manifestoo/addons_selection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from pathlib import Path
from typing import List, Set

from .addons_set import AddonsSet
from manifestoo_core.addons_set import AddonsSet

from .utils import comma_split


Expand Down
27 changes: 0 additions & 27 deletions src/manifestoo/addons_set.py

This file was deleted.

9 changes: 5 additions & 4 deletions src/manifestoo/commands/check_dev_status.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from typing import Iterable, Optional, Set

from ..addon import Addon
from manifestoo_core.addon import Addon
from manifestoo_core.addons_set import AddonsSet
from manifestoo_core.core_addons import is_core_addon
from manifestoo_core.odoo_series import OdooSeries

from ..addons_selection import AddonsSelection
from ..addons_set import AddonsSet
from ..core_addons import is_core_addon
from ..dependency_iterator import dependency_iterator
from ..odoo_series import OdooSeries

CORE_DEV_STATUS = "core"
CORE_DEV_STATUS_LEVEL = 100
Expand Down
9 changes: 5 additions & 4 deletions src/manifestoo/commands/check_licenses.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from typing import Iterable, Optional, Set, Tuple

from manifestoo_core.addon import Addon
from manifestoo_core.addons_set import AddonsSet
from manifestoo_core.core_addons import get_core_addon_license, is_core_addon
from manifestoo_core.odoo_series import OdooSeries

from .. import echo
from ..addon import Addon
from ..addons_selection import AddonsSelection
from ..addons_set import AddonsSet
from ..core_addons import get_core_addon_license, is_core_addon
from ..dependency_iterator import dependency_iterator
from ..license import LicenseType, can_depend_on, get_license_type
from ..odoo_series import OdooSeries


def _get_license_type_or_proprietary(
Expand Down
3 changes: 2 additions & 1 deletion src/manifestoo/commands/list_codepends.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from typing import Iterable, Set

from manifestoo_core.addons_set import AddonsSet

from ..addons_selection import AddonsSelection
from ..addons_set import AddonsSet


def list_codepends_command(
Expand Down
3 changes: 2 additions & 1 deletion src/manifestoo/commands/list_depends.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from typing import Iterable, Set, Tuple

from manifestoo_core.addons_set import AddonsSet

from ..addons_selection import AddonsSelection
from ..addons_set import AddonsSet
from ..dependency_iterator import dependency_iterator


Expand Down
3 changes: 2 additions & 1 deletion src/manifestoo/commands/list_external_dependencies.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from typing import Iterable, Set, Tuple

from manifestoo_core.addons_set import AddonsSet

from ..addons_selection import AddonsSelection
from ..addons_set import AddonsSet
from ..dependency_iterator import dependency_iterator


Expand Down
13 changes: 9 additions & 4 deletions src/manifestoo/commands/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@

import typer

from ..addon import Addon
from manifestoo_core.addon import Addon
from manifestoo_core.addons_set import AddonsSet
from manifestoo_core.core_addons import (
is_core_addon,
is_core_ce_addon,
is_core_ee_addon,
)
from manifestoo_core.odoo_series import OdooEdition, OdooSeries

from ..addons_selection import AddonsSelection
from ..addons_set import AddonsSet
from ..core_addons import is_core_addon, is_core_ce_addon, is_core_ee_addon
from ..odoo_series import OdooEdition, OdooSeries

NodeKey = str

Expand Down
49 changes: 0 additions & 49 deletions src/manifestoo/core_addons/__init__.py

This file was deleted.

Loading