From 4cc7366047f937d4f975260100429393f54e1726 Mon Sep 17 00:00:00 2001 From: mgeitz Date: Sat, 16 Mar 2024 17:53:43 -0400 Subject: [PATCH] fixup! fixup! fixup! fixup! (wip) Resolving 3.11 Build Issues --- README.md | 31 +++++++++++++++++++++++++------ poetry.lock | 33 +++++++++++++++++++++++++++++++-- pyproject.toml | 2 +- 3 files changed, 57 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fe8849af..f1603be2 100644 --- a/README.md +++ b/README.md @@ -12,26 +12,45 @@ A Configurable and Context Driven Project 1999 Log Parser with NCurses Interface #### PyPI ```sh -$ pip3 install eqalert -$ # or if your distribution is using externally managed environemnts +# Download $ pipx install eqalert + +# Start eqalert +$ eqalert ``` #### Locally ```sh +# Clone the repository $ git clone https://github.com/mgeitz/eqalert.git $ cd eqalert -$ python3 -m pip install -e . -$ # or if your distribution is using externally managed environments -$ # (remember the venv must be sourced to run eqalert when installed this way) -$ python3 -m venv .venv; source .venv/bin/activate; python3 -m pip install -e . + +# Install poetry +$ pipx install poetry + +# Install playsound +$ poetry run pip install --upgrade pip +$ poetry run pip install --upgrade wheel +$ poetry run pip install playsound + +# Retrieve dependencies and build +$ poetry install +$ poetry build + +# Start eqalert +$ poetry run eqalert ``` #### Docker ```sh +# Clone the repository $ git clone https://github.com/mgeitz/eqalert.git $ cd eqalert + +# Build $ docker compose build + +# Start eqalert $ docker compose run eqalert ``` diff --git a/poetry.lock b/poetry.lock index 4d0a1f3f..f3317a28 100644 --- a/poetry.lock +++ b/poetry.lock @@ -139,6 +139,21 @@ files = [ {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] +[[package]] +name = "exceptiongroup" +version = "1.2.0" +description = "Backport of PEP 654 (exception groups)" +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "exceptiongroup-1.2.0-py3-none-any.whl", hash = "sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14"}, + {file = "exceptiongroup-1.2.0.tar.gz", hash = "sha256:91f5c769735f051a4290d52edd0858999b57e5876e9f85937691bd4c9fa3ed68"}, +] + +[package.extras] +test = ["pytest (>=6)"] + [[package]] name = "gtts" version = "2.3.2" @@ -236,9 +251,11 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" pluggy = ">=1.4,<2.0" +tomli = {version = ">=1", markers = "python_version < \"3.11\""} [package.extras] testing = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] @@ -265,6 +282,18 @@ urllib3 = ">=1.21.1,<3" socks = ["PySocks (>=1.5.6,!=1.5.7)"] use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] +[[package]] +name = "tomli" +version = "2.0.1" +description = "A lil' TOML parser" +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, + {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, +] + [[package]] name = "urllib3" version = "2.2.1" @@ -285,5 +314,5 @@ zstd = ["zstandard (>=0.18.0)"] [metadata] lock-version = "2.0" -python-versions = "^3.11.2" -content-hash = "371a4b78f7895f76f0327e8d4be504c381147a92e4c59269b5b452594ad2e5d3" +python-versions = ">=3.9.2" +content-hash = "df44ff26f26dfa091046c3e9ad0fe8d8bcfe13f5b7c32415c66cb566327045ee" diff --git a/pyproject.toml b/pyproject.toml index 061350ac..95f209dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ packages = [ ] [tool.poetry.dependencies] -python = "^3.11.2" +python = ">=3.9.2" playsound = "~1.3.0" gtts = "~2.3.2"