Skip to content

Commit bcce239

Browse files
committed
fix imports and packaging of submodules
1 parent 332eafe commit bcce239

24 files changed

+82
-74
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
## [Unreleased]
55
- No unreleased changes so far
66

7+
## [0.13.1] - 2021-07-26
8+
### Fixed
9+
- Packaging of subpackages
10+
11+
### Changed
12+
- removed relative imports
13+
714
## [0.13.0] - 2021-07-26
815
### Added
916
- Dummy for maintenance status (currently no data provided, only error messages)
@@ -156,7 +163,8 @@ Minor fix in observer interface
156163
## [0.1.0] - 2021-05-26
157164
Initial release
158165

159-
[unreleased]: https://github.com/tillsteinbach/WeConnect-python/compare/v0.13.0...HEAD
166+
[unreleased]: https://github.com/tillsteinbach/WeConnect-python/compare/v0.13.1...HEAD
167+
[0.13.1]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.13.1
160168
[0.13.0]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.13.0
161169
[0.12.3]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.12.3
162170
[0.12.2]: https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.12.2

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pathlib
2-
from setuptools import setup
2+
from setuptools import setup, find_packages
33

44
# The directory containing this file
55
HERE = pathlib.Path(__file__).parent
@@ -11,7 +11,7 @@
1111

1212
setup(
1313
name='weconnect',
14-
packages=['weconnect'],
14+
packages=find_packages(),
1515
version=open("weconnect/__version.py").readlines()[-1].split()[-1].strip("\"'"),
1616
description='Python API for the Volkswagen WeConnect Services',
1717
long_description=README,

weconnect/addressable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from PIL import Image
77
import ascii_magic
88

9-
from .util import toBool, imgToASCIIArt
9+
from weconnect.util import toBool, imgToASCIIArt
1010

1111
LOG = logging.getLogger("weconnect")
1212

weconnect/elements/access_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from enum import Enum
22
import logging
33

4-
from ..addressable import AddressableObject, AddressableAttribute, AddressableDict
5-
from ..elements.generic_status import GenericStatus
4+
from weconnect.addressable import AddressableObject, AddressableAttribute, AddressableDict
5+
from weconnect.elements.generic_status import GenericStatus
66

77
LOG = logging.getLogger("weconnect")
88

weconnect/elements/battery_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22

3-
from ..addressable import AddressableAttribute
4-
from ..elements.generic_status import GenericStatus
3+
from weconnect.addressable import AddressableAttribute
4+
from weconnect.elements.generic_status import GenericStatus
55

66
LOG = logging.getLogger("weconnect")
77

weconnect/elements/capability_status.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import logging
22

3-
from ..addressable import AddressableDict
4-
from ..elements.generic_status import GenericStatus
5-
from ..elements.generic_capability import GenericCapability
3+
from weconnect.addressable import AddressableDict
4+
from weconnect.elements.generic_status import GenericStatus
5+
from weconnect.elements.generic_capability import GenericCapability
66

77
LOG = logging.getLogger("weconnect")
88

weconnect/elements/charge_mode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from enum import Enum
22
import logging
33

4-
from ..addressable import AddressableAttribute
5-
from ..elements.generic_status import GenericStatus
4+
from weconnect.addressable import AddressableAttribute
5+
from weconnect.elements.generic_status import GenericStatus
66

77
LOG = logging.getLogger("weconnect")
88

weconnect/elements/charging_settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import logging
22

3-
from ..addressable import AddressableLeaf, ChangeableAttribute
4-
from ..elements.generic_settings import GenericSettings
5-
from ..elements.control_operation import ControlInputEnum
3+
from weconnect.addressable import AddressableLeaf, ChangeableAttribute
4+
from weconnect.elements.generic_settings import GenericSettings
5+
from weconnect.elements.control_operation import ControlInputEnum
66

77
LOG = logging.getLogger("weconnect")
88

weconnect/elements/charging_station.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import logging
22
from enum import Enum
33

4-
from ..util import toBool
5-
from ..addressable import AddressableObject, AddressableAttribute, AddressableList
4+
from weconnect.util import toBool
5+
from weconnect.addressable import AddressableObject, AddressableAttribute, AddressableList
66

77
LOG = logging.getLogger("weconnect")
88

weconnect/elements/charging_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from enum import Enum
22
import logging
33

4-
from ..addressable import AddressableAttribute
5-
from ..elements.generic_status import GenericStatus
4+
from weconnect.addressable import AddressableAttribute
5+
from weconnect.elements.generic_status import GenericStatus
66

77
LOG = logging.getLogger("weconnect")
88

0 commit comments

Comments
 (0)