apppy-logger 0.1.0__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of apppy-logger might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apppy-logger
3
- Version: 0.1.0
3
+ Version: 0.3.0
4
4
  Summary: Python logger extensions for server development
5
5
  Project-URL: Homepage, https://github.com/spals/apppy
6
6
  Author: Tim Kral
@@ -1,6 +1,6 @@
1
1
  ifndef APPPY_LOGGER_MK_INCLUDED
2
2
  APPPY_LOGGER_MK_INCLUDED := 1
3
- LOGGER_PKG_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
3
+ LOGGER_PKG_DIR := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
4
4
 
5
5
  .PHONY: logger logger-dev logger/build logger/clean logger/install logger/install-dev
6
6
 
@@ -2,10 +2,13 @@
2
2
  requires = ["hatchling>=1.25"]
3
3
  build-backend = "hatchling.build"
4
4
 
5
+ [dependency-groups]
6
+ dev = []
7
+
5
8
  [project]
6
9
  name = "apppy-logger"
7
- version = "0.1.0"
8
10
  description = "Python logger extensions for server development"
11
+ dynamic = ["version"]
9
12
  readme = "README.md"
10
13
  requires-python = ">=3.11"
11
14
  license = {text = "MIT"}
@@ -21,3 +24,8 @@ Homepage = "https://github.com/spals/apppy"
21
24
 
22
25
  [tool.hatch.build.targets.wheel]
23
26
  packages = ["src/apppy"]
27
+
28
+ [tool.hatch.version]
29
+ path = "../../VERSION"
30
+ pattern = "^(?P<version>\\d+\\.\\d+\\.\\d+)$"
31
+ source = "regex"
@@ -1,5 +1,5 @@
1
1
  import logging
2
- from typing import Any, Optional
2
+ from typing import Any, Optional, cast
3
3
 
4
4
 
5
5
  class LogRecordParser:
@@ -38,7 +38,7 @@ class LogRecordParser:
38
38
  Parse state data from the given log record that is added via LoggingStorage.
39
39
  """
40
40
  if hasattr(log_record, "state") and isinstance(log_record.state, dict):
41
- return log_record.state
41
+ return cast(dict[str, Any], log_record.state)
42
42
 
43
43
  return {}
44
44
 
File without changes
File without changes