django-log-formatter-asim 0.0.4__py3-none-any.whl → 0.0.6__py3-none-any.whl
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.
- {django_log_formatter_asim-0.0.4.dist-info → django_log_formatter_asim-0.0.6.dist-info}/METADATA +42 -2
- django_log_formatter_asim-0.0.6.dist-info/RECORD +5 -0
- {django_log_formatter_asim-0.0.4.dist-info → django_log_formatter_asim-0.0.6.dist-info}/WHEEL +1 -1
- django_log_formatter_asim-0.0.4.dist-info/RECORD +0 -5
- {django_log_formatter_asim-0.0.4.dist-info → django_log_formatter_asim-0.0.6.dist-info}/LICENSE +0 -0
{django_log_formatter_asim-0.0.4.dist-info → django_log_formatter_asim-0.0.6.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-log-formatter-asim
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: Formats Django logs in ASIM format.
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Department for Business and Trade Platform Team
|
|
@@ -11,7 +11,9 @@ Classifier: Programming Language :: Python :: 3
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.9
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
-
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Requires-Dist: django (>=3,<5) ; python_version >= "3.9" and python_version < "3.10"
|
|
16
|
+
Requires-Dist: django (>=3,<6) ; python_version >= "3.10" and python_version < "4"
|
|
15
17
|
Requires-Dist: pre-commit (>=3.5.0,<4.0.0)
|
|
16
18
|
Description-Content-Type: text/markdown
|
|
17
19
|
|
|
@@ -49,14 +51,20 @@ LOGGING = {
|
|
|
49
51
|
...
|
|
50
52
|
},
|
|
51
53
|
},
|
|
54
|
+
"root": {
|
|
55
|
+
"handlers": ["asim"],
|
|
56
|
+
...
|
|
57
|
+
}
|
|
52
58
|
"loggers": {
|
|
53
59
|
"django": {
|
|
54
60
|
"handlers": ["asim"],
|
|
61
|
+
"propagate": False
|
|
55
62
|
...
|
|
56
63
|
},
|
|
57
64
|
},
|
|
58
65
|
}
|
|
59
66
|
```
|
|
67
|
+
In this example we assign the ASIM formatter to a `handler` and ensure both `root` and `django` loggers use this `handler`. We then set `propagate` to `False` on the `django` logger, to avoid duplicating logs at the root level.
|
|
60
68
|
|
|
61
69
|
## Dependencies
|
|
62
70
|
|
|
@@ -132,3 +140,35 @@ Run `poetry run pytest` in the root directory to run all tests.
|
|
|
132
140
|
|
|
133
141
|
Or, run `poetry run tox` in the root directory to run all tests for multiple Python versions. See the [`tox` configuration file](tox.ini).
|
|
134
142
|
|
|
143
|
+
### Publishing
|
|
144
|
+
|
|
145
|
+
1. Acquire API token from [Passman](https://passman.ci.uktrade.digital/secret/cc82a3f7-ddfa-4312-ab56-1ff8528dadc8/).
|
|
146
|
+
- Request access from the SRE team.
|
|
147
|
+
- _Note: You will need access to the `platform` group in Passman._
|
|
148
|
+
2. Run `poetry config pypi-token.pypi <token>` to add the token to your Poetry configuration.
|
|
149
|
+
|
|
150
|
+
Update the version, as the same version cannot be published to PyPI.
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
poetry version patch
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
More options for the `version` command can be found in the [Poetry documentation](https://python-poetry.org/docs/cli/#version). For example, for a minor version bump: `poetry version minor`.
|
|
157
|
+
|
|
158
|
+
Build the Python package.
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
poetry build
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Publish the Python package.
|
|
165
|
+
|
|
166
|
+
_Note: Make sure your Pull Request (PR) is approved and contains the version upgrade in `pyproject.toml` before publishing the package._
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
poetry publish
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Check the [PyPI Release history](https://pypi.org/project/django-log-formatter-asim/#history) to make sure the package has been updated.
|
|
173
|
+
|
|
174
|
+
For an optional manual check, install the package locally and test everything works as expected.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
django_log_formatter_asim/__init__.py,sha256=xB7ESmQuHJ1XZJpXOdRIpdB9qra9b_Uc6es3FsgDlEc,6215
|
|
2
|
+
django_log_formatter_asim-0.0.6.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
|
|
3
|
+
django_log_formatter_asim-0.0.6.dist-info/METADATA,sha256=ucbxWq0vCqn2UhwBmnfTJfPc1hEJNh0JOYtNBWZ0j5Q,5513
|
|
4
|
+
django_log_formatter_asim-0.0.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
5
|
+
django_log_formatter_asim-0.0.6.dist-info/RECORD,,
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
django_log_formatter_asim/__init__.py,sha256=xB7ESmQuHJ1XZJpXOdRIpdB9qra9b_Uc6es3FsgDlEc,6215
|
|
2
|
-
django_log_formatter_asim-0.0.4.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
|
|
3
|
-
django_log_formatter_asim-0.0.4.dist-info/METADATA,sha256=RZbQeseSIjnmdxF_yCVCt8iy0BR6tZ04H4UFrh4KwnA,3898
|
|
4
|
-
django_log_formatter_asim-0.0.4.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
5
|
-
django_log_formatter_asim-0.0.4.dist-info/RECORD,,
|
{django_log_formatter_asim-0.0.4.dist-info → django_log_formatter_asim-0.0.6.dist-info}/LICENSE
RENAMED
|
File without changes
|