Skip to content

Commit 4b6c57c

Browse files
committed
installation (#1),hxlquickmeta (#9): debugging pylint when do not found namespaced packages for local developemnt (aka when not installed as package, but using on VSCode)
1 parent 531a70b commit 4b6c57c

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

hxlm/core/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
Type
1111
)
1212

13-
from hxlm.core.htype.encryption import EncryptionHtype
14-
from hxlm.core.htype.sensitive import SensitiveHtype
13+
from .htype.encryption import EncryptionHtype
14+
from .htype.sensitive import SensitiveHtype
1515

1616
# ### True, False, Missing, Unknow, Encrypted, START _________________________
1717
# Even without controlled vocabularies (like +v_un_bool with 6 official UN

hxlm/core/htype/data.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@
3030
from dataclasses import dataclass
3131

3232
from hxlm.core.base import HXLBaseInformation
33-
from hxltype.encryption import EncryptionHtype
34-
from hxltype.level import LevelHtype
35-
from hxltype.sensitive import SensitiveHtype
36-
from hxltype.storage import StorageHtype
37-
from hxltype.usage import UsageHtype
38-
from hxltype.weight import WeightHtype
33+
from hxlm.core.base import HXLBaseInformation
34+
from hxlm.core.htype.encryption import EncryptionHtype
35+
from hxlm.core.htype.level import LevelHtype
36+
from hxlm.core.htype.sensitive import SensitiveHtype
37+
from hxlm.core.htype.storage import StorageHtype
38+
from hxlm.core.htype.usage import UsageHtype
39+
from hxlm.core.htype.weight import WeightHtype
3940

4041
# https://github.com/pandas-dev/pandas/blob/master/pandas/core/dtypes/dtypes.py
4142
from typing import (

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# TODO: see https://www.python.org/dev/peps/pep-0420/
44
# TODO: see https://pawamoy.github.io/posts/plugins-as-python-native-namespace-packages/
55
# TODO: see https://github.com/napari/napari/issues/139
6+
# @see https://setuptools.readthedocs.io/en/latest/userguide/package_discovery.html
67

78
import setuptools
89

@@ -30,6 +31,7 @@
3031
# So users would need to install via github.
3132
# Anyway, tend to be a good idea allow user import different packages
3233
name="hxlm_eticaai",
34+
namespace_packages="hxlm",
3335
version="0.7.0",
3436
author="Emerson Rocha",
3537
author_email="rocha@ieee.org",
@@ -45,6 +47,7 @@
4547
"Typing :: Typed",
4648
"Topic :: Utilities"
4749
],
48-
packages=setuptools.find_packages(),
50+
# packages=setuptools.find_packages(),
51+
packages=setuptools.find_namespace_packages(),
4952
python_requires='>=3.7',
5053
)

0 commit comments

Comments
 (0)