diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 0a31c8b3..2d58f0ce 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -22,7 +22,7 @@ runs: - name: Install package shell: bash - run: python -m pip install . + run: python -m pip install .[production] - name: Install test dependencies shell: bash diff --git a/Dockerfile b/Dockerfile index f2d56955..0b1365bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ RUN pip install -U pip \ RUN bash -c "if [ $DEVEL_COLLECTION_LIBRARY -ne 0 ]; then \ ansible-galaxy collection install ${DEVEL_COLLECTION_REPO} --force; fi" -RUN pip install . +RUN pip install .[production] RUN chmod -R 0775 $APP_DIR RUN chmod -x $APP_DIR/tests/e2e/files/passwords/*.* diff --git a/docs/development_environment.rst b/docs/development_environment.rst index 7f06bb13..20622cf2 100644 --- a/docs/development_environment.rst +++ b/docs/development_environment.rst @@ -26,7 +26,7 @@ Ready to contribute? Here's how to set up `ansible_rulebook` for local developme cd ansible_rulebook/ python3.9 -m venv venv source venv/bin/activate - pip install -e . + pip install -e .[development] pip install -r requirements_dev.txt ansible-galaxy collection install ansible.eda npm install commitlint diff --git a/setup.cfg b/setup.cfg index b69a6bec..63bf0da1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,7 +33,6 @@ install_requires = websockets drools_jpy == 0.3.9 watchdog - psycopg[c] xxhash [options.packages.find] @@ -57,3 +56,9 @@ replace = __version__ = '{new_version}' extend-exclude = docs, venv, .venv extend-ignore = E203, # Whitespace before ':' (false positive in slices, handled by black. + +[options.extras_require] +production = + psycopg[c] +development = + psycopg[binary]