diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 861466d..bf6119a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12'] name: Python ${{ matrix.python-version}} steps: diff --git a/HISTORY.rst b/HISTORY.rst index 1cb3e48..b8826a7 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,14 @@ History ======= +5.1.0 (in development) +---------------------- + +**Backwards incompatible changes** + +* Dropped support for Python 3.8 (#160) + + 5.0.0 (June 24th, 2024) ----------------------- @@ -35,7 +43,7 @@ History * Add ``RegisteredMetricsFilter`` metrics filter making it easier to enforce metrics can only be emitted if documented. (#15) -**Backwards incompatibel changes** +**Backwards incompatible changes** * Dropped support for Python 3.7 (#121) diff --git a/Makefile b/Makefile index e83b3b0..dcea49c 100644 --- a/Makefile +++ b/Makefile @@ -15,11 +15,11 @@ clean: ## Clean build artifacts .PHONY: format format: ## Format files - tox exec -e py38-lint -- ruff format + tox exec -e py39-lint -- ruff format .PHONY: lint lint: ## Lint files - tox -e py38-lint + tox -e py39-lint .PHONY: test test: ## Run tox to test across supported Python versions diff --git a/pyproject.toml b/pyproject.toml index d8ebe91..87a59fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ readme = "README.rst" keywords = ["metrics", "datadog", "statsd"] authors = [{name = "Will Kahn-Greene"}] license = {text = "MPLv2"} -requires-python = ">=3.8" +requires-python = ">=3.9" dependencies = [] classifiers = [ "Development Status :: 5 - Production/Stable", @@ -14,7 +14,6 @@ classifiers = [ "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Natural Language :: English", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -36,8 +35,7 @@ dev = [ "check-manifest", "pytest", "ruff", - "Sphinx==6.2.1; python_version <= '3.8'", - "Sphinx; python_version > '3.8'", + "Sphinx", "sphinx_rtd_theme", "time-machine", "tomli>=1.1.0; python_version < '3.11'", @@ -55,7 +53,7 @@ build-backend = "setuptools.build_meta" [tool.ruff] line-length = 88 -target-version = "py38" +target-version = "py39" src = ["src"] [tool.ruff.lint] @@ -79,16 +77,14 @@ filterwarnings = [ legacy_tox_ini = """ [tox] envlist = - py38 - py38-lint py39 + py39-lint py310 py311 py312 [gh-actions] python = - 3.8: py38 3.9: py39 3.10: py310 3.11: py311 @@ -100,8 +96,9 @@ commands = pytest {posargs} tests/ pytest --doctest-modules --pyargs markus -[testenv:py38-lint] -basepython = python3.8 +[testenv:py39-lint] +allowlist_externals = ruff +basepython = python3.9 changedir = {toxinidir} commands = ruff format --check src tests