From 03ffa6e494795174bd66c9afcbc00fe459d6960f Mon Sep 17 00:00:00 2001 From: Wes Appler Date: Wed, 14 Jan 2026 13:10:32 -0500 Subject: [PATCH 1/2] Removed requirements file, added documentation & fixed docs not starting --- .python-version | 2 +- docs/scripts/doc_macros.py | 2 +- docs/setup/deployment/development/stand-alone.md | 3 +++ requirements.txt | 2 -- 4 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 requirements.txt diff --git a/.python-version b/.python-version index e4fba21835..fdcfcfdfca 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.12 +3.12 \ No newline at end of file diff --git a/docs/scripts/doc_macros.py b/docs/scripts/doc_macros.py index c24f521805..6bbe5c4d75 100644 --- a/docs/scripts/doc_macros.py +++ b/docs/scripts/doc_macros.py @@ -8,7 +8,7 @@ # RegEx string recommended for semver: # https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string -SEMVER_REGEX = r"^(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)(?:-(?P(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$" +SEMVER_REGEX = r"^(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)(?:\.(?P0|[1-9]\d*)(?:-(?P(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)?$" # Exception classes diff --git a/docs/setup/deployment/development/stand-alone.md b/docs/setup/deployment/development/stand-alone.md index 7547c907dc..247548a341 100644 --- a/docs/setup/deployment/development/stand-alone.md +++ b/docs/setup/deployment/development/stand-alone.md @@ -100,6 +100,9 @@ If you want other commands to use it you need to run this command to activate it source .venv/bin/activate ``` +!!! info + While not recommended, pip can still be used to setup your Hypha environment. Just run ```python3 -m pip install -r requirements/.txt``` + ### Installing Node Version Manager NodeJS versions have potential to change. To allow for ease of upgrading, it is recommended to use [Node Version Manager (nvm)](https://github.com/nvm-sh/nvm). diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index b0e7dc6d0b..0000000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -# Required for the heroku buildpack --r requirements/prod.txt From 7e728bec5c39076d0aa379968a2e1ac2b24120c8 Mon Sep 17 00:00:00 2001 From: Wes Appler Date: Wed, 14 Jan 2026 13:15:23 -0500 Subject: [PATCH 2/2] Small formatting fix & reverted .python-version --- .python-version | 2 +- docs/scripts/doc_macros.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.python-version b/.python-version index fdcfcfdfca..e4fba21835 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.12 \ No newline at end of file +3.12 diff --git a/docs/scripts/doc_macros.py b/docs/scripts/doc_macros.py index 6bbe5c4d75..40c9f15f84 100644 --- a/docs/scripts/doc_macros.py +++ b/docs/scripts/doc_macros.py @@ -56,7 +56,9 @@ def get_python_version() -> str: version = py_ver.read() if not valid_semver(version): - raise InvalidVersionException(f'Unrecognized Python version: "{version}"!') + raise InvalidVersionException( + f'Unrecognized Python version: "{version.strip()}"!' + ) return version except FileNotFoundError as err: