diff --git a/requirements-linux.txt b/requirements-linux.txt new file mode 100644 index 0000000..4f2ad0e --- /dev/null +++ b/requirements-linux.txt @@ -0,0 +1,3 @@ +evdev==1.9.2 +python-xlib==0.33 +-r requirements.txt diff --git a/requirements.txt b/requirements.txt index 077142d..60a126b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,6 @@ click==8.2.1 cryptography==45.0.5 distro==1.9.0 docutils==0.21.2 -evdev==1.9.2 filelock==3.18.0 frozenlist==1.7.0 fsspec==2025.5.1 @@ -58,7 +57,6 @@ pydantic_core==2.33.2 Pygments==2.19.1 pynput==1.8.1 python-dotenv==1.1.0 -python-xlib==0.33 PyYAML==6.0.2 readme_renderer==44.0 referencing==0.36.2 diff --git a/setup.py b/setup.py index 97f2c02..74e78c9 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,6 @@ from setuptools import setup, find_packages import os +import sys # Read the contents of your README file with open("README.md", "r", encoding="utf-8") as fh: @@ -8,6 +9,12 @@ # Package version VERSION = "1.0.2" +# Platform-specific dependencies +linux_requires = [ + "evdev==1.9.2", + "python-xlib==0.33", +] if sys.platform.startswith('linux') else [] + setup( name="tai-textual", version=VERSION, @@ -20,7 +27,7 @@ package_data={ "tAI": ["config.json", ".env","secret.key","App/style.tcss"], }, - install_requires=[ + install_requires=linux_requires + [ "aiohappyeyeballs==2.6.1", "aiohttp==3.12.13", "aiosignal==1.3.2", @@ -35,7 +42,7 @@ "cryptography==45.0.5", "distro==1.9.0", "docutils==0.21.2", - "evdev==1.9.2", + "filelock==3.18.0", "frozenlist==1.7.0", "fsspec==2025.5.1",