-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3: Package with pyproject/hatch
Signed-off-by: Daniel Schaefer <[email protected]>
- Loading branch information
1 parent
5c62a33
commit 067f507
Showing
10 changed files
with
111 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
target/ | ||
|
||
# Python | ||
__pycache__ | ||
venv/ | ||
|
||
# pyinstaller | ||
qmk_gui.spec | ||
build/ | ||
dist/ | ||
|
||
# Hatch | ||
_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Python | ||
|
||
## Installing | ||
|
||
Pre-requisites: Python with pip | ||
|
||
```sh | ||
python3 -m pip install qmk_hid | ||
``` | ||
|
||
## GUI | ||
|
||
On Linux install Python requirements via `python3 -m install -r requirements.txt` and run `qmk_gui.py`. | ||
On Windows download the `qmk_gui.exe` and run it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "qmk_hid" | ||
# TODO: Dynamic version from git (requires tags) | ||
#dynamic = ["version"] | ||
version = "0.1.8" | ||
description = 'A GUI tool to control QMK keyboard, specifically of the Framework Laptop 16' | ||
# TODO: Custom README for python project | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
license = { text = "MIT" } | ||
keywords = [ | ||
"hatch", | ||
] | ||
authors = [ | ||
{ name = "Daniel Schaefer", email = "[email protected]" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
] | ||
dependencies = [ | ||
"hidapi==0.14.0", | ||
"PySimpleGUI==4.60.5", | ||
"pywin32; os_name == 'nt'", | ||
] | ||
|
||
[project.urls] | ||
Issues = "https://github.com/FrameworkComputer/qmk_hid/issues" | ||
Source = "https://github.com/FrameworkComputer/qmk_hid" | ||
|
||
# TODO: Figure out how to add a runnable-script | ||
#[project.scripts] | ||
#qmk_hid = "qmk_hid.gui:main_cli" | ||
|
||
[project.gui-scripts] | ||
qmk_gui = "qmk_hid.gui:main" | ||
|
||
#[tool.hatch.version] | ||
#source = "vcs" | ||
# | ||
#[tool.hatch.build.hooks.vcs] | ||
#version-file = "qmk_hid/_version.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = [ | ||
"/.github", | ||
] | ||
|
||
# TODO: Maybe typing with mypy | ||
# [tool.hatch.build.targets.wheel.hooks.mypyc] | ||
# enable-by-default = false | ||
# dependencies = ["hatch-mypyc>=0.14.1"] | ||
# require-runtime-dependencies = true | ||
# mypy-args = [ | ||
# "--no-warn-unused-ignores", | ||
# ] | ||
# | ||
# [tool.mypy] | ||
# disallow_untyped_defs = false | ||
# follow_imports = "normal" | ||
# ignore_missing_imports = true | ||
# pretty = true | ||
# show_column_numbers = true | ||
# warn_no_return = false | ||
# warn_unused_ignores = true |
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
hidapi==0.14.0 | ||
PySimpleGUI==4.60.5 | ||
pywin32 | ||
pywin32; sys_platform = 'windows' |