diff --git a/docs/scripts/doc_macros.py b/docs/scripts/doc_macros.py index c24f521805..40c9f15f84 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 @@ -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: 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