Version: rely on pyproject.toml and setuptools_scm

Move brand information to Python package rather than settings.yml
`pip install .` works with the right version.

Dependencies are moved to setup.py
requirements.txt contains the dev dependencies.
requirements-dev.txt is removed

"make install" is broken
This commit is contained in:
Alexandre Flament 2023-01-14 15:22:59 +00:00
parent 675dc04917
commit 3a14cf0efe
6 changed files with 98 additions and 76 deletions

View file

@ -488,9 +488,6 @@ EOF
info_msg "install needed python packages"
tee_stderr 0.1 <<EOF | sudo -H -u "${SERVICE_USER}" -i 2>&1 | prefix_stdout "$_service_prefix"
pip install -U pip
pip install -U setuptools
pip install -U wheel
pip install -U pyyaml
cd ${SEARXNG_SRC}
pip install -e .
EOF
@ -558,9 +555,6 @@ cd ${SEARXNG_SRC}
git fetch origin "$GIT_BRANCH"
git reset --hard "origin/$GIT_BRANCH"
pip install -U pip
pip install -U setuptools
pip install -U wheel
pip install -U pyyaml
pip install -U -e .
EOF
rst_para "update instance's settings.yml from ${SEARXNG_SETTINGS_PATH}"