Skip to content

Commit c1d9b7d

Browse files
committed
Release 7.0.0
1 parent c44667d commit c1d9b7d

28 files changed

+60
-49
lines changed

CHANGES.rst

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,62 @@ CHANGELOG
33

44
.. towncrier release notes start
55
6+
7.0.0 (2025-02-23)
7+
==================
8+
9+
Breaking changes
10+
----------------
11+
12+
- Drop support for load parameter from client fixtures. This can be easily replaced by creating intermediary fixture between test and client fixture. (`#1087 <https://github.com/dbfixtures/pytest-postgresql/issues/1087>`__)
13+
- Stop supporting Python 3.8 as it already reached EOL
14+
15+
16+
Bugfixes
17+
--------
18+
19+
- Passing all environment variables to the initdb.
20+
21+
This helps the cases where og_ctl is replaced by custom shell script
22+
making additional calls, and needs all the variables, that ie server process gets. (`#1076 <https://github.com/dbfixtures/pytest-postgresql/issues/1076>`__)
23+
24+
25+
Features
26+
--------
27+
28+
- If a test run ended in an error that prevented proper test cleanup,
29+
developer can now use `--postgresql-drop-test-database` command line flag,
30+
to delete database from noproc fixture at the start. (`#265 <https://github.com/dbfixtures/pytest-postgresql/issues/265>`__)
31+
- DatabaseJanitor.cursor now accepts optional parameter dbname, which defaults to `postgres`
32+
33+
This database name is used to make connection to and return a cursor. (`#265 <https://github.com/dbfixtures/pytest-postgresql/issues/265>`__)
34+
- When running tests with xdist, pytest-postgresql now attempts to detect random ports
35+
selected by other nodes by writing down a .port file in session temporary directory.
36+
37+
The number of tries it attempts to select unused port is configurable,
38+
and defaults to 0.
39+
40+
In case pytest-postgresql won't be able to select unused port,
41+
PortForException is thrown with appropriate message. (`#872 <https://github.com/dbfixtures/pytest-postgresql/issues/872>`__)
42+
- Mark Python 3.13 as supported.
43+
44+
45+
Miscellaneus
46+
------------
47+
48+
- `#707 <https://github.com/dbfixtures/pytest-postgresql/issues/707>`__, `#895 <https://github.com/dbfixtures/pytest-postgresql/issues/895>`__, `#1047 <https://github.com/dbfixtures/pytest-postgresql/issues/1047>`__, `#1048 <https://github.com/dbfixtures/pytest-postgresql/issues/1048>`__, `#1055 <https://github.com/dbfixtures/pytest-postgresql/issues/1055>`__, `#1061 <https://github.com/dbfixtures/pytest-postgresql/issues/1061>`__, `#1062 <https://github.com/dbfixtures/pytest-postgresql/issues/1062>`__, `#1063 <https://github.com/dbfixtures/pytest-postgresql/issues/1063>`__, `#1081 <https://github.com/dbfixtures/pytest-postgresql/issues/1081>`__
49+
- Add PostgreSQL 17 to CI and drop 12
50+
- Add [bot] suffix to the pre-commit actor.
51+
- Adjust links after repository transfer
52+
- Adjust workflows for actions-reuse 3.0.1
53+
- Fix DatabaseJanitor documentation.
54+
- In Python 3.13, usage of a positional argument for `maxsplit` has been
55+
formally deprecated.
56+
Update code to use keyword argument `maxsplit` instead of positional.
57+
- Skip local hooks from ci
58+
- Skip newsfragment checks for pre-commit actor.
59+
- Update pre-commit configuration to use ruff instead of flake8/pydocstyle
60+
61+
662
6.1.1 (2024-09-05)
763
==================
864

newsfragments/+08bdc5f7.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/+0ff2173d.misc.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

newsfragments/+23828db2.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/+293efc73.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/+39aa8afb.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/+4c68f493.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/+7b6c5deb.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/+98311d70.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/+a82453f2.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)