dataclasses & enum based replacement for devicedependent

This change replaces the simple lists and dictionaries
defined in brother_ql/devicedependent.py with data class
based definitions split into two new modules:

* brother_ql/models.py and
* brother_ql/labels.py.

To keep the compatibility with other software relying on
this package, the old brother_ql/devicedependent.py module
can still be imported. Its content is recreated with the
help of the new modules in some _populate_legacy_structures()
functions.
This commit is contained in:
Philipp Klaus
2019-01-12 21:30:51 +01:00
parent 40a1badd66
commit 0a3af68eaa
5 changed files with 293 additions and 163 deletions
+3
View File
@@ -43,6 +43,9 @@ setup(name='brother_ql',
"packbits",
"pillow>=3.3.0",
"pyusb",
'dataclasses;python_version<"3.7"',
'typing;python_version<"3.5"',
'enum34;python_version<"3.4"',
],
extras_require = {
#'brother_ql_analyse': ["matplotlib",],