Skip to content

Commit

Permalink
Release 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fizyk committed Mar 11, 2024
1 parent 92da6f3 commit c913562
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 35 deletions.
43 changes: 43 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,49 @@ CHANGELOG

.. towncrier release notes start
6.0.0 (2024-03-11)
==================

Breaking changes
----------------

- DatabaseJanitor class now accepts only keyword arguments. (`#899 <https://github.com/ClearcodeHQ/pytest-postgresql/issues/899>`__)


Bugfixes
--------

- Fix the remaining `DepcrecationWarning` for `datetime.datetime.utcnow` on Python 3.12. (`#896 <https://github.com/ClearcodeHQ/pytest-postgresql/issues/896>`__)


Deprecations
------------

- Deprecated load parameter on a client fixture.
Developers are encouraged to either use the load function/parameter
for process fixture, or create an intermediate fixture placed between client
and tests themselves to fill in the data. (`#850 <https://github.com/ClearcodeHQ/pytest-postgresql/issues/850>`__)


Features
--------

- Now all sql files used to initialise database for tests, has to be passed as pathlib.Path instance.

This helps the DatabaseJanitor choose correct behaviour based on parameter. (`#638 <https://github.com/ClearcodeHQ/pytest-postgresql/issues/638>`__)
- Have separate parameters for template database name and database name in DatabaseJanitor.
It'll make it much clearer to understand the code and Janitor's behaviour. (`#672 <https://github.com/ClearcodeHQ/pytest-postgresql/issues/672>`__)
- Template databases are now created with is_template flag turned on, and not by setting allow_connections to false.

The allow_connections flag being set to false is used strictly right before we attempt to drop the database. (`#914 <https://github.com/ClearcodeHQ/pytest-postgresql/issues/914>`__)


Miscellaneus
------------

- `#865 <https://github.com/ClearcodeHQ/pytest-postgresql/issues/865>`__, `#882 <https://github.com/ClearcodeHQ/pytest-postgresql/issues/882>`__, `#893 <https://github.com/ClearcodeHQ/pytest-postgresql/issues/893>`__, `#900 <https://github.com/ClearcodeHQ/pytest-postgresql/issues/900>`__


5.1.1 (2024-03-07)
==================

Expand Down
3 changes: 0 additions & 3 deletions newsfragments/638.feature.rst

This file was deleted.

2 changes: 0 additions & 2 deletions newsfragments/672.feature.rst

This file was deleted.

4 changes: 0 additions & 4 deletions newsfragments/850.deprecate.rst

This file was deleted.

12 changes: 0 additions & 12 deletions newsfragments/865.misc.rst

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/882.misc.rst

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/893.misc.rst

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/896.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/899.break.rst

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/900.misc.rst

This file was deleted.

5 changes: 0 additions & 5 deletions newsfragments/914.feature.rst

This file was deleted.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pytest-postgresql"
version = "5.1.1"
version = "6.0.0"
description = "Postgresql fixtures and fixture factories for Pytest."
readme = "README.rst"
keywords = ["tests", "pytest", "fixture", "postgresql"]
Expand Down Expand Up @@ -39,7 +39,7 @@ requires-python = ">= 3.8"
[project.urls]
"Source" = "https://github.com/ClearcodeHQ/pytest-postgresql"
"Bug Tracker" = "https://github.com/ClearcodeHQ/pytest-postgresql/issues"
"Changelog" = "https://github.com/ClearcodeHQ/pytest-postgresql/blob/v5.1.1/CHANGES.rst"
"Changelog" = "https://github.com/ClearcodeHQ/pytest-postgresql/blob/v6.0.0/CHANGES.rst"

[project.entry-points."pytest11"]
pytest_postgresql = "pytest_postgresql.plugin"
Expand Down Expand Up @@ -108,7 +108,7 @@ name = "Miscellaneus"
showcontent = false

[tool.tbump.version]
current = "5.1.1"
current = "6.0.0"

# Example of a semver regexp.
# Make sure this matches current_version before
Expand Down
2 changes: 1 addition & 1 deletion pytest_postgresql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
# along with pytest-postgresql. If not, see <http://www.gnu.org/licenses/>.
"""Main module for pytest-postgresql."""

__version__ = "5.1.1"
__version__ = "6.0.0"

0 comments on commit c913562

Please sign in to comment.