Skip to content

Commit

Permalink
Update dependencies, in particular bite-parser
Browse files Browse the repository at this point in the history
* Gets better error output if IMAP parsing fails.
* Drop Python 3.7 support (no longer supported by bite-parser).
  • Loading branch information
jgosmann committed Jan 12, 2023
1 parent 04d96f3 commit 4a1c436
Show file tree
Hide file tree
Showing 7 changed files with 800 additions and 901 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: pylint
additional_dependencies:
- aiohttp==3.7.3
- bite-parser==0.1.2
- bite-parser==0.2.1
- dataclasses-serialization==1.3.1
- prometheus_client==0.11
- pytest==6.2.1
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_,
and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.

[0.9.0] - [2023-01-12]
----------------------

Changed
^^^^^^^

* Update bite-parser dependency to version 0.2.1 to get better error output.
* Drop support for Python 3.7.


[0.8.1] - [2023-01-05]
----------------------

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:3.7-slim AS builder
FROM python:3.11-slim AS builder
ARG version

# install python package in venv
RUN python3 -m venv venv && \
venv/bin/pip3 --disable-pip-version-check install dmarc-metrics-exporter==${version}

FROM python:3.7-alpine AS runner
FROM python:3.11-alpine AS runner

# adduser and directories
RUN addgroup --system --gid 1000 dmarc-metrics && \
Expand Down
2 changes: 1 addition & 1 deletion dmarc_metrics_exporter/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.1"
__version__ = "0.9.0"
1,674 changes: 782 additions & 892 deletions poetry.lock

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ classifiers = [
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -20,16 +19,16 @@ license = "MIT"
name = "dmarc-metrics-exporter"
readme = "README.rst"
repository = "https://github.com/jgosmann/dmarc-metrics-exporter/"
version = "0.8.1" # Update also in __init__.py!
version = "0.9.0" # Update also in __init__.py!

[tool.poetry.scripts]
dmarc-metrics-exporter = "dmarc_metrics_exporter.__main__:run"

[tool.poetry.dependencies]
bite-parser = "^0.1.2"
bite-parser = "^0.2.1"
dataclasses-serialization = "^1.3.1"
prometheus_client = "^0.15.0"
python = "^3.7.2"
python = "^3.8"
typing-extensions = "^4.0.1"
uvicorn = {extras = ["standard"], version = "^0.19.0"}
xsdata = ">=21.9"
Expand Down

0 comments on commit 4a1c436

Please sign in to comment.