From f864e21f2212808a37750273d81cf913f80313b8 Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Wed, 8 Jun 2022 01:55:50 -0400 Subject: [PATCH] pyproject.toml and setup.cfg --- setup.py => _setup.py | 0 pyproject.toml | 23 +++++++++++++++++++++ setup.cfg | 23 +++++++++++++++++++++ {keyszer => src/keyszer}/__init__.py | 1 + {keyszer => src/keyszer}/cli.py | 0 {keyszer => src/keyszer}/config_api.py | 0 {keyszer => src/keyszer}/info.py | 4 ++-- {keyszer => src/keyszer}/input.py | 0 {keyszer => src/keyszer}/key.py | 0 {keyszer => src/keyszer}/lib/__init__.py | 0 {keyszer => src/keyszer}/lib/benchit.py | 0 {keyszer => src/keyszer}/lib/key_context.py | 0 {keyszer => src/keyszer}/lib/keymap.py | 0 {keyszer => src/keyszer}/lib/modmap.py | 0 {keyszer => src/keyszer}/logger.py | 0 {keyszer => src/keyszer}/models/__init__.py | 0 {keyszer => src/keyszer}/models/action.py | 0 {keyszer => src/keyszer}/models/combo.py | 0 {keyszer => src/keyszer}/models/modifier.py | 0 {keyszer => src/keyszer}/output.py | 0 {keyszer => src/keyszer}/transform.py | 0 {keyszer => src/keyszer}/xorg.py | 0 22 files changed, 49 insertions(+), 2 deletions(-) rename setup.py => _setup.py (100%) create mode 100644 pyproject.toml create mode 100644 setup.cfg rename {keyszer => src/keyszer}/__init__.py (76%) rename {keyszer => src/keyszer}/cli.py (100%) rename {keyszer => src/keyszer}/config_api.py (100%) rename {keyszer => src/keyszer}/info.py (72%) rename {keyszer => src/keyszer}/input.py (100%) rename {keyszer => src/keyszer}/key.py (100%) rename {keyszer => src/keyszer}/lib/__init__.py (100%) rename {keyszer => src/keyszer}/lib/benchit.py (100%) rename {keyszer => src/keyszer}/lib/key_context.py (100%) rename {keyszer => src/keyszer}/lib/keymap.py (100%) rename {keyszer => src/keyszer}/lib/modmap.py (100%) rename {keyszer => src/keyszer}/logger.py (100%) rename {keyszer => src/keyszer}/models/__init__.py (100%) rename {keyszer => src/keyszer}/models/action.py (100%) rename {keyszer => src/keyszer}/models/combo.py (100%) rename {keyszer => src/keyszer}/models/modifier.py (100%) rename {keyszer => src/keyszer}/output.py (100%) rename {keyszer => src/keyszer}/transform.py (100%) rename {keyszer => src/keyszer}/xorg.py (100%) diff --git a/setup.py b/_setup.py similarity index 100% rename from setup.py rename to _setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..54c4313 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,23 @@ +[project] +name = "keyszer" +version = "0.4.99" +description = "A smart, flexible key remapper for Linux/X11." +keywords = [ + "keymapper" +] +maintainers = [ + { name = "Josh Goebel", email = "hello@joshgoebel.com" } +] +readme = "README.md" +license.file = "LICENSE" +classifiers = [ + "Programming Language :: Python :: 3" +] + +[project.urls] +Home-page = "https://github.com/jgoebel/keyszer" + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..4964d9d --- /dev/null +++ b/setup.cfg @@ -0,0 +1,23 @@ +[metadata] +platforms = + linux +project_urls = + Bug Tracker = https://github.com/jgoebel/keyszer/issues + +[options] +packages = find: +package_dir= + =src +install_requires = + evdev + python-xlib + inotify_simple + appdirs + ordered_set +# is this right, I really have no idea? +dev_requires = + pytest + pytest-asyncio + looptime +[options.packages.find] +where=src \ No newline at end of file diff --git a/keyszer/__init__.py b/src/keyszer/__init__.py similarity index 76% rename from keyszer/__init__.py rename to src/keyszer/__init__.py index 9f56d8f..6f9e804 100644 --- a/keyszer/__init__.py +++ b/src/keyszer/__init__.py @@ -1,3 +1,4 @@ # -*- coding: utf-8 -*- from .info import __version__ # , __name__ +VERSION = __version__ \ No newline at end of file diff --git a/keyszer/cli.py b/src/keyszer/cli.py similarity index 100% rename from keyszer/cli.py rename to src/keyszer/cli.py diff --git a/keyszer/config_api.py b/src/keyszer/config_api.py similarity index 100% rename from keyszer/config_api.py rename to src/keyszer/config_api.py diff --git a/keyszer/info.py b/src/keyszer/info.py similarity index 72% rename from keyszer/info.py rename to src/keyszer/info.py index 487bda1..27b4cb2 100644 --- a/keyszer/info.py +++ b/src/keyszer/info.py @@ -4,10 +4,10 @@ __version__ = "0.4.99" -__description__ = "A smart, flexible keyboard remapping tool for the X environment." +__description__ = "A smart, flexible key remapper for Linux/X11." __doc__ = """ -``keyszer`` is a smart and flexible keyboard remapping tool for the X environment. +``keyszer`` is a smart and flexible key remapper for Linux/X11t. It's like ``xmodmap`` but better. - Has high-level and flexible remapping mechanisms, such as diff --git a/keyszer/input.py b/src/keyszer/input.py similarity index 100% rename from keyszer/input.py rename to src/keyszer/input.py diff --git a/keyszer/key.py b/src/keyszer/key.py similarity index 100% rename from keyszer/key.py rename to src/keyszer/key.py diff --git a/keyszer/lib/__init__.py b/src/keyszer/lib/__init__.py similarity index 100% rename from keyszer/lib/__init__.py rename to src/keyszer/lib/__init__.py diff --git a/keyszer/lib/benchit.py b/src/keyszer/lib/benchit.py similarity index 100% rename from keyszer/lib/benchit.py rename to src/keyszer/lib/benchit.py diff --git a/keyszer/lib/key_context.py b/src/keyszer/lib/key_context.py similarity index 100% rename from keyszer/lib/key_context.py rename to src/keyszer/lib/key_context.py diff --git a/keyszer/lib/keymap.py b/src/keyszer/lib/keymap.py similarity index 100% rename from keyszer/lib/keymap.py rename to src/keyszer/lib/keymap.py diff --git a/keyszer/lib/modmap.py b/src/keyszer/lib/modmap.py similarity index 100% rename from keyszer/lib/modmap.py rename to src/keyszer/lib/modmap.py diff --git a/keyszer/logger.py b/src/keyszer/logger.py similarity index 100% rename from keyszer/logger.py rename to src/keyszer/logger.py diff --git a/keyszer/models/__init__.py b/src/keyszer/models/__init__.py similarity index 100% rename from keyszer/models/__init__.py rename to src/keyszer/models/__init__.py diff --git a/keyszer/models/action.py b/src/keyszer/models/action.py similarity index 100% rename from keyszer/models/action.py rename to src/keyszer/models/action.py diff --git a/keyszer/models/combo.py b/src/keyszer/models/combo.py similarity index 100% rename from keyszer/models/combo.py rename to src/keyszer/models/combo.py diff --git a/keyszer/models/modifier.py b/src/keyszer/models/modifier.py similarity index 100% rename from keyszer/models/modifier.py rename to src/keyszer/models/modifier.py diff --git a/keyszer/output.py b/src/keyszer/output.py similarity index 100% rename from keyszer/output.py rename to src/keyszer/output.py diff --git a/keyszer/transform.py b/src/keyszer/transform.py similarity index 100% rename from keyszer/transform.py rename to src/keyszer/transform.py diff --git a/keyszer/xorg.py b/src/keyszer/xorg.py similarity index 100% rename from keyszer/xorg.py rename to src/keyszer/xorg.py