From e65f1d45f21a845f521314f19fdaef01c6cd7f78 Mon Sep 17 00:00:00 2001 From: Nicholas Bunn Date: Tue, 3 Sep 2024 09:10:20 +0100 Subject: [PATCH 1/2] Move test dependencies to be optional --- CHANGELOG.md | 8 ++++++++ pyproject.toml | 12 ++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd11434..69059de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added + +### Changed + +- Moved the dependencies for test packages (`pytest`, `pytest-django`, `pytest-cov`) into dev dependencies. + +### Removed + ## [0.3.0] - 2024-08-28 ### Added diff --git a/pyproject.toml b/pyproject.toml index e8e827d..33e3e4f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,13 +26,7 @@ readme = "README.md" # Do not manually edit the version, use `make version_{type}` instead. # This should match the version in the [tool.bumpversion] section. version = "0.3.0" -dependencies = [ - "django>=3.2", - "djangorestframework>=3.12.0", - "pytest-django==4.7.0", - "pytest==8.3.2", - "pytest-cov", -] +dependencies = ["django>=3.2", "djangorestframework>=3.12.0"] [project.urls] # See https://daniel.feldroy.com/posts/2023-08-pypi-project-urls-cheatsheet for @@ -44,7 +38,9 @@ changelog = "https://github.com/kraken-tech/django-rest-framework-recursive/blob dev = [ # Testing "pytest", - "nox", # Install in virtualenv so Mypy has access to the package types. + "pytest-django>=4.7.0", + "pytest-cov", + "nox", # Install in virtualenv so Mypy has access to the package types. # Linting "ruff", From 758009a6748d8c64f6251222758a359e7b9cea29 Mon Sep 17 00:00:00 2001 From: Nicholas Bunn Date: Tue, 3 Sep 2024 09:11:53 +0100 Subject: [PATCH 2/2] Bump to v0.3.1 --- CHANGELOG.md | 2 ++ pyproject.toml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69059de..5f83d1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.3.1] - 2024-09-03 + ### Added ### Changed diff --git a/pyproject.toml b/pyproject.toml index 33e3e4f..050b8a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ readme = "README.md" # Do not manually edit the version, use `make version_{type}` instead. # This should match the version in the [tool.bumpversion] section. -version = "0.3.0" +version = "0.3.1" dependencies = ["django>=3.2", "djangorestframework>=3.12.0"] [project.urls] @@ -132,7 +132,7 @@ filterwarnings = "error" [tool.bumpversion] # Do not manually edit the version, use `make version_{type}` instead. # This should match the version in the [project] section. -current_version = "0.3.0" +current_version = "0.3.1" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" serialize = ["{major}.{minor}.{patch}"] search = "{current_version}"