Skip to content

Commit 4ccf234

Browse files
authored
Merge pull request #122 from libranet/release-1.0.5
prepare 1.0.5 release
2 parents e75e7b2 + bb1e097 commit 4ccf234

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

docs/changes.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## 1.1.0 (YYYY-MM-DD)
5+
## 1.0.5 (2026-08-16)
66

77
- Add codespell as dev-dependency for spellchecking.
88

99
- Drop pylint as linter.
1010

1111
- Drop Python 3.8 support.
1212

13-
- Refactor `SimpleWarning` class to `simple_warning()` context manager function.
13+
- Fix `TypeError: SimpleWarning.simple_message() takes 1 positional argument but 5 were given`,
14+
raised whenever a warning fired inside the `sitecustomize` entrypoint (e.g. a missing `.env`
15+
file). `SimpleWarning.simple_message` was assigned directly to `warnings.formatwarning`, which
16+
the stdlib calls as `formatwarning(message, category, filename, lineno, line=None)` - up to 5
17+
positional arguments, not the 1 `simple_message` accepted. Refactored `SimpleWarning` into the
18+
`simple_warning()` context manager, whose `simple_format()` callback matches that signature.
1419

1520
- Move warning utilities from `utils.py` to new `warnings.py` module.
1621

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ build-backend = "uv_build"
2020

2121
[project]
2222
name = "autoread_dotenv"
23-
version = "1.1.0.dev1"
23+
version = "1.0.5"
2424
description = "Automatically set env-vars at the beginning of every python-process in your in-project virtualenv."
2525
readme = "docs/readme.md"
2626
authors = [{ name = "Wouter Vanden Hove", email = "wouter@libranet.eu" }]

uv.lock

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)