Skip to content

Commit

Permalink
feat:extras_requirements (#40)
Browse files Browse the repository at this point in the history
* feat:extras_requirements

default plugins that should be bundled in a "full" install
  • Loading branch information
JarbasAl authored Sep 11, 2024
1 parent 7633035 commit d140ccd
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt install libasound2-dev
- name: Install Build Tools
run: |
python -m pip install build wheel
Expand All @@ -39,4 +43,4 @@ jobs:
python setup.py bdist_wheel
- name: Install package
run: |
pip install .
pip install .[extras,linux]
3 changes: 3 additions & 0 deletions requirements/extras.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ovos-phal-plugin-ipgeo>=0.0.1,<1.0.0
ovos-PHAL-plugin-connectivity-events>=0.0.1,<1.0.0
ovos-PHAL-plugin-oauth>=0.0.1,<1.0.0
3 changes: 3 additions & 0 deletions requirements/linux.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ovos-phal-plugin-alsa>=0.0.1,<1.0.0
ovos-phal-plugin-system>=0.0.1,<1.0.0
ovos-PHAL-plugin-network-manager>=0.0.1,<2.0.0
1 change: 1 addition & 0 deletions requirements/mac.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ovos-phal-plugin-mac>=0.0.1,<1.0.0
1 change: 1 addition & 0 deletions requirements/mk1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ovos-PHAL-plugin-mk1>=0.0.1,<1.0.0
1 change: 1 addition & 0 deletions requirements/mk2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# TODO - led plugin needed
1 change: 1 addition & 0 deletions requirements/mk2dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ovos-PHAL-plugin-mk2-fan-control>=0.0.1,<1.0.0
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ def required(requirements_file):
version=get_version(),
packages=['ovos_PHAL'],
install_requires=required("requirements/requirements.txt"),
extras_require={
"extras": required("requirements/extras.txt"),
"linux": required("requirements/linux.txt"),
"mac": required("requirements/mac.txt"),
"mk1": required("requirements/mk1.txt"),
"mk2": required("requirements/mk2.txt"),
"mk2dev": required("requirements/mk2dev.txt")
},
package_data={'': package_files('ovos_PHAL')},
url='https://github.com/OpenVoiceOS/ovos-PHAL',
description="Plugin based Hardware Abstraction Layer for OVOS",
Expand Down

0 comments on commit d140ccd

Please sign in to comment.