diff --git a/.files b/.files
index 1fea202..9921452 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index d96e6a8..0563928 100644
--- a/.rev
+++ b/.rev
@@ -31,4 +31,12 @@
1088423
+
+ 65fa6c50938c3511d2752544501c7c0d
+ 5.1.0
+
+ dimstar_suse
+
+ 1095452
+
diff --git a/fix_ansible_compat.patch b/fix_ansible_compat.patch
deleted file mode 100644
index 1e173a9..0000000
--- a/fix_ansible_compat.patch
+++ /dev/null
@@ -1,75 +0,0 @@
-diff --git a/.config/requirements-lock.txt b/.config/requirements-lock.txt
-index 5af77861..cf0bc2b2 100644
---- a/.config/requirements-lock.txt
-+++ b/.config/requirements-lock.txt
-@@ -1,10 +1,10 @@
- #
--# This file is autogenerated by pip-compile with Python 3.9
-+# This file is autogenerated by pip-compile with Python 3.10
- # by the following command:
- #
- # pip-compile --no-annotate --output-file=.config/requirements-lock.txt --resolver=backtracking --strip-extras --unsafe-package=ruamel-yaml-clib pyproject.toml
- #
--ansible-compat==3.0.2
-+ansible-compat==4.0.2
- ansible-core==2.14.4
- arrow==1.2.3
- attrs==23.1.0
-diff --git a/.config/requirements.in b/.config/requirements.in
-index ce0cb9ae..d4bbe3a3 100644
---- a/.config/requirements.in
-+++ b/.config/requirements.in
-@@ -1,4 +1,4 @@
--ansible-compat >= 2.2.0, < 4.0.0
-+ansible-compat >= 4.0.1
- ansible-core >= 2.12.10
- click >= 8.0, < 9
- click-help-colors >= 0.9
-diff --git a/.config/requirements.txt b/.config/requirements.txt
-index 2e1a36f1..5b8ef04d 100644
---- a/.config/requirements.txt
-+++ b/.config/requirements.txt
-@@ -5,7 +5,7 @@
- # pip-compile --extra=docs --extra=test --no-annotate --output-file=.config/requirements.txt --resolver=backtracking --strip-extras pyproject.toml
- #
- ansi2html==1.8.0
--ansible-compat==3.0.2
-+ansible-compat==4.0.2
- ansible-core==2.14.4
- ansible-lint==6.14.6
- arrow==1.2.3
-diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
-index 55b0043e..6b9b8910 100644
---- a/.pre-commit-config.yaml
-+++ b/.pre-commit-config.yaml
-@@ -62,7 +62,7 @@ repos:
- entry: mypy src/
- pass_filenames: false
- additional_dependencies:
-- - ansible-compat>=2.2.0,<4.0.0
-+ - ansible-compat>=4.0.1
- - click>=8.0.1
- - enrich>=1.2.7
- - importlib-metadata>=4.6.1
-@@ -81,7 +81,7 @@ repos:
- args:
- - --output-format=colorized
- additional_dependencies:
-- - ansible-compat>=2.2.0,<4.0.0
-+ - ansible-compat>=4.0.1
- - click
- - click-help-colors
- - cookiecutter
-diff --git a/src/molecule/util.py b/src/molecule/util.py
-index 66c7610c..56f9c0ac 100644
---- a/src/molecule/util.py
-+++ b/src/molecule/util.py
-@@ -146,7 +146,7 @@ def run_command(
- if debug:
- print_environment_vars(env)
-
-- result = app.runtime.exec(
-+ result = app.runtime.run(
- args=args,
- env=env,
- cwd=cwd,
diff --git a/molecule-5.0.1.tar.gz b/molecule-5.0.1.tar.gz
deleted file mode 120000
index 5bf3761..0000000
--- a/molecule-5.0.1.tar.gz
+++ /dev/null
@@ -1 +0,0 @@
-/ipfs/bafybeifl4novzqkisbsdx4glvy7lxxxfmtzn5pr2e2vu2kogo5mhscjpdm
\ No newline at end of file
diff --git a/molecule-5.1.0.tar.gz b/molecule-5.1.0.tar.gz
new file mode 120000
index 0000000..504743b
--- /dev/null
+++ b/molecule-5.1.0.tar.gz
@@ -0,0 +1 @@
+/ipfs/bafybeiffy7pplud6dv23svkm53owonaje5an66wfnoxud7bvpaopqej674
\ No newline at end of file
diff --git a/molecule.changes b/molecule.changes
index dd1c49d..7d13d0d 100644
--- a/molecule.changes
+++ b/molecule.changes
@@ -1,4 +1,22 @@
-------------------------------------------------------------------
+Mon Jun 26 05:10:13 UTC 2023 - Johannes Kastl
+
+- remove fix_ansible_compat.patch that is no longer needed
+- update to 5.1.0:
+ * Minor Changes
+ - Ensure external drivers are installed (#3901) @apatard
+ - Update dependency doc (#3916) @zhan9san
+ - Improve documentation for upgrade scenario (#3899) @fauust
+ * Bugfixes
+ - Fix documentation links (#3940) @ssbarnea
+ - Fix quoted strings templating (#3911) @samiam
+ - Adds Support for Shell Type Instance Param to Delegated
+ Driver (#3932) @zollo
+ - Fix dead link in documentation (#3923) @rtakasuke
+ - Use backwards incompatible change from ansible-compat 4.0.1
+ (#3904) @asmacdo
+
+-------------------------------------------------------------------
Mon May 22 13:30:53 UTC 2023 - Lukas Müller
- Add fix_ansible_compat.patch from upstream pull request to fix
diff --git a/molecule.spec b/molecule.spec
index ae1fd94..99158da 100644
--- a/molecule.spec
+++ b/molecule.spec
@@ -39,14 +39,13 @@
%bcond_without test
Name: molecule
-Version: 5.0.1
+Version: 5.1.0
Release: 0
Summary: Aids in the development and testing of Ansible roles
License: MIT
URL: https://github.com/ansible-community/molecule
Source: https://files.pythonhosted.org/packages/source/m/molecule/molecule-%{version}.tar.gz
# Taken from upstream PR https://github.com/ansible-community/molecule/pull/3904
-Patch0: fix_ansible_compat.patch
BuildRequires: python-rpm-macros
BuildRequires: %{ansible_python}-pip
BuildRequires: %{ansible_python}-setuptools
@@ -104,7 +103,6 @@ testing scenarios.
%prep
%setup -q -n molecule-%{version}
-%patch0 -p1
%build
%pyproject_wheel