From 92bf7594ad4d7624817a66329eaee3ff836165cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlson=20Moses=20B=C3=BCth?= <49326130+cbueth@users.noreply.github.com> Date: Tue, 16 Apr 2024 18:11:39 +0200 Subject: [PATCH 1/2] Remove logging to file --- README.md | 8 -------- superblockify/logging.cfg | 10 ++-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 2c3cd26..bc5f444 100644 --- a/README.md +++ b/README.md @@ -64,14 +64,6 @@ the [`examples/`](https://github.com/NERDSITU/superblockify/blob/main/scripts/ex folder and a [minimal working example](https://github.com/NERDSITU/superblockify/blob/main/scripts/examples/mwe.py). -## Logging - -The logging is done using the `logging` module. The logging level can be set in the -`setup.cfg` file. The logging level can be set to `DEBUG`, `INFO`, `WARNING`, `ERROR` -or `CRITICAL`. It defaults to `INFO` and a rotating file handler is set up to log -to `results/logs/superblockify.log`. The log file is rotated every megabyte, and the -last three log files are kept. - ## Testing The tests are specified using the `pytest` signature, see [`tests/`](tests/) folder, and diff --git a/superblockify/logging.cfg b/superblockify/logging.cfg index 1b2301a..f52aa99 100644 --- a/superblockify/logging.cfg +++ b/superblockify/logging.cfg @@ -2,7 +2,7 @@ keys = root [handlers] -keys = consoleHandler,RotatingFileHandler +keys = consoleHandler [formatters] keys = simpleFormatter @@ -13,7 +13,7 @@ handlers = consoleHandler [logger_superblockify] level = INFO -handlers = consoleHandler,RotatingFileHandler +handlers = consoleHandler qualname = superblockify propagate = 1 @@ -30,11 +30,5 @@ formatter = simpleFormatter args = (sys.stdout,) qualname = tqdm -[handler_RotatingFileHandler] -class = handlers.RotatingFileHandler -level = DEBUG -formatter = simpleFormatter -args = ('superblockify.log', 'w+', 1e6, 3) - [formatter_simpleFormatter] format = %(asctime)s | %(levelname)8s | %(filename)s:%(lineno)d | %(message)s From 9ec01039419bfea95f7f79b900d2253906ba7644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlson=20Moses=20B=C3=BCth?= <49326130+cbueth@users.noreply.github.com> Date: Tue, 16 Apr 2024 18:12:54 +0200 Subject: [PATCH 2/2] CI/CD: Test without `pyrosm` --- environment.yml | 1 - pyproject.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/environment.yml b/environment.yml index e12dd04..3e6c788 100644 --- a/environment.yml +++ b/environment.yml @@ -9,7 +9,6 @@ dependencies: - geopandas - rasterio - shapely - - pyrosm - numba - tqdm - contextily diff --git a/pyproject.toml b/pyproject.toml index ea694ff..65a9a14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,6 @@ dependencies = [ "geopandas", "rasterio", "shapely", - "pyrosm", "numba", "tqdm", "contextily",