From a6b4dcbd7ddfbee9f97f72deda3aece6f1e24a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Sat, 22 Nov 2025 16:06:44 +0000 Subject: [PATCH 1/4] Update changelog --- docs/changelog.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index b4754f5..d6057da 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,12 +4,16 @@ Changelog Upcoming -------- +v1.0.0 +------ + - Dropped support for Python 3.7 and 3.8 - Added minimal contribution guidelines to CONTRIBUTING.md - Changed project linter and formatter from ``flake8`` to ``ruff``. Reformatted the codebase with ``ruff``. - Moved changelog into its own file, ``changelog.rst``. Also added github workflow for automatic changelog reminders. +- Modernized package and tests setup to use ``poetry``. v0.13.0 ------- From 2f29704f4e35a4c485075bbd65f20f0a14381307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Sat, 22 Nov 2025 16:10:23 +0000 Subject: [PATCH 2/4] Remove python 3.7 reference --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index d86d033..356e176 100644 --- a/README.rst +++ b/README.rst @@ -18,7 +18,7 @@ Synopsis -------- MediaFile is available `on PyPI`_. Install it by typing ``pip install -mediafile``. It works on Python 3.7 or later. Then: +mediafile``. It works on Python 3.9 or later. Then: .. code-block:: python From 05b269900251f53bf6af7e6a725317151aebc2c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Sat, 22 Nov 2025 16:10:28 +0000 Subject: [PATCH 3/4] Update contribution guide --- CONTRIBUTING.md | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4afc5d1..e417167 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,13 +14,23 @@ Please follow these guidelines to ensure a smooth contribution process. We recommend using a virtual environment to manage dependencies. You can use `venv`, `conda`, or any other tool of your choice. 1. Fork/Clone the repository on GitHub + ```bash -git clone -cd mediafile +$ git clone +$ cd mediafile ``` -2. Install dependencies and set up the development environment + +2. Set up your development environment + +```bash +$ python -m pip install --user pipx +$ pipx install poetry poethepoet +``` + +3. Install project dependencies + ```bash -pip install -e '.[dev]' +$ poetry install ``` ## Before submitting a Pull Request @@ -29,7 +39,7 @@ Verify that your code adheres to the project standards and conventions. Run ruff and pytest to ensure your code is properly formatted and all tests pass. ```bash -ruff check . -ruff format . -pytest . +$ poe lint +$ poe format +$ poe test ``` From 2f62ea2c5851740dc1c8aa4554e0f66bc5bb7d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Sat, 22 Nov 2025 16:14:39 +0000 Subject: [PATCH 4/4] Revert the version back to the old one temporarily --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8f2a907..13186fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mediafile" -version = "1.0.0-rc1" +version = "0.13.0" description = "A simple, cross-format library for reading and writing media file metadata." authors = [{ name = "Adrian Sampson", email = "adrian@radbox.org" }] readme = "README.rst"