Skip to content

Commit

Permalink
Automatically detect packages in /lib
Browse files Browse the repository at this point in the history
Automate handling of internal packages.
  • Loading branch information
MattHag authored and pfps committed Jun 2, 2024
1 parent be83dac commit 104556e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from glob import glob as _glob
from os.path import dirname as _dirname

from setuptools import find_packages

try:
from setuptools import setup
except ImportError:
Expand Down Expand Up @@ -91,7 +93,7 @@ def _data_files():
"dev": ["ruff"],
},
package_dir={"": "lib"},
packages=["keysyms", "hidapi", "hid_parser", "logitech_receiver", "solaar", "solaar.ui", "solaar.cli"],
packages=find_packages(where="lib"),
data_files=list(_data_files()),
include_package_data=True,
scripts=_glob("bin/*"),
Expand Down

0 comments on commit 104556e

Please sign in to comment.