From a49849b636a60e220f730d89c1abe58789a10ca6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 2 Apr 2024 00:56:35 +0200 Subject: [PATCH 1/1] 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 --- .gitignore | 5 +---- docs/README.md | 10 ++++++++-- requirements.txt | 4 ---- venv/pyvenv.cfg | 5 ----- 4 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 venv/pyvenv.cfg 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 -- 2.39.2