Skip to content

Commit

Permalink
Move requirements to pyproject.toml
Browse files Browse the repository at this point in the history
Set up enough of pyproject.toml to be valid as a project

We already effectively had a minimum python version of 3.9
(due to dependencies), this change merely denotes that.

regenerating `scripts/klippy-requirements.txt` and `scripts/requirements_dev.txt`
 can be done with
 `uv export -o scripts/klippy-requirements.txt --no-hashes` and
 `uv export -o scripts/requirements_dev.txt --no-hashes --dev-only`
  • Loading branch information
kageurufu committed Dec 22, 2024
1 parent 5c42ff9 commit 23be61f
Show file tree
Hide file tree
Showing 4 changed files with 527 additions and 20 deletions.
39 changes: 31 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
[project]
name = "Kalico"

version = "0.12.1"

requires-python = ">=3.9"
dependencies = [
"cffi==1.15.1",
"greenlet==2.0.2 ; python_version < '3.12'",
"greenlet==3.0.3 ; python_version >= '3.12'",
"Jinja2==3.1.4",
"markupsafe==2.1.5",
"numpy~=2.0 ; python_version=='3.9'",
"numpy~=2.2 ; python_version>='3.10'",
"pyserial==3.4",
"python-can==3.3.4",
]

[project.urls]
homepage = "https://kalico.gg/"
source = "https://github.com/KalicoCrew/kalico"
documentation = "https://docs.kalico.gg/"
issues = "https://github.com/KalicoCrew/kalico/issues"
funding = "https://docs.kalico.gg/Sponsors.html"

[tool.ruff]
line-length = 80
indent-width = 4
exclude = [
".github",
".history",
"config",
"docs",
"lib",
"src"
]
exclude = [".github", ".history", "config", "docs", "lib", "src"]

[tool.ruff.lint]
ignore = [
Expand All @@ -21,3 +39,8 @@ ignore = [
"F841", # Local variable name is assigned to but never used
"E721", # Do not compare types, use 'isinstance()'
]

[tool.uv]
dev-dependencies = [
"ruff>=0.8.4",
]
21 changes: 12 additions & 9 deletions scripts/klippy-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# This file describes the Python virtualenv package requirements for
# the Klipper host software (Klippy). These package requirements are
# typically installed via the command:
# pip install -r klippy-requirements.txt
# This file was autogenerated by uv via the following command:
# uv export -o scripts/klippy-requirements.txt --no-dev --no-hashes
aenum==3.1.15
cffi==1.15.1
greenlet==2.0.2 ; python_full_version < '3.12'
greenlet==3.0.3 ; python_full_version >= '3.12'
jinja2==3.1.4
markupsafe==2.1.5
numpy==2.0.2 ; python_full_version < '3.10'
numpy==2.2.0 ; python_full_version >= '3.10'
pycparser==2.21
pyserial==3.4
greenlet==2.0.2 ; python_version < '3.12'
greenlet==3.0.3 ; python_version >= '3.12'
Jinja2==3.1.4
python-can==3.3.4
markupsafe==2.1.5
numpy==1.26.4
windows-curses==2.4.0 ; platform_system == 'Windows'
wrapt==1.16.0
6 changes: 3 additions & 3 deletions scripts/requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# This file describes the Python virtualenv package requirements for
# klipper CI checks and local development.
ruff==0.7.1
# This file was autogenerated by uv via the following command:
# uv export -o scripts/requirements_dev.txt --only-dev --no-hashes
ruff==0.8.4
Loading

0 comments on commit 23be61f

Please sign in to comment.