From: Roland Häder Date: Mon, 1 Apr 2024 22:56:35 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a49849b636a60e220f730d89c1abe58789a10ca6;p=fba.git Continued: - FBA now requires Python 3.11 - updated documentation accordingly - removed fastapi and uvicorn requirements, your distribution must now provide it - removed jinja2 and requests - ignore entire venv/ directory, contains local paths --- diff --git a/.gitignore b/.gitignore index 2f6ab02..9f3aac0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,4 @@ report.log *.log # Virtual environment -venv/bin/ -venv/include/ -venv/lib/ -venv/lib64 +venv/* diff --git a/docs/README.md b/docs/README.md index cd7c52d..3ded8f7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -4,7 +4,10 @@ Used to see which instances block yours. ## software used: -- python 3.10.2 +- python 3.11+ +- distribution's own: + - python3-fastapi (and all dependencies) + - python3-jinja2 ## Installation @@ -25,8 +28,11 @@ sudo -Hu fba su - # Clone code git clone git://git.mxchange.org/fba.git +# Change to fba: +cd fba + # You MUST create a virtual environment: -python3 -m venv venv +python3 -m venv --system-site-packages venv # Add this to your ~/.bashrc file source "${HOME}/fba/venv/bin/activate" diff --git a/requirements.txt b/requirements.txt index d2cd53f..ccdbeaf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,7 @@ argparse atoma beautifulsoup4 -fastapi -jinja2 markdown reqto -requests -uvicorn validators zc.lockfile diff --git a/venv/pyvenv.cfg b/venv/pyvenv.cfg deleted file mode 100644 index 5bd75b3..0000000 --- a/venv/pyvenv.cfg +++ /dev/null @@ -1,5 +0,0 @@ -home = /usr/bin -include-system-site-packages = true -version = 3.11.2 -executable = /usr/bin/python3.11 -command = /usr/bin/python3 -m venv /home/fba/fba/venv