Skip to content

Commit

Permalink
Now Python 3.11 ready.
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimen committed Jul 25, 2023
1 parent a4b49d3 commit 46d66c0
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 43 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ is ported from [commit #913a6f4 on Aug 19, 2019](https://github.com/kevin-wells/
## Release: Version 0.0.4 : 2023/5/11

Bug fix: Blank profile '' was ignored.

## Release: Version 0.0.5 : 2023/7/12

Now Python 3.11 ready. Drops 3.7 support. (but it still works I guess)
2 changes: 1 addition & 1 deletion pykle_serial/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .serial import Key, Keyboard, KeyboardMetadata, deserialize, parse, UB_LABEL_MAP

__version_info__ = (0, 0, 4)
__version_info__ = (0, 0, 5)
__version__ = '.'.join(map(str, __version_info__))
4 changes: 2 additions & 2 deletions pykle_serial/serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Key:
labels: List[str] = _dcf_list()
textColor: List[Optional[str]] = dcf(default_factory=_default_factory_list_factory(UB_LABEL_MAP))
textSize: List[Optional[int]] = dcf(default_factory=_default_factory_list_factory(UB_LABEL_MAP))
default: _inner_Key_default = _inner_Key_default()
default: _inner_Key_default = dcf(default_factory=_inner_Key_default)
x: float = 0.
y: float = 0.
width: float = 1.
Expand Down Expand Up @@ -71,7 +71,7 @@ class KeyboardMetadata:

@dataclass
class Keyboard:
meta: KeyboardMetadata = KeyboardMetadata()
meta: KeyboardMetadata = dcf(default_factory=KeyboardMetadata)
keys: List[Key] = _dcf_list()


Expand Down
34 changes: 34 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "pykle_serial"
dynamic = ["version"]
description = "A Python library for parsing the serialized format used on keyboard-layout-editor.com (KLE)."
authors = [{name = "Hajime Nakazato", email = "[email protected]"},
]
license ={text = "MIT License"}
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"json5 >= 0.9.5",
]

[project.urls]
Bug_Tracker = "https://github.com/hajimen/pykle_serial/issues"
Changelog = "https://github.com/hajimen/pykle_serial/blob/master/CHANGELOG.md"

[tool.setuptools.dynamic]
version = {attr = "pykle_serial.__version__"}
38 changes: 0 additions & 38 deletions setup.cfg

This file was deleted.

2 changes: 0 additions & 2 deletions setup.py

This file was deleted.

0 comments on commit 46d66c0

Please sign in to comment.