commit c53294dd3e4bb0c0c30cb55ca444fd1e4ce26df1
parent 653221ca5463a4e785839bed6142dad04d6a6d6e
Author: Árni Dagur <arni@dagur.eu>
Date: Fri, 27 Nov 2020 03:04:55 +0000
Merge pull request #14 from ArniDagur/keep-changelog
Keep a changelog using 'changelog-cli'
Diffstat:
3 files changed, 46 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
@@ -0,0 +1,30 @@
+# CHANGELOG
+
+All notable changes to this project will be documented in this file.
+This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a Changelog](http://keepachangelog.com/).
+
+
+## Unreleased
+---
+
+### New
+* Maintain a `CHANGELOG.md` file.
+
+### Changes
+
+### Fixes
+
+### Breaks
+
+
+## 0.3.2 - (2020-09-22)
+---
+
+### New
+* Build Python 3.9 wheels.
+
+### Changes
+* Updated PyO3 to version `0.12`.
+
+### Fixes
+* Don't use star imports in `__init__.py` to give linters and type checkers more information.
+\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
@@ -15,3 +15,4 @@ python = "^3.5"
maturin = "*"
pytest = "*"
toml = "*"
+changelog-cli = "*"
+\ No newline at end of file
diff --git a/tests/test_version_numbers.py b/tests/test_version_numbers.py
@@ -1,3 +1,5 @@
+import subprocess
+
import toml
import adblock
@@ -14,15 +16,22 @@ def get_version_value_cargo():
return cargo_toml["package"]["version"]
+def get_version_value_changelog():
+ proc = subprocess.Popen(["changelog", "current"], stdout=subprocess.PIPE)
+ assert proc.wait() == 0
+ return proc.stdout.read().decode("utf-8").strip()
+
+
def test_version_numbers_all_same():
"""
- Makes sure that `pyproject.toml` and `Cargo.toml` contain the same version
- number as the one attached to the `adblock` module.
+ Makes sure that `pyproject.toml`, `Cargo.toml`, and `CHANGELOG.md` contain
+ the same version number as the one attached to the `adblock` module.
"""
cargo_version = get_version_value_cargo()
poetry_version = get_version_value_poetry()
+ changelog_version = get_version_value_changelog()
module_version = adblock.__version__
assert cargo_version == poetry_version
- assert poetry_version == module_version
- assert cargo_version == module_version
+ assert poetry_version == changelog_version
+ assert changelog_version == module_version